• Breaking News

    Tuesday, March 8, 2022

    Android Dev - Weekly Questions Thread - March 08, 2022

    Android Dev - Weekly Questions Thread - March 08, 2022


    Weekly Questions Thread - March 08, 2022

    Posted: 08 Mar 2022 06:00 AM PST

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    Basic application with Jetpack compose vs flutter

    Posted: 08 Mar 2022 07:35 AM PST

    If you were to write a basic application that can be easily written in flutter, what will you choose between flutter and android jetpack compose.

    The things to consider on your answer are:

    • You have good knowledge for building apps with both flutter and android jetpack compose
    • The development time
    • Your main target is Android
    • The easiest way to develop the app

    Note: I am a flutter and react.js developer, most of my clients have basic android app requirements. The reason I learned flutter over native android, is because at the time, xml for android was harder to learn than flutter for me, but now with the stable release of jetpack compose, I'm considering learning it. I appreciate your thoughts

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

    Intro Showcase View - Open source library to highlight different features of the app built using Jetpack Compose.

    Posted: 08 Mar 2022 05:22 AM PST

    Hi everyone! We recently published this open-source library. Please share your feedback and valuable suggestions.

    Is there anything we can do to improve its usability or accessibility?

    https://github.com/canopas/Intro-showcase-view

    Here's the article for those who are curious about implementation.

    https://blog.canopas.com/intro-showcase-view-in-jetpack-compose-ac044cd3bf28

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

    As an android developer who's starting out, how does this code look?

    Posted: 08 Mar 2022 03:21 AM PST

    Hello r/androiddev,

    I've been making small, self-contained apps for android for some time now. I don't consider myself to be a pro or even a good programmer. Irrespective of that, I make open-source, minimalist software inspired by communities like r/suckless.

    I've been working on a Gopher protocol for about a month now. I would really appreciate it if I got some advice/tips on what i can do better, what I'm doing wrong, etc.

    Another thing that I noticed is that my client is slow in rendering pages compared to other clients. I would really appreciate it if someone could let me know why that's the case. Is it because I'm first checking for content type and then loading the page ? I did it this way assuming that this is how it's generally done.

    link to the app repo.

    Thank You.

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

    Wha development tools has your company created that help improve your android development process?

    Posted: 08 Mar 2022 07:20 AM PST

    For example, in a previous workplace, they've created an sdk that helped testers do their job faster by allowing them to do various actions in the app like: crashing the app, switching between flavour, triggering certain notifications.

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

    Will Jetpack Compose Take Over XML?

    Posted: 07 Mar 2022 06:11 PM PST

    Hello everyone, I have a concern about Android Studio's fairly new Jetpack Compose feature. I've made a few apps in the past and have become very comfortable with using XML files for designing layouts. I'm becoming more familiar with Jetpack Compose, but I'm no expert by any means.

    My main question is what does this mean for XML? Will Android Studio get rid of it all together?

    Since Jetpack Compose is fairly new, it's difficult finding good tutorials about how to create complex layouts/views and animations, so I'm pretty concerned. I'm not yet aware of any 3rd-party libraries that help create unique Jetpack Compose views.

    Any helpful comments or tips will be much appreciated!

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

    cat controls dont work

    Posted: 08 Mar 2022 03:01 PM PST

    i wanted the cat controls but they dont work while doing the thing with circle there sre no the cat emoji and nothing happens i have oppo a74 11 android

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

    An open source compositional deadlock detector for Android Java

    Posted: 08 Mar 2022 10:03 AM PST

    Anyone experiencing long review times?

    Posted: 08 Mar 2022 07:23 AM PST

    I've had apps on the Play Store for years and have never gone through any lengthy review process. They've pretty much been published when I submit them. Lately updates have been sitting in the "review" state for days. Not only that, some updates are being rejected for random reasons.

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

    Using custom backend

    Posted: 08 Mar 2022 06:21 AM PST

    Hi guys,

    do you recommend creating own backend for relatively simple app ?

    Description of the app: - it'd cookbook, where you can find recipes by ingredients. - users might be able to comment, post recipes, store favorite recipes, scroll through recent/most liked recipes etc. - ....

    I have created rest api similar to this before in django. I would like to know if it is better to use firebase, aws or it is fine using own backend.

    Thank you

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

    Compose destination for those who were hurt by compose navigation

    Posted: 08 Mar 2022 09:28 AM PST

    https://github.com/raamcosta/compose-destinations

    Example with bottomsheets: ```koltin //Activity val navController = rememberAnimatedNavController() val bottomSheetNavigator = rememberBottomSheetNavigator() navController.navigatorProvider += bottomSheetNavigator ModalBottomSheetLayout( bottomSheetNavigator = bottomSheetNavigator ) { DestinationsNavHost( navController = navController, navGraph = NavGraphs.root, engine = rememberAnimatedNavHostEngine() ) } //Main screen @Destination(start = true) @Composable fun MainScreen(navigator: DestinationsNavigator){ ///// someOnClick{ navigator.navigate(CreateScreenDestination) } } //Other screen @Destination @Composable fun CreateScreen( navigator: DestinationsNavigator, propertyResultRecipient: ResultRecipient<PropertyBottomSheetDestination, Properties> ){ var properties by remember { mutableStateOf(Properties.default()) }
    propertyResultRecipient.onResult { newProperties -> properties = newProperties } }

    @Destination(style = DestinationStyle.BottomSheet::class) @Composable fun PropertyBottomSheet( resultNavigator: ResultBackNavigator<Properties> ) { onNewPropertiesSet{ resultNavigator.navigateBack(result = it) } } ```

    But compose animation(used in bottomsheet etc.) is still not stable So those optin annotation will be there

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

    Update Play Store version by released apk

    Posted: 08 Mar 2022 08:53 AM PST

    I would like to check if it's possible to update an app installed from Google Play store with a released apk file ? The store version was uploaded as Android App Bundle. Currently, my app is not available in store now so if I give my users the apk file, will they be able to update the existing version or they need to uninstall the old one first ? Thank you.

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

    Android app configuration class

    Posted: 08 Mar 2022 04:21 AM PST

    If you need a type safe configuration object in your app that doesn't require any runtime file parsing, check this out: https://github.com/pstanoev/android-mojoconfig

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

    Android Services Quiz

    Posted: 08 Mar 2022 09:26 AM PST

    #mobchallenges #androiddevelopment #challenge

    Do you know Android Services well, so try this quick quiz and evaluate yourself? I am going to provide more challenges and quizzes if I found you interested. Give it a try and be honest, do not use Google.https://forms.gle/3iJRGCPXYgEjwHXy9

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

    App approval times really slow?

    Posted: 08 Mar 2022 01:55 AM PST

    I relaunched an old inactive app and it takes 4 days so far for it being checked by Google. Normally app updates where checked in like just a few hours or a day. Is anyone else experiencing very slow approval times?

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

    'fastboot devices' command not working. I have all the necessary drivers installed.

    Posted: 08 Mar 2022 04:39 AM PST

    device - Redmi note 7 pro (voilet)

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

    Remap proguard to access previous stored objects

    Posted: 08 Mar 2022 12:24 AM PST

    Hi there,

    maybe I can find some proguard experts here.

    The situation:

    1. Objects (.com.package.model) are stored inside a SQLite Database as Gson strings
    2. currently no proguard exceptions were added
    3. app is released on the play store
    4. after updating the release, app crashes with "Expected begin array but found String" error
    5. disabling proguard or adding the exceptions to both releases lets the error disappear

    As the app is already released, does anyone know how I can map the old apk to the new one?

    I am willing to pay you a coffee ;)

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

    Good example/tutorial of managing fragments with navigation controller or fragment manager (whichever is easier to implement)?

    Posted: 07 Mar 2022 10:56 PM PST

    I want to have YouTube like navigation in the app I'm developing. Also the the data should not load again from the internet when the user go back to previous fragment. Going back to previous selected menu when system back button is pressed is not that important

    How difficult or easy is this function to implement?

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

    Any good web3 libraries?

    Posted: 07 Mar 2022 09:38 PM PST

    I see a lot for JavaScript/web development, but I was looking for some native Java/Kotlin/android libraries to interface with the web3 network?

    Mostly just want a fun/new project, not looking to make anything production grade.

    Doesn't necessarily have to interface with the blockchain or anything. More so looking for some sort of distributed data sharing on the network similar to gunjs

    I have a good amount of experience with android development, but am completely clueless in the web3 space. Im still educating myself, so sorry if this is a dumb request.

    I saw web3j, looking for others that may exist as well

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

    How to devlope native apps on Blockchain

    Posted: 08 Mar 2022 03:13 AM PST

    Hi, I am an Android developer and am interested in blockchain. However, I am hoping to learn blockchain for app development instead of web development

    Is it possible to create a mobile native app on blockchain 100% or partially or is it not possible at this time?

    Example apps include social media, productivity, etc.

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

    android_beta

    Posted: 07 Mar 2022 07:09 PM PST

    No comments:

    Post a Comment