• Breaking News

    Tuesday, March 3, 2020

    Android Dev - [FB Engineering] Project LightSpeed: Rewriting Messenger to be faster, smaller, and simpler

    Android Dev - [FB Engineering] Project LightSpeed: Rewriting Messenger to be faster, smaller, and simpler


    [FB Engineering] Project LightSpeed: Rewriting Messenger to be faster, smaller, and simpler

    Posted: 02 Mar 2020 10:04 PM PST

    PSA: Android Studio 3.6 tends to forget your active build flavor, in which case pressing 'Run' button executes 'assemble' task, and runs compilation for ALL flavors in ALL build types (both debug and release)

    Posted: 03 Mar 2020 06:00 AM PST

    I thought I was messing something up originally, but it seems that if you switch between flavors, Android Studio 3.6 issues gradlew assemble and then no wonder the build takes more than 10 minutes.

    It's better to use terminal command gradlew :app:assembleFlavorIActuallyWantDebug to avoid this issue.

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

    Do we still need LeakCanary now that Android Studio 3.6 has "Memory Leak Detection"?

    Posted: 03 Mar 2020 03:00 AM PST

    30 Best Android Libraries and Projects of 2019

    Posted: 02 Mar 2020 11:52 PM PST

    Dynamic Headers per endpoint with Retrofit

    Posted: 02 Mar 2020 11:28 PM PST

    Now in Android

    Posted: 03 Mar 2020 07:09 AM PST

    GitHub: lndmflngs/compound-text-view - Change gravity of Image Drawable in TextView ��

    Posted: 03 Mar 2020 06:47 AM PST

    Terminated Account for app that's not even public yet - next steps?

    Posted: 02 Mar 2020 11:06 AM PST

    Hi everybody. I got home today from work, excited to work on my side project app. I start cooking our dinner and my girlfriend tells me she can't find the app on the Play store anymore (in closed release). I check my developer account and there's an email from Google. The thing happened that I think many of you dread too: my Google Play Developer/Publisher Account got terminated.

    The reason for the ban is deceptive behavior. While not giving any more reasoning behind it, the last thing I updated recently was the app category the day before, so that is probably why.
    Now, to the best of my abilities, I took my time choosing the right categories. I ended up with 4 that I think fit it best. I re-read the list a few times before submitting my choice.
    Now, a day later, I don't even have a developer account.

    What makes this worse to me is that:

    • I didn't get a warning, saying 'hey, we think this category might not fit your app'. No, Google just straight up terminated my account (which I paid for!)
    • The app was in closed alpha release, so not even public
    • This is my first app ever
    • I've been working for months on this app in my spare time
    • I was going to use this application in my portfolio/resume

    As a bit of background info: it's a silly game app, where the goal is commanding a little rocket to a kind of space portal without colliding with surrounding objects. Very simple in theory. Innocent.
    The app is built in Flutter, a (Google!) technology I've invested a good chunk of my time in in the past year. I participated in a Flutter contest by Google in May last year and won one of the minor prizes with it. I didn't get the prize for 6 months after the contest, until I casually mentioned that in a comment on the Flutter subreddit. They saw my comment, came back to me within hours and I got my prize that week. Just to say that my encounters with Google haven't been great the past year.

    What should my next steps be? I've read online a bit on appeals but most people say they get an automated answer that tells them to never try that again.

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

    where can i buy (or sell) android app source codes?

    Posted: 03 Mar 2020 05:49 AM PST

    You Don’t Need to Null Out Views

    Posted: 02 Mar 2020 01:24 PM PST

    [Help needed] Android Studio and Tests Orchestrator.

    Posted: 03 Mar 2020 08:48 AM PST

    Hey everyone! I have a "problem" in Android Studio when running tests with the test orchestrator. When I'm running tests in the emulator directly from Android Studio (with the Play button), every tests run as they should, but only the first one is displayed in the "Run" tab. It makes checking which tests failed more painful than it is without the orchestrator.

    Is there a solution to this?

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

    Youtube channels go watch as a mobile developer

    Posted: 03 Mar 2020 08:46 AM PST

    Hi.I am slowly getting into mobile development and i want to watch some youtube guys who are doing this and have preatty good videos about this field.Which ones are you guys watching and which you recommand?

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

    Question about LiveData, MVVM, Coroutines, and Repositories

    Posted: 03 Mar 2020 08:11 AM PST

    Oh hey there!

    So, I've been playing around with Android Arch Components lately, having never used ViewModels or LiveData, at least not correctly. Coroutines are also new to me, and I thought it would be the best of ideas to use all three new things at the same time. What could go wrong.

    Now, I got something together and working, but I'm not at all sure it's clean, and am just wondering what people do with Retrofit's `suspend` functions, repositories, and loading data from multiple sources.

    The basic data flow I'm trying to work with, and questions I faced, is as follows, from bottom up (`Resource` mentioned is the standard Android Resource sealed class, with success, error, and loading states):

    Remote data source: Retrofit 2.6 service - what's best practice to return here? `Call<T>`? Just raw `T`?

    Local data source: Room - returns `LiveData<T>`.

    Repository: I want to retrieve from local, and, if not found, default to remote. I have a `getT(): LiveData<Resource<T>>' method, that uses the `liveData` scope.

    ViewModel: Just returns Repository's `getT()`.

    The main thing I'm unsure of is what the repository should look like, really. There's lots of conflicting tutorials out there, with very different Retrofit service definitions, so I'm just wondering which one would be the cleanest to use.

    Thoughts and suggestions welcome!

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

    Declarative lists on Android With RecyclerView + ViewBinding

    Posted: 03 Mar 2020 08:09 AM PST

    Want to become a developer-HELP

    Posted: 03 Mar 2020 07:28 AM PST

    Hello,

    I am a cs student, that would like to start app development for android devices. Can you recommend me good tutorials(videos)/uni courses/lectures (that i can read and learn the basic things-how to use android studio?). Would prefer if it is free of charge since i dont have income atm. Thanks in advance and sorry if i shouldnt have posted something like this!

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

    Is there a way to update a column of entity in room db while observing it using LiveData in RV?

    Posted: 03 Mar 2020 06:34 AM PST

    Let's say I have this model

    class Item(val id: Long, var position: Int) where id is the primary key.

    the RV is observing the LiveData<List<Item>> thru Room db and updating the UI.

    What I want to do is to swap the position of the two rows (using the position property), while keeping the UI up to date, I tried many ways but I have always ended up with buggy code.

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

    How to Choose the Right Ad Monetization Partner?

    Posted: 03 Mar 2020 04:40 AM PST

    Every developer who monetizes with ads has a headache about eCPMs they get. Some devs simply stick to traditional solutions (Admob, Mopub, etc), others are trying to find any alternatives to the one they're using. As you may know already, key eCPM drivers are a number of demand partners, high fill rates and header bidding technology. Additional features such as immediate payouts and wide range of ad formats could encourage you to check out Appodeal mediation today. https://blog.appodeal.com/how-to-choose-the-right-ad-monetization-partner/?utm_campaign=appodeal_comm&utm_source=froum&utm_medium=social

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

    How do I make my Android app 18+?

    Posted: 03 Mar 2020 04:11 AM PST

    I want only 18+ users to download my app. It's not explicit content or anything, so Google only gave it a "3+" rating.

    Is there any way I can manually make it 18+?

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

    Must Go YouTube Channels to learn updates about Android Dev

    Posted: 03 Mar 2020 04:10 AM PST

    What are some of the YouTube channels you guys use to learn new things about Android Development or Kotlin or any new libraries ?

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

    I don't think this is intended.

    Posted: 03 Mar 2020 03:04 AM PST

    I was writing my own ItemTouchHelper for my RecyclerView and came across this Method in the original ItemTouchHelper.java. I don't think this for loop does anything and someone forgot to use "i" as index or am I missing something?

    private void destroyCallbacks() {
    mRecyclerView.removeItemDecoration(this);
    mRecyclerView.removeOnItemTouchListener(mOnItemTouchListener);
    mRecyclerView.removeOnChildAttachStateChangeListener(this);
    // clean all attached
    final int recoverAnimSize = mRecoverAnimations.size();
    for (int i = recoverAnimSize - 1; i >= 0; i--) {
    final RecoverAnimation recoverAnimation = mRecoverAnimations.get(0);
    mCallback.clearView(mRecyclerView, recoverAnimation.mViewHolder);
    }
    mRecoverAnimations.clear();
    mOverdrawChild = null;
    mOverdrawChildPosition = -1;
    releaseVelocityTracker();
    stopGestureDetection();
    }

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

    Xiaomi still ruining ruining how apps behave by default, against how Android is supposed to work

    Posted: 03 Mar 2020 02:42 AM PST

    Can interstial ads be made to be closed by a swipe and have clicking on it to be disabled?

    Posted: 02 Mar 2020 10:56 PM PST

    I just want to have my ads as non-intrusive as possible and would be sastified with a somewhat mild eCPM. This way, the ads would still get to the user as they can't really develop something like banner blindness to close it while minimizing annoyance.

    Interstitial ads always have an excuse of a button on some far corner but swiping to close would resolve the issue of needing a precise click and speeds up the whole process.

    Let's say my app has an option in the settings so that the user can disallow clicks on the ad to be registered, will that affect viewing revenue at all or just click revenue?

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

    Next Android Tutorial Video Discussion

    Posted: 02 Mar 2020 10:28 PM PST

    Hello fellow developers!!

    I have recently started a Youtube Channel. I wanted to create some videos so that it will be helpful to the community. I have a few ideas to make my next Android tutorial videos. I wanted to create a poll on two of my next ideas and depending on the community interest. I'll work on it :)

    1) Background Services - Something with live location tracking as an example that runs in the background.

    2) How I use retrofit networking library in my daily job and why it is in a separate module?

    3) Please feel free to comment your ideas below and I'll try to work on them.

    I mentored few interns at my company and I felt super happy in sharing my knowledge in the best possible way. So, I got this idea to share my knowledge with the world through Youtube.

    Thank you all in advance

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

    view binding linting problem

    Posted: 03 Mar 2020 12:27 AM PST

    view binding linting problem

    when I try to switch jvm target version to 1.8 since I'm trying to use by activityViewModels() Kotlin property delegate, binding classes got unresolved despite of when I run the app it works very well

    this is my configs

    compileOptions {
    sourceCompatibility = 1.8
    targetCompatibility = 1.8
    }
    kotlinOptions {
    jvmTarget = 1.8
    }

    https://preview.redd.it/4xwkdxyn4fk41.png?width=399&format=png&auto=webp&s=07e12b702f3653664024207d0f15d655fd5fdb42

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

    No comments:

    Post a Comment