• Breaking News

    [Android][timeline][#f39c12]

    Wednesday, February 5, 2020

    How to become a better android programmer? Android Dev

    How to become a better android programmer? Android Dev


    How to become a better android programmer?

    Posted: 05 Feb 2020 07:25 AM PST

    Hi all,

    I'm a junior android developer and I want to improve. I would like to know, which in your opinion are the best libraries,frameworks,design patterns, etc... to focus on.

    For example I've read about Dagger and Retrofit (I'm using Volley) and about MVVM, even RxAndroid seems cool. I want to start to implement unit tests and I'm also learning Kotlin.

    There are a lot of things, but which are the things that are worth to learn for real?

    submitted by /u/TheScanf
    [link] [comments]

    Easily create beautiful app screenshots for the Play Store

    Posted: 05 Feb 2020 11:50 AM PST

    Easily create beautiful app screenshots for the Play Store

    Hey folks! Have you ever dreaded uploading screenshots when listing your app on the Play Store because they were annoying to make? I've had the same experience, so I decided to build a super easy-to-use tool to streamline making beautiful looking screenshots.

    It has support for the latest phones, like the Pixel 4 and Pixel 4 XL, Samsung Galaxy S10 and S10+, as well as smaller phone sizes like the Nexus 6P and 5X. You can customize a lot of aspects of the screenshot, such as font family, font size, background color, background images, etc. You can also save your screenshots directly in the tool, access them on any device, and edit them easily at any point in the future!

    It has a generous free tier and I'm continually adding new features based on users' feedback. Check it out at https://screenshotcreator.com, and let me know what you think!

    Here's a preview of some of the screenshots that you could make:

    https://preview.redd.it/b4x7r5lcs5f41.png?width=3726&format=png&auto=webp&s=073d68d6750cc3b57fee8cd412665e8822f5d4f6

    submitted by /u/Shizukani10
    [link] [comments]

    WorkManager 2.3.1 release

    Posted: 05 Feb 2020 12:13 PM PST

    Recommendations for a Xamarin Android dev looking to possibly switch to Java/Kotlin

    Posted: 05 Feb 2020 01:34 PM PST

    So as the title reads, I've been working in C# for years now and do all my work in android using Xamarin Android. I also write in VB.NET for work, so I'm rather plugged into the .NET framework. I've been working on a hobby project for a little over a year (full-feature messaging app using Firebase) and I've gotten to a point with it where I want to add features but the libraries for Xamarin either don't work, or don't exist. I've been thinking about switching my project over to Java/Kotlin as that seems to be where most android development work is these days, and it seems like there's a lot more resources for building apps and learning about the tools available on the Java side.

    I'm a self-taught developer: I started by working on games using c# in Unity, and then went from there to Xamarin Android, as it seemed like a natural progression with Xamarin using c# as well. Now that I'm looking at Java, there's so many little nuances that are different that I'm getting a bit lost in the sauce. Does anyone have any recommendations for picking up the basics of Java/Kotlin, or any other advice in general (eg: of Java vs Kotlin, which is more useful/easy to learn)?

    Thanks for the help!

    submitted by /u/ross7alex
    [link] [comments]

    X-post: Google has paid Android developers about half of what Apple has - r/apple

    Posted: 04 Feb 2020 11:41 PM PST

    So... how exactly did I violate the target audience and content section?

    Posted: 05 Feb 2020 10:39 AM PST

    Got hit with this randomly when I woke up this morning. What gives? How can a dictionary app that doesn't access the internet or show ads violate the target audience requirement? Swear words in the dictionary data itself? Lol.

    For now, I just went the "fuck it" route and just set everything to 18+, but honestly right now I'd much rather know what in my app or store listing caused the app to be flagged. Anybody got any ideas? The apk is available here: https://github.com/0xbad1d3a5/Kaku/releases

    submitted by /u/Rea-sama
    [link] [comments]

    The Iowa Fracases: Voting Apps Need Better Testing & Monitoring

    Posted: 05 Feb 2020 07:31 AM PST

    MobX for Kotlin? I wrote a sample to show what it is.

    Posted: 05 Feb 2020 09:28 AM PST

    Original MobX is a state-management library written on JavaScript - mobx.js.org
    It is based on TFRP (Transparent Functional Reactive Programming) and considered to be a good alternative to Redux. Some time later it has been ported to Dart and now Flutter developers can build their apps with power of mobx.dart.

    However it seems that native Android developers heard nothing about MobX. There is no discussion of something similar on r/androiddev. Lets fill that gap!

    Recently I found an implementation of MobX for Kotlin - github.com/SamakaCD/mobx. It is not popular at all and surely is not production ready yet, but it is enough for experimentation. Powered by Kotlin delegated properties it looks even better than the Dart version. I wrote a sample - github.com/aartikov/MobX-Samples. It is a very simple application that demonstrates core concepts of MobX. Please, take a look at README and source code. I tried to make it easy to read.

    How do you think, does Mobx have a chance to exist in native Android development? Maybe someday we will have a solid implementation of this library.

    submitted by /u/aartikov
    [link] [comments]

    App Gallery Huawei - USA Developers Can They Post

    Posted: 05 Feb 2020 08:54 AM PST

    Considering adding our android games to Huawei App Gallery. However, was not sure if USA companies are allowed to or not. I not allowed due to the Huawei ban, but then saw there are extensions by us government. Anyone have any idea?

    Also what is your experience with AppGallery? Downloads, revenue? What is holding some people back from submmitng there app or game to gallery. Trying to learn so thank you in advance!

    submitted by /u/game_d
    [link] [comments]

    Building my first app. Need help figuring out which payment API allows split payments

    Posted: 05 Feb 2020 02:45 PM PST

    Hi all! As the title says, I'm building my first app for my graduate school thesis! And I'm super pumped for the challenge and journey ahead. In the preliminary research I've done so far, I haven't been able to find a payment provider (PayPal, Google Pay, Stripe, Square) that explicits supports splitting payments. The purpose of the app is to split payments (but it is not a bill-splitting app). Are there any APIs that allow split payments? Or, is there a different way to handle that? TIA!

    submitted by /u/naboo211
    [link] [comments]

    Activity onCreate not called until screen is unlocked?

    Posted: 05 Feb 2020 04:11 AM PST

    I have a Service running in my app that starts an activity whenever a condition is met, however if this condition is met when the screen is locked, the onCreate callback doesn't fire until I unlock the device.

    I have added the following to the activity in my manifest

    android:showOnLockScreen="true"
    android:turnScreenOn="true"

    I've also tried adding the relevant flags to the Window of the activity in onCreate, however since onCreate never fires while the device is locked this doesn't make a difference.

    How can I get the activity's onCreate to fire when the screen is locked and in turn, turn the screen on and show over the lock screen of my phone?

    submitted by /u/d0zza
    [link] [comments]

    How much would it cost to make - Android skin

    Posted: 05 Feb 2020 01:25 PM PST

    I want to make my own Android Skin but currently I don't have the skills to do that, so I thought, how much would it actually cost to have a custom skin made? Anyone have any idea how much something like that would cost to have made?

    submitted by /u/BaconReh69
    [link] [comments]

    How can I have a button do a repeated action while held down with long click?

    Posted: 05 Feb 2020 01:22 PM PST

    Is light usage of Static Class members to persist data a good practice?

    Posted: 05 Feb 2020 08:57 AM PST

    I want to have some data that is getting retrieved in one activity be used in another activity. Would Static data members be a good practice? And how is it different from setting data in Intent?

    submitted by /u/Firebelias
    [link] [comments]

    Implementing an app into an android system

    Posted: 05 Feb 2020 11:43 AM PST

    Hello all, I've been messing around with this idea lately whenever I'm not occupied with any work or activity and I've been curious to know more about the different requirements and challenges needed to create an application or software. This idea I'm working on revolves around two things 1.A tablet (Android) 2. An application (The idea) and so I came across this pickle about how would I merge those two together. I mean, Say I want this tablet to run my application only and nothing else (similar to Shopkeep and Upserve pos tablets). The tablets only run the application the devs have installed. I'm interested in finding out what do you call such operation in the app development dictionary? And would I be required to have permission/license from the tablet manufacturer in order for me to use my application as the main operating system? I'm merely just asking for research purposes about this matter as I'm a student in finance and It would be better for me to have a conceptual framework regarding this idea before I present it to a potential co-founder.

    Thank you for taking the time to read this and I really wouldn't be asking this if I was able to find it on google :)

    submitted by /u/Ademomowgli
    [link] [comments]

    Can I click buttons on screen programatically?

    Posted: 05 Feb 2020 10:46 AM PST

    Hi, I want to know if I can click specific buttons without touching them. Something like open the camera and then holding record button, is it possible?

    submitted by /u/chucklemuff
    [link] [comments]

    Violation of Impersonation policy, looking for advice

    Posted: 05 Feb 2020 01:29 AM PST

    Today I got my app removed because it contains a copyrighted word in the name. The email explains that I should rename it to something like [app name] for [copyrighted word] and that's what I'm going to do. However, I have some concerns about the package name. It looks like this: com.[my name].[copyrightedword][app name]. Is it safe to keep it the same or should I change it as well just in case and submit a new app?

    UPDATE: I uploaded an updated APK and everything seems to be fine for now, app is back on the store

    submitted by /u/koczmen
    [link] [comments]

    Bench marking an App?

    Posted: 05 Feb 2020 08:22 AM PST

    Issue:

    I have a developer who insists on using Progaurd. I'd like to test our app both without Progaurd, and with to see the performance differences.

    I'd like to test app performance both with Progaurd & without, just for my own curiosity sake. In the future I'll probably do tests with other features as well.

    Options I've found while googling are very sketchy, does anyone have any suggestions from experience?

    details:

    The problem is we get issues which only occur in production and when the test user sends us a stacktrace, it is obfuscated. We cannot recreate the issues in dev/locally, so the stack trace is important. I'd like to see if progaurd is really worth it in terms of performance

    Edit:

    fekete777 pointed out I can return the stacktrace into a usable form (see manual), however I'd still like to test to see progaurds performance gain, for my own curiosity

    submitted by /u/dusty-trash
    [link] [comments]

    Noob kotlin dev hahaha

    Posted: 05 Feb 2020 11:41 AM PST

    Heeey, I just started learning kotlin a few months ago and finally finished my first project from start to finish with a help of a friend of mine, if you could spare some time to see and give opinion about it or some tips on how to proceed from here I would appreciate it!

    Thanks for your time :)

    PS: first time using github aswell soooo the insights are kinda messed up haha

    Github repository: https://github.com/Pauloamm/Projeto-CM-a17011-a17012-a17014-master

    submitted by /u/Pauloamm
    [link] [comments]

    Do I need to use third party Recycler View library?

    Posted: 04 Feb 2020 10:01 PM PST

    If I do what are your recommendations?

    Thanks in advance!

    submitted by /u/LoneWalker20
    [link] [comments]

    Gesture listener for toddlers?

    Posted: 05 Feb 2020 06:53 AM PST

    As an Android dev with a 2 year old daughter, I've noticed that most Android apps are really difficult for my 2 year old to operate. Even the toddler game apps. The thing is, when I watch her try to drag the puzzle piece or touch the cat icon, it looks like she's doing it correctly almost every time. But her 90% gesture precision results in 30% gesture recognition.

    Is anyone aware of a library or project that provides "sloppy" touch recognition? I would imagine this could also be useful for accessibility purposes, for users who lack 100% muscle control.

    submitted by /u/mattrob33
    [link] [comments]

    Alter type with typealias

    Posted: 05 Feb 2020 06:38 AM PST

    Wait for retrofit response before passing data to RecycleView adapter

    Posted: 05 Feb 2020 06:35 AM PST

    I have 2 retrofit calls: one gets a list of ints and based of those ints I make another series of calls in a loop - HackerNews API.

    How to wait for retrofit to finish or is there another solution?Something like loading the data as it comes in maybe?

    MainActivity

    public class MainActivity extends AppCompatActivity { private RecyclerView mRecyclerView; private RecyclerView.Adapter mAdapter; private RecyclerView.LayoutManager mLayoutManager; private List<DataResponse> dataResponses = new ArrayList<>(); private Observable<List<Integer>> ids; private List<Observable<DataResponse>> requests = new ArrayList<>(); @SuppressLint("CheckResult") @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(); interceptor.setLevel(HttpLoggingInterceptor.Level.BODY); OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(interceptor) .build(); Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://hacker-news.firebaseio.com/v0/") .addConverterFactory(GsonConverterFactory.create()) .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .client(client) .build(); HackerNewsApi hackerNewsApi = retrofit.create(HackerNewsApi.class); Call<List<Integer>> idlist = hackerNewsApi.getPosts(); idlist.enqueue(new Callback<List<Integer>>() { @Override public void onResponse(Call<List<Integer>> call, Response<List<Integer>> response) { // Log.e("onSubscribe", "YOUR DATA IS HERE: " + response.body()); for (Integer i=0;i<10;i++){ Call<DataResponse> story = hackerNewsApi.getStory(response.body().get(i)); story.enqueue(new Callback<DataResponse>() { @Override public void onResponse(Call<DataResponse> call, Response<DataResponse> st) { // Log.e("onSubscribe", "STORY IS HERE: " + st.body().getTitle()); if(st.isSuccessful()) { dataResponses.add(st.body()); } } @Override public void onFailure(Call<DataResponse> call, Throwable t) { t.getMessage(); } }); } mRecyclerView = findViewById(R.id.recyclerView); mRecyclerView.setHasFixedSize(true); mLayoutManager = new LinearLayoutManager(getApplicationContext()); Log.e("onSubscribe", "YOUR DATA IS HERE: " + dataResponses); mAdapter = new ExampleAdapter(dataResponses); mRecyclerView.setLayoutManager(mLayoutManager); mRecyclerView.setAdapter(mAdapter); } @Override public void onFailure(Call<List<Integer>> call, Throwable t) { t.getMessage(); } }); } } 

    Retrofit Class

    public interface HackerNewsApi { @GET("topstories.json?print=pretty") Call<List<Integer>> getPosts(); @GET("item/{id}.json?print=pretty") Call<DataResponse> getStory(@Path("id") Integer id); } 
    submitted by /u/epoxxy
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel