• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, February 4, 2020

    Developers have earned over $80 billion in total from the Google Play Store Android Dev

    Developers have earned over $80 billion in total from the Google Play Store Android Dev


    Developers have earned over $80 billion in total from the Google Play Store

    Posted: 04 Feb 2020 07:05 AM PST

    Hiroshi Lockheimer, SVP at Google, has confirmed on Twitter that to date, developers have earned over $80 billion in total from the Google Play Store globally, excluding the Chinese market

    https://www.xda-developers.com/developers-earned-over-80-billion-total-play-store/

    This means that Google made $34 billion in the same period. Considering that the earnings are proportional in these 12 years, Google has earned almost 2.9 billion dollars every year from developers' applications.

    This proves that they have the operating margin to have a sufficient number of people, with experience and good skills, to manage account bans. They have no excuse when they leave most of the ban management to bots and only intervene when a case becomes of public interest.

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

    Karumi Android 2020 development stack

    Posted: 04 Feb 2020 04:25 AM PST

    Android Styling: Themes vs Styles

    Posted: 04 Feb 2020 01:56 PM PST

    Will Android 11 kill legacy apps?

    Posted: 04 Feb 2020 12:31 PM PST

    My concern is regarding the storage issue. As far as I know, even apps targeting older API level and using File based methods for storing data on internal storage will also not work.

    So, seeing the total number of applications that still use this technique to store data, does in mean that Android 11 will render many apps useless? Will there be any backlash from the users?

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

    The path to DX deprecation

    Posted: 04 Feb 2020 09:53 AM PST

    Iowa Caucus App

    Posted: 04 Feb 2020 01:25 PM PST

    Does anyone know the name of and how to get a copy of the Android / iOS application developed be shadow inc?

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

    What android studio plugins do you use to help coding a bit faster?

    Posted: 04 Feb 2020 04:31 AM PST

    WorkManager 2.3.0 READ_PHONE_STATE?

    Posted: 04 Feb 2020 06:47 AM PST

    As stated in the title, we've got feedback from the user that our app is requesting READ_PHONE_STATE permission. After some digging, since I was a hundred percent sure that I do not request that permission and I never had it there, I've found that the READ_PHONE_STATE & FOREGROUND_SERVICE was added by WorkManager 2.3.0

    from manifest-merger-blame-report.txt

    32-->[androidx.work:work-runtime:2.3.0] /xxxx.gradle/caches/transforms-2/files-2.1/a236565121c4ade6e3e55f27ed115ca9/work-runtime-2.3.0/AndroidManifest.xml:27:22-78 33 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> 33-->[androidx.work:work-runtime:2.3.0] /xxxx/.gradle/caches/transforms-2/files-2.1/a236565121c4ade6e3e55f27ed115ca9/work-runtime-2.3.0/AndroidManifest.xml:28:5-77 33-->[androidx.work:work-runtime:2.3.0] /xxxx/.gradle/caches/transforms-2/files-2.1/a236565121c4ade6e3e55f27ed115ca9/work-runtime-2.3.0/AndroidManifest.xml:28:22-74 34 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 35 36 <application 36-->/xxxx/app/src/main/AndroidManifest.xml:23:5-338:19 

    Does anybody have any clue why is the workManager adding it? We have a problem explain it to a user because I'm myself clueless.

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

    Anyone else experiencing users unable to install apps from Google Play Store?

    Posted: 04 Feb 2020 04:18 PM PST

    Hey there - I was contacted by one of my users a while back that they were unable to install the app. I actually met up with them and they showed me how they tried to install it - the app would download but when the system tried to install it, they got a popup message saying:

    Can't install [appname]

    Try again, and if it still doesn't work, see common ways to fix the problem

    Send Feedback | Ok

    The user is using a Pixel 2 running Android 10 - and I have other users on the same device and OS version, so this isn't some compatibility problem. And my app itself has no restrictions on which devices can or can't install it. Additionally this is all based in North America so I think localization shouldn't be an issue.

    I tried to get the user to clear the cache for Google Play among other things but to no avail After some google-fu I found this post from the Google Support forums. Seems like others are also experiencing it.

    Have any of you experienced this problem with your users? Any steps or help to fix it? For what it's worth the only thing I can think about is because I have an Open Beta Track in Google Play.

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

    2020 Java Technology Report

    Posted: 04 Feb 2020 01:23 AM PST

    Bottom NavigationView Inside Fragment With ChildFragmentManager Creates Overlap View

    Posted: 04 Feb 2020 03:30 PM PST

    I'm trying to show Material Bottom Navigation Inside Fragment. My Bottom Navigation View has three fragments inside it. I solve the problem when the Fragment creates a new instance every time when we select the Navigation item. But the real problem occurs when I navigate to another fragment from my Navigation Drawer. Here's how my Bottom Navigation structure looks like.

    Main Fragment (All the following items are the bottom navigation view items inside Main Fragment).

    1. Home Fragment
    2. Notification Fragment
    3. Search Fragment
      Here's how I'm adding, showing, and removing fragment with Fragment Manager. It is an extension function.

    fun FragmentManager.hideAndShowFragment( newFragment: Fragment, containerId: Int, hideFragmentInstance: Fragment? = null ) { beginTransaction().apply { if (hideFragmentInstance == null) { add(containerId, newFragment) commit() return } if (fragments.contains(hideFragmentInstance)) hide(hideFragmentInstance) if (fragments.contains(newFragment)) show(newFragment) else add(containerId, newFragment) commit() } } 

    In the above code, the first condition is for when there is no fragment showing and don't need to hide the previous fragment. And then if the FragmentManager List<Fragment>
    contains the previous fragment first hide, then show the new fragment accordingly.

    And this how I'm calling this extension function.

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?) : View { ///// other stuff bottomNav.setOnNavigationItemSelectedListener { menuItem -> val previousFragment = getCurrentShowingFragment(currentId) val newFragment = getNewFragment(menuItem.itemId) childFragmentManager.hideAndShowFragment(newFragment, CONTAINER_ID, previousFragment) currentId = menuItem.itemId } // First time childFragmentManager.hideAndShowFragment(getNewFragment(currentId), CONTAINER_ID, null) } 

    Now when I try to navigate to another fragment with Navigation Drawer and came back by pressing back button the current showing fragment view sticks to the screen even I try to click on other bottom nav items it just never disappears.

    Here is the video demonstration.

    Thanks for your time.

    submitted by /u/programming-nerd
    [link] [comments]

    Kotlin - Comprehensive tutorial?

    Posted: 04 Feb 2020 09:04 AM PST

    I know of the zhuniden guide but I want something easier to follow with code examples. Like a proper coursera or udemy type tutorial that covers basic as well as advanced topics.

    I know Java (Android) but my knowledge is mostly outdated.

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

    Can anyone eli5 this Intent constructor?

    Posted: 04 Feb 2020 02:51 PM PST

    Hi new to Kotlin + android development.

    Just started doing a basic tutorial and playing around with android dev.

    I have two activities one main and another second activity. I want to pass some information from main to secondary.

    As far as I understand it, intents are pretty much that as in I intend to do this so it is an action to be performed, much like in the English language.

    Anyway part of the code in mainactivity says:

    val intent: Intent = Intent(this, SecondActivity::class.java) 

    startactivity(intent)

    So I am declaring an immutable object of type Intent and I am passing two arguments to the constructor, the first basically says that the intent is from this current activity where the code is written (in this case mainactivity) and the other activity we are starting is the second activity. We then use the function startactivity to move us over to the second activity (i.e. to change the page on the app, and then we can use the onCreate method of that activity to do what we want, which is just to copy some information in this case).

    My question is this:

    1. Can anyone explain if I am roughly correct in what I am saying.

    2. Can anyone explain (in simple terms if possible) why the second parameter is "SecondActivity::class.java". I have never seen this :: notation before and I don't understand why I can't just write SecondActivity?

    Thank you!

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

    How to create good looking ui?

    Posted: 04 Feb 2020 07:17 AM PST

    Hi guys i am new to Android development , i am good at the coding stuff but the ui i create are very ugly. Any tips or some Android features i can make use of to make a beautiful ui?

    submitted by /u/PIKa-kNIGHT
    [link] [comments]

    Anyone able to get Huawei Ads Kit working?

    Posted: 04 Feb 2020 02:01 PM PST

    We have an app launching in China and our old ad platform won't work. However, their ad kit doesn't seem to actually work.

    https://developer.huawei.com/consumer/en/codelab/HUAWEIAdsSDK-BannerAds/index.html

    I've gotten a few people trying to get their example project working with no dice. The project can be downloaded here: https://developer.huawei.com/consumer/en/codelab/HUAWEIAdsSDK-BannerAds/index.html#8

    Absolutely baffling. I'm thinking it doesn't work over anything but 4g internet source or perhaps is geolocked? The errors just say unable to load or internal.

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

    Examples for multi-module apps with one module per feature

    Posted: 04 Feb 2020 01:24 AM PST

    Recently, I have often read about apps with multiple modules. Often in the context of decreasing build times but also when it came to better collaboration and clean(er) code.

    What are examples of apps that incorporate this multi-module structure, preferrably open source? I'd like to learn more about how to do that on scale.

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

    Full Package Vavoo Bundle February 2020

    Posted: 04 Feb 2020 01:41 PM PST

    Example of Coroutines Flow w/ Testing + MVVM + Clean Arquitecture

    Posted: 04 Feb 2020 09:45 AM PST

    Default to 60fps for mobile game or not?

    Posted: 04 Feb 2020 12:37 PM PST

    Good morning. Anyone got any opinions on whether to default to 60fps on mobile games or not? I'm developing in Unity. My platform/action game runs smoother with it, but I worry about the drain on battery. It still runs fine without it, just not as silky smooth. I've put the option in the game, but I'm wondering whether to default to it or not. Any opinions/exp with this? Any idea how much more of a battery drain 60fps causes? Thanks.

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

    Do Android developers have to worry about how their app uses resources (battery, memory) or is this handled by the OS?

    Posted: 04 Feb 2020 12:11 PM PST

    Single Activity App with Interface for Communicating FROM Fragments

    Posted: 04 Feb 2020 12:05 PM PST

    I'm having issues testing fragments in isolation with FragmentScenario when using Dagger and a single activity that implements an interface for communication with the fragments.

    When using launchFragmentInContainer<MyFragment> there is no way to set a mock'd interface. Since the activity is not created, this throws an exception.

    I can't create a "TestFragment" that extends the fragment in test because I'm using constructor injection in the Fragments. Otherwise I could just create a function for setting the interface and override it.

    activity_main

    <CoordinatorLayout> <AppBarLayout> <Toolbar/> </AppBarLayout> <FrameLayout/> <ProgressBar/> </CoordinatorLayout> 

    UICommunicationListener

    interface UICommunicationListener{ fun displayProgressBar(isLoading: Boolean) fun hideToolbar() fun showToolbar() fun expandAppBar() fun displayToastMessage(message: String, length: Int) fun displaySnackbar(message: String, length: Int) } 

    MainActivity

    class MainActivity: AppCompatActivity(), UICommunicationListener { // insert respective override functions from UICommunicationListener } 

    SomeFragment

    class SomeFragment @Inject constructor( private val viewmodelFactory: MyViewModelFactory ): Fragment(){ lateinit var uiCommunicationListener: UICommunicationListener override fun onAttach(context: Context) { (activity?.application as BaseApplication) .appComponent .inject(this) super.onAttach(context) try{ uiCommunicationListener = context as UICommunicationListener }catch (e: ClassCastException){ e.printStackTrace() } } } 

    Anyone else struggled with this? Integration tests with ActivityScenario are fine but the I'd like to be able to test the fragments in isolation.

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

    What happened in Iowa?

    Posted: 04 Feb 2020 10:58 AM PST

    It's hard to get straight news on the subject, but it sounds like they made everyone in Iowa sideload the apk they used for the DNC caucuses? Does anyone have any more information? They keep saying people "couldn't log in", but is that because they couldn't figure out how to sideload the app?

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

    Record a video with my app

    Posted: 04 Feb 2020 10:47 AM PST

    Hi everyone, I would like to ask how can I record a video with my app.

    I don't want to open de camera and need the user to click the button, I want to open the camera and instantly start recording for a short period of time.

    I tried a lot of things, and I tried some background service but I can never get the camera to do it, I want to see what is been recorded.

    Is there some way to do it?

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

    Advice on some API's I should use

    Posted: 04 Feb 2020 10:28 AM PST

    So right now I am in an Android Development class at school and we have a project where we think of an app and then make it after we get it approved by our professor. I was planning on making an app where you can search where you can watch something. Like I would want to have it able to search through Hulu and Netflix, using unofficial APIs, and I was hoping to also get Plex on there but that's a whole other thing. Does anyone have recommendations on what APIs I could use for this? I already know I will have to use multiple. Any help would be great

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel