• Breaking News

    [Android][timeline][#f39c12]

    Friday, August 9, 2019

    Weekly "anything goes" thread! Android Dev

    Weekly "anything goes" thread! Android Dev


    Weekly "anything goes" thread!

    Posted: 09 Aug 2019 05:41 AM PDT

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    Android Programming: The Big Nerd Ranch Guide, 4th Edition

    Posted: 09 Aug 2019 01:05 PM PDT

    Is using AppBundle better than using APK's?

    Posted: 09 Aug 2019 04:39 AM PDT

    I was wondering, recently I got email from Google claiming bundles are better overall beacuse of reduced size and some other benefits.

    However I am skeptical about them, switching from APK to bundle seems pretty straightforward, but there are things that worry me such as testing exported bundle and does bundle somehow affect crashrates.

    What is your experience with app bundles?Do you use them? Did you encounter some problems?

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

    What libraries/framework/concepts have you been into lately.

    Posted: 09 Aug 2019 04:51 AM PDT

    Is there anything you have found fascinating lately you think is worth sharing? What was your use case to use it?

    I am looking for some libraries/framework/concepts that I can learn.

    I have dabbled around RxJava, Coroutines, Glide, OkHttp, MVVM architecture.

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

    GitHub will be offerering CI/CD

    Posted: 09 Aug 2019 02:05 PM PDT

    Is there Any Q API telling if gestural navigation is enabled ?

    Posted: 08 Aug 2019 11:38 PM PDT

    Google Android Associate Developer Certification training question

    Posted: 09 Aug 2019 03:26 PM PDT

    https://www.linkedin.com/learning/paths/prepare-for-the-google-associate-android-developer-certification Is this training at LinkedIn/Lynda good? I remember there used to be one on Udacity for about 700 USD but is no longer available. Or do you guys know a better option? I know I can study myself, but I like studying with a premade structure meant for someone to ace the test. Thanks

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

    How much money do you make on AdMob?

    Posted: 09 Aug 2019 10:51 AM PDT

    I just started getting apps developed to use with AdMob and I was wondering how much people make. I understand there are nuances to this but I just wanted to get an idea of the best and worst in USA dollars.

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

    What does the .class extension from AnotherActivity.class mean?

    Posted: 09 Aug 2019 03:02 AM PDT

    I am learning on how to communicate with the Android OS using intents, and am currently working on an app from a book I am following.

    I am learning on how to start another within my main activity, and it happens inside a button click.

    The code looks like:

    Intent intent = newIntent(MainActivity.this, AnotherActivity.class); startActivity(intent); 

    May I know what the .class extension on AnotherActivity do? The book mentions:

    Before starting the activity, the ActivityManager checks the package's manifest for a declaration with the same name as the specified Class.

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

    Emulator 29.1.9 Canary

    Posted: 09 Aug 2019 09:33 AM PDT

    Can a snack bar have a custom layout with two vertical text views?

    Posted: 09 Aug 2019 12:43 PM PDT

    I have the following layout for a custom Snack Bar:

    <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" android:background="@color/white" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/textView1" android:layout_width="match_parent" android:layout_height="match_parent" android:text="accept"> </TextView> <TextView android:id="@+id/textView2" android:layout_width="match_parent" android:layout_height="match_parent" android:text="dismiss"> </TextView> </LinearLayout> 

    When the Snack Bar is shown, I can only see textView1, textView2 doesn't show up at all. I want them to appear vertically in the layout, one on top of the other. Is this possible?

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

    High Uninstall Rate starting July 26th

    Posted: 09 Aug 2019 11:50 AM PDT

    I am trying to figure out why my app is suddenly losing lots of users. Its an old app built for android 2.3. Starting July 26th I started losing a lot more users than normal (roughly 15%). Anyone know if something changed recently?

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

    Understanding when and how Android Views have dimensions set

    Posted: 09 Aug 2019 11:12 AM PDT

    Who here tried at least once to get a View width or size, and it returned 0? Do you know why this happens and how to address this issue? Checkout this blog-post and clarify all your questions about this matter:

    https://cheesecakelabs.com/br/blog/understanding-android-views-dimensions-set/?fbclid=IwAR3dQP9QqPAUtVw7iEKUjksInKkcywr6sQiKKTonLO5lsIBQA59KG5FibP8#utm_source=facebook&utm_medium=timeline-post&utm_campaign=android-views-dimensions

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

    Motional Intelligence for Global Persistent UI on Android with a Simple State Store

    Posted: 09 Aug 2019 11:03 AM PDT

    I wrote down an article to share some tips on designing a Dark theme based on my experience on Smart launcher :)

    Posted: 09 Aug 2019 09:48 AM PDT

    Decided to switch from learning web dev to android development.(Advice)

    Posted: 09 Aug 2019 09:30 AM PDT

    So I've been learning web development for one year and I've been applying to jobs but even junior jobs wants you to know some frameworks and 1000 different things. so I think I will go crazy if I continue with web dev. you have to learn a lot of things just to be able to land a junior job that pays 30k. This is what I've been finding in junior job descriptions for web developers.tech: html/css(Couple of css frameworks)/JavaScript(js framweorks) / Photoshop, PHP and sometimes python.

    So I've started to learn android development from udacity since a week ago and I feel like it's clicking with me. all the concepts that I've learned about JavaScript comes handy sometimes.

    1.I just wanted to get some advice on how to be able to get a job after finishing the android course in udacity?

    2.Do I have to learn kotlin as well?

    3.Any other advice on how can I be a better and employable android programmer is appreciated.

    4.Any great book and course suggestion would be appreciated.

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

    Re-Using Viewpager2 FragmentStateAdapter in Jetpack Navigation

    Posted: 09 Aug 2019 08:21 AM PDT

    I already asked this question on Stackoverflow but got no answer and I also can't find any working solutions on Google as Viewpager2 is relatively new, but maybe one of you has an answer.

    So I have a Viewpager2 with a FragmentStateAdapter inside a Fragment. I set the adapter in onViewCreated. When I navigate away via the Jetpack navigation library the view will be destroyed. When I come back the view will be recreated and the adapter will be set again. I don't want the fragments inside the adapter to be completely destroyed and recreated, so I can't just create a new adapter.

    But if I re-use the previous adapter it fails in this check:

    @CallSuper @Override public void onAttachedToRecyclerView(@NonNull RecyclerView recyclerView) { checkArgument(mFragmentMaxLifecycleEnforcer == null); mFragmentMaxLifecycleEnforcer = new FragmentMaxLifecycleEnforcer(); mFragmentMaxLifecycleEnforcer.register(recyclerView); } 

    I can prevent this from happening by setting the adapter of the viewpager to null in onDetach(). But when I do that and set the adapter again in onViewCreated() I get this error:

    java.lang.IllegalStateException: Expected the adapter to be 'fresh' while restoring state. at androidx.viewpager2.adapter.FragmentStateAdapter.restoreState(FragmentStateAdapter.java:516) at androidx.viewpager2.widget.ViewPager2.restorePendingState(ViewPager2.java:337) at androidx.viewpager2.widget.ViewPager2.dispatchRestoreInstanceState(ViewPager2.java:362) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4045) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4045) at android.view.View.restoreHierarchyState(View.java:20253) at androidx.fragment.app.Fragment.restoreViewState(Fragment.java:539) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:907) at androidx.fragment.app.FragmentManagerImpl.addAddedFragments(FragmentManagerImpl.java:2097) at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1871) at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1827) at androidx.fragment.app.FragmentManagerImpl.popBackStackImmediate(FragmentManagerImpl.java:310) at androidx.fragment.app.FragmentManagerImpl.popBackStackImmediate(FragmentManagerImpl.java:253) at androidx.fragment.app.FragmentManagerImpl.handleOnBackPressed(FragmentManagerImpl.java:233) at androidx.fragment.app.FragmentManagerImpl$1.handleOnBackPressed(FragmentManagerImpl.java:108) at androidx.activity.OnBackPressedDispatcher.onBackPressed(OnBackPressedDispatcher.java:189) at androidx.activity.ComponentActivity.onBackPressed(ComponentActivity.java:286) at android.app.Activity.onKeyUp(Activity.java:3169) at android.view.KeyEvent.dispatch(KeyEvent.java:3375) at android.app.Activity.dispatchKeyEvent(Activity.java:3452) at androidx.core.app.ComponentActivity.superDispatchKeyEvent(ComponentActivity.java:80) at androidx.core.view.KeyEventDispatcher.dispatchKeyEvent(KeyEventDispatcher.java:84) at androidx.core.app.ComponentActivity.dispatchKeyEvent(ComponentActivity.java:98) at androidx.appcompat.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:558) at androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59) at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(AppCompatDelegateImpl.java:2764) at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:563) at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:6038) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5893) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5346) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5399) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5365) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5524) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5373) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5581) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5346) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5399) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5365) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5373) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5346) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5399) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5365) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5557) at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:5726) 

    Can anybody point me in the right direction? I don't want to use the standard ViewPager, as that one really sucks when you use fragments and dynamically update/change the backing data list.

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

    Coming back to Android Development after a while. What's new?

    Posted: 09 Aug 2019 08:05 AM PDT

    Redditors, What should I expect, starting back into Android Development after almost 3 years?(circa 2016 to now)

    Back in College, I did quite a bit of Android Dev and worked on a few applications. However, since then, I have switched languages, from Java to Python as my primary programming language and moved into other technologies, primarily on the back-end and work to Python. The last time I developed something for Android, I used Java and not Kotlin and it was a CRUD-intensive application, for the most part, as were most of my applications.

    Currently, I need to build another Android app in the next 3-4 weeks, primarily based on Computer Vision, and I got to thinking what changes would have come around in the Android ecosystem since then, as it has always been a fast moving space. I am completely out of touch with this and if anyone could tell me about significant changes, it would be really helpful to making sense of what is going on right now and what is relevant, without studying up on every small thing that has changed in the last 3 years.

    This might be vague, and it might or might not tell you much about my knowledge of Android. For anything that is not clear, let me know and I will update the post itself include that information.

    Thanks. Any help is appreciated!!

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

    1 Year Progress - need advice

    Posted: 09 Aug 2019 08:02 AM PDT

    Hello androiddev,

    I wanted to share some of the progress on some of the apps I developed a year ago and hopefully get some advice on it as well. The apps haven't been too successful, only gaining about a few downloads a week.

    The first app that I developed, Speed Ball, has been the main source of my downloads, though the game is very buggy, and is not very fun. It gains about 10 or so downloads a week despite this. The other app I developed, Forest Bounce has very few downloads despite me spending a lot more time on debugging, aesthetics, and even ASO. This game gets very few downloads, about a download every month or so.

    Both apps have been out for a year but one has a much more downloads and I don't understand why. I am looking for suggestions to improve the downloads for my other, less popular, but higher in the quality app.

    Links to both apps

    [Speed ball](https://play.google.com/store/apps/details?id=com.KevinPatel.SpeedBall&hl=en )

    [Forest Bounce]( https://play.google.com/store/apps/details?id=com.KevinPatel.ForestBounce&hl=en )

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

    Modify device location?

    Posted: 09 Aug 2019 07:34 AM PDT

    Hi Devs,

    Is it possible to modify device's location from your app, given you have been granted all permissions required?

    Basically my app should be able to change device location so when other apps request location, they'll get modified coordinates.

    Is this even possible without rooting the device?

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

    Wifi-Direct Service Discovery

    Posted: 09 Aug 2019 07:21 AM PDT

    Hi. I'm trying to work with wifi direct. I tried to implement it with the google guidelines without much success. Then, I tried to use Salut lib, but it still doesn't work quite well. I need to connect 3/4 devices via wifi direct and share data between them. Currently, I only have 2 test devices (OS: Android 9 and Android 5). The Android 9 looks like its working good (always discovers the other device and tries to connect). However, the Android 5 doesn't find the other device nor accepts the connection requests.

    What is your experience on this? Is Wifi Direct more reliable with the most recent smartphones? I'm trying to know if this is possible or if it is a dead end.

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

    Delayed apk updates on Google Play

    Posted: 09 Aug 2019 07:08 AM PDT

    Hi, anyone experiencing longer than usual approval time for apk updates in prod channel on Google Play Console?

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

    App or game classification

    Posted: 09 Aug 2019 06:17 AM PDT

    I wanted to publish an app and I'm not sure whether it's an app or a game. It basically makes a sound when a user performs an action just for entertainment purposes. Should I publish it as a game or an app? And what subcategory/type should I pick?

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

    quick and dirty way to learn implement SDK to track in-app events

    Posted: 09 Aug 2019 01:01 PM PDT

    Dear fellow Redditor, what is the quick and efficient way to learn how to implement SDK to track in-app events?

    any resource I should take to master the basic very quick?

    tl;dr:

    • No programming experience in React native, android(JAVA, Kotlin), iOS(Objective C, Swift), Cordova and Unity.
    • I only want to learn how to implement Appsflyer and Facebook SDK to track in-app activity.
    • What should I learn? I usually use Python but mostly for data analysis.

    Thanks fellow Redditor!

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

    Tutorials for beginners using newer API levels

    Posted: 09 Aug 2019 04:25 AM PDT

    I'm feeling hopeless right now, I'm trying to learn android with Java but there are so many API levels. Like whenever I try to use a function, it's depreciated or behave differently. Any tips for a newbie? Good books?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel