• Breaking News

    [Android][timeline][#f39c12]

    Friday, July 30, 2021

    Weekly Anything Goes Thread - July 30, 2021 Android Dev

    Weekly Anything Goes Thread - July 30, 2021 Android Dev


    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]

    Fun with Compose: Bad UI in a Great Framework

    Posted: 30 Jul 2021 09:02 AM PDT

    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

    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]

    Lottie Android and Compose 4.0

    Posted: 29 Jul 2021 07:21 PM PDT

    Google Universal App Campaigns. How much time/users does it take to accurately target user actions?

    Posted: 30 Jul 2021 11:52 AM PDT

    I'm having trouble getting a google ads universal app campaign to get me the amount of users who complete actions as I think it should.

    I'm targeting users using firebase analytics who keep and use the app for longer than 24 hours, based on my analytics that number is around 43% of users (close to half). And when I've done campaigns to just get any users in the past it cost around 80 cents per install. When I target the 24+ hr users and bid $3 it isn't able to get me that much for the price point, the avg ends up being about $8 to 12 per user who completes that action (even though it should be about $2 since its normally half of the users).

    I have a few hundred users who hit the event per day which is supposed to be more than the minimum for googles AI to figure it out. Anyone else have a similar problem and figure out how to fix it?

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

    Composing composable in the Text line with InlineTextContent in Jetpack Compose

    Posted: 30 Jul 2021 08:02 AM PDT

    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]

    Play will host a Policy webinar in August

    Posted: 30 Jul 2021 07:24 AM PDT

    Rewriting my app, java, kotlin, (compose?) advice.

    Posted: 30 Jul 2021 02:47 PM PDT

    So around a year ago I started working on a sports stopwatch app, just to see if I can pull it off, based on the fact that I kinda knew C# and java should be similar.

    I pulled it off, but given the fact I started with the mindset of "I wonder if I can make a clock that counts down", and ended up with lots of features, using room database and saving a bunch of data, all while adding any feature just to make it work not caring about design at all, it's honestly impressively badly written code, worse than most would imagine, and I'm shocked it works as well as it does (our small league actually uses the app for managing its games via screen mirroring, its really cool).

    So now I have 2 months off pretty much, and I want to rewrite the whole thing, so it's presentable whenever I decide to go job hunting, and to just learn more and be able to expand the app easily.

    I would say I'm pretty ok with java, but the vibe I'm getting from this sub is that java is on its way out while kotlin is the shit, and maybe compose should be thrown in (I'm definitely not sure where compose even fits in here).

    Given the fact the I'm time constrained:

    • Should I just stick to java to save time?
    • Will kotlin take a while to get used to, or is it a fairly simple switch?
    • Should I try using compose, or is it really new and I'll get stuck on unanswered questions and odd bugs?
    • Are the design concepts mostly the same? OOP and all these fun stuff.
    • Should I ask any more questions and consider more things before I decide?

    tl;dr - rewriting an app. java (which I kinda know) VS kotlin (never touched that)

    and maybe compose? I'm really not sure where compose fits.

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

    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]

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

    Posted: 30 Jul 2021 04:39 AM PDT

    FIREBASE problem

    Posted: 30 Jul 2021 12:05 PM PDT

    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]

    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

    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

    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]

    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 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]

    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]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel