• Breaking News

    Friday, July 30, 2021

    Android Dev - Weekly Anything Goes Thread - July 30, 2021

    Android Dev - Weekly Anything Goes Thread - July 30, 2021


    Weekly Anything Goes Thread - July 30, 2021

    Posted: 30 Jul 2021 06:00 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]

    Lottie Android and Compose 4.0

    Posted: 29 Jul 2021 07:21 PM PDT

    Composing composable in the Text line with InlineTextContent in Jetpack Compose

    Posted: 30 Jul 2021 08:02 AM PDT

    Fun with Compose: Bad UI in a Great Framework

    Posted: 30 Jul 2021 09:02 AM PDT

    Anyone familiar with the new google dev policy updates announced recently:

    Posted: 30 Jul 2021 04:27 AM PDT

    I have read all policy pages but I am wondering and not sure is there anything that I should update in my apps that:

    • Doesn't contain any google ads thing.
    • Targeting to kids(student) and adult(parents).
    • I have opted for the Family-friendly policy.
    • Some apps use Text to speech library.
    • Asks for WRITE_EXTERNAL_STORAGE, CAMERA, INSTALL_SHORTCUT etc. permissions.
    • Users are registered with their email id and no data is shared anywhere.

    That's all for now, Please guide me on what should I update in my apps, store listing etc. so that there is no app update rejection in the coming time.

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

    What's the point of Intent flags conjunction?

    Posted: 30 Jul 2021 07:51 AM PDT

    Hi! We have android:launchMode="singleTask" which indicates that with default task affinity it will destroy activities on top of the task till it gets to the needed activity and call onNewIntent() method in that activity. We also have Intent flag for this purpose - FLAG_ACTIVITY_NEW_TASK. Here comes my questions:

    1. What's the point of conjunction in this case? FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP (launch mode "singleTask" removes activities above our needed activity there's no need to call CLEAR_TOP flag) P.s sometimes people use CLEAR_TASK instead of CLEAR_TOP and that's weird too. (if you clear the whole task, your needed activity is the root of that task, there's no need to call launch mode "singleTask")
    2. Why do we use "|" sign in Java (in Kotlin it will be "or"). If we want to get accomplished all flags we can use "and" or "&" sign. If we use "or" or "|", we indicate that system should take one of those flags?
    submitted by /u/Danil_Ochagov
    [link] [comments]

    Why is App Context even a thing?

    Posted: 30 Jul 2021 07:38 AM PDT

    Why wasn't it decided at the start to just give developers methods like getString(int resId) that work everywhere without Context?

    After all, everything the app executes is... executed in the app. So it must have access to those Resources, even without Context.

    So I don't see a reason why Context is required in so many places, apart from specific cases like Activity/Layout stuff which requires some kind of Context for good reasons.

    Not a beginner btw, but if a beginner asked me "Wait why can't I access my declared Strings in the data class I just created" I couldn't give them a good reason.

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

    How do you folks handle purchases outside Google Play?

    Posted: 30 Jul 2021 07:31 AM PDT

    Many of our users ask to buy the Premium version of our app without Google Play, either because they're in a region not supported by Google (China), or because they no longer use any Google dependencies on their phone (besides an AOSP fork).

    • Do y'all have a separate APK?
    • How do you sell it?
    • How do you handle payments?
    • Do you have any license codes or other purchase methods?
    • What about piracy?

    Looking for a conversation about approaches rather than a technical how-to.

    Thanks!

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

    Did you ever try to transfer your application to another Play Console account? Is it safe to do?

    Posted: 30 Jul 2021 05:08 AM PDT

    Fetch and display users by key and categorize them in android app.

    Posted: 30 Jul 2021 08:10 AM PDT

    Fetch and display users by key and categorize them in android app.

    https://www.youtube.com/watch?v=IDpgDoxybRc

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

    Arctic Fox doesn't let you change the IDE theme to anythign other than the two default themes

    Posted: 29 Jul 2021 12:55 PM PDT

    I downloaded Arctic Fox yesterday and it seems like it doesn't allow you to use custom theme plugins like Darcula Solid anymore. Can someone confirm this behavior?

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

    How do some developers get limited time events on Google Play? Is there a beta program for this?

    Posted: 30 Jul 2021 07:26 AM PDT

    Play will host a Policy webinar in August

    Posted: 30 Jul 2021 07:24 AM PDT

    Hello Guys, I want to know about how much time required google play console to transfer our application revenue and app sales in our bank account. can anyone tell to me. I have transfer my revenue to my bank account but 1 month 20 days ago my application revenue was not receive in my bank account.

    Posted: 30 Jul 2021 04:49 AM PDT

    Coroutines (Part II) – Job, SupervisorJob, Launch and Async

    Posted: 30 Jul 2021 04:39 AM PDT

    How to Choose a Tech Stack for a Mobile Application

    Posted: 30 Jul 2021 02:33 AM PDT

    Choosing the right tech stack for your mobile app is not an easy decision. There are many factors to consider, and you have to make sure that each of them is well deliberate as it directly impacts the success of your project. Check this blog post to help you with that: https://applandeo.com/blog/how-to-choose-a-tech-stack-for-a-mobile-application/

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

    How stable is the "id" integer of a resource asset?

    Posted: 29 Jul 2021 04:01 PM PDT

    I have drawables which I load as Bitmap objects, and those Bitmaps are stored in Item objects. I am saving the Item objects to a database, and saving the int:id as a reference to the drawable file. Is this wise? Is it best practice? Is it reasonable to fear that the reference will stop working?

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

    How many intern/junior Android dev positions are there compared to other dev positions in your country?

    Posted: 30 Jul 2021 01:34 AM PDT

    In mine, no company has open positions for interns and even juniors. I've searched in all of the hiring platforms, and I have exactly 0 opportunities. Many medior and senior positions, some React and even Flutter junior positions, but no native. I'm really sad and desperate now, feel like I'll never be an Android dev.

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

    A CS193P Like Course For Android

    Posted: 29 Jul 2021 09:21 PM PDT

    I came across CS193P, which is a course taught by Stanford, teaching students the basics of iOS development, and I really liked the course's difficulty level, how the instructor simply explains everything, and the fact that it is a project based Course, put simply I loved the course.

    Are there any similar university courses for Android Development? Any modern ones that use current practices?

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

    Robolectric vs espresso - ideal testing strategies

    Posted: 29 Jul 2021 10:06 PM PDT

    I hope Nitrogen will be out soon so we can just use espresso for off device unit test. For the time been whats your take?

    I talked to a Reddit app developer. He said Reddit doesn't use Robolectric, but from what I read about Google, they use Robo extensively.

    My take. Correct me if I am wrong. 1. Use Robo as much as possible to unit test every single piece of UI. The result is you are almost 100% certain each screen works as intended and bug free on its own. (Discount cross screen interaction)

    1. Use Espresso only when Robo is not possible and high fidelity is important (medium/large test). Example A. Cross screen flows and interactions). B. Things like sensors where Robo is not 100% reliable.

    3.I am not familiar with continuous integration. I imagine if you have a dedicated machine to do espresso testing 24/7. You probably can get away with no Robo and write everything in espresso and let that dedicated machine manage testing for your whole team.

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

    Firebase Cloud Messaging only works a couple of hours

    Posted: 29 Jul 2021 09:49 PM PDT

    I made a test app to try firebase cloud messaging, it only works hours after I install my test app, then it seldom receive any further messages, no idea what is wrong.

    Is is possible that the FCM server detect the activeness of your app, and screen those client that are not active?

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

    Room database caching - is it worth?

    Posted: 29 Jul 2021 08:34 PM PDT

    For majority of apps that serve online contents. (Excluding giants like FB). Do you think my points are right or wrong or something is missing? Is Room useful for anything other than offline mode and caching?

    1. Does it really make sense to use Room just for caching purpose? I don't see why I would ever use a news/social media apps when I am offline. Even if I occasionally use it offline that is maybe 1% of the time.

    2. Seems to me, adding Room will add development/maintenance cost by anywhere from 30-300%. There is just so much sql code you have to write and complicates repository layer logic so much. Also think about multi-device synchronization.

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

    Reasons to switch from Volley to Retrofit (or something else)?

    Posted: 29 Jul 2021 09:21 AM PDT

    I'm in the process of updating the internal network library my group's apps use to communicate with our backend. The library handles authorization and network requests/responses. It was originally written with Volley, but now's a good opportunity to consider other options for our network communication. So does anyone have a good reason for me to switch us over to Retrofit or something else?

    For context, this is the basic way we use our APIs: On login, apps download necessary data for functioning, making several API calls to get user and system info, along with definitions for certain things. Depending on the app, we do periodic synchronization calls to those same APIs or sync based on updates through SignalR. Updates to user settings, along with data collected on the user's side, are uploaded as needed. This includes using multipart puts/posts.

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

    No comments:

    Post a Comment