• Breaking News

    [Android][timeline][#f39c12]

    Saturday, January 1, 2022

    App Feedback Thread - December 31, 2021 Android Dev

    App Feedback Thread - December 31, 2021 Android Dev


    App Feedback Thread - December 31, 2021

    Posted: 31 Dec 2021 06:00 AM PST

    This thread is for getting feedback on your own apps.

    Developers:

    • must provide feedback for others
    • must include Play Store, GitHub, or BitBucket link
    • must make a top level comment
    • must make an effort to respond to questions and feedback from commenters
    • app may be open or closed source

    Commenters:

    • must give constructive feedback in replies to top level comments
    • must not include links to other apps

    To cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.

    As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.

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

    What types of Android development projects should I do that can be included in my resume?

    Posted: 01 Jan 2022 02:25 AM PST

    I am a CSE student looking to add value to my resume.

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

    GithubActions and package signing

    Posted: 01 Jan 2022 12:16 AM PST

    I have this setup at work, which I am trying to port to Github actions. The git repository has inside a `company.keystore` which is used for singing, and the gradle is coded in such way that it reads the keystore pasword + keys from a `keystore.properties` file - this one is not on git. Developers get it on the local machine - and its inside `.gitignore` (see note bellow).

    I want to have a github action that builds the APK - but I am unsure how to handle a safe retrieval of the `keystore.properties `. What do you recommend me doing to implement this?

    NOTE: I know that this is not ideal. I know that if someone gets the repository, he can brute force the keystore to get the passwords. This is what it is, and I cannot change it. Ideally - both the properties and the keystore were not in the (private) github repo.

    Happy new year!

    RIP Miss Betty White

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

    5 Uses of KTX LiveData Coroutine Builder

    Posted: 31 Dec 2021 04:35 PM PST

    java.lang.IllegalStateException: You cannot access the NavBackStackEntry's ViewModels until it is added to the NavController's back stack

    Posted: 01 Jan 2022 01:03 AM PST

    I have created a composable called ResolveAuth. ResolveAuth is the first screen when user opens the app after Splash. All it does is check whether an email is present in Datastore or not. If yes redirect to main screen and if not then redirect to tutorial screen

    Here is my composable and viewmodel code

    @Composable

    fun ResolveAuth(resolveAuthViewModel: ResolveAuthViewModel, navController: NavController) {

    Scaffold(content = {

    ProgressBar()

    when {

    resolveAuthViewModel.userEmail.value != "" -> {

    navController.navigate(Screen.Main.route) {

    popUpTo(0)

    }

    resolveAuthViewModel.userEmail.value = null

    }

    resolveAuthViewModel.userEmail.value == "" -> {

    navController.navigate(Screen.Tutorial.route) {

    popUpTo(0)

    }

    resolveAuthViewModel.userEmail.value = null

    }

    }

    })

    }

    @/HiltViewModel

    class ResolveAuthViewModel @Inject constructor(

    private val dataStoreManager: DataStoreManager): ViewModel(){

    val userEmail = MutableLiveData<String>()

    init {

    viewModelScope.launch{

    val job = async {dataStoreManager.email.first()}

    val email = job.await()

    if(email != ""){

    userEmail.value = email

    }

    }

    }

    }

    But I keep getting an exception saying

    java.lang.IllegalStateException: You cannot access the NavBackStackEntry's ViewModels until it is added to the NavController's back stack (i.e., the Lifecycle of the NavBackStackEntry reaches the CREATED state).

    I am using below jetpack lib for navigation

    implementation("androidx.navigation:navigation-compose:2.4.0-rc01")

    There is no issue in my Main and Tutorial screen as I tried to run them separately and it works fine.

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

    The State of Native Android Development, December 2021

    Posted: 01 Jan 2022 04:37 AM PST

    Need help in building SMS Application

    Posted: 01 Jan 2022 04:11 AM PST

    I have to build an SMS Android App using Kotlin. In this app I need to add stared functionality and also I need to implement Promotional and Spam Filter. I didn't know how to achieve this.

    I am able to show list of received messages but in that all messages are shown seperately means I want that only latest message from one number should be displayed but it is showing all messages individually.

    If anyone have any good resource on building SMS Application from scratch then pls share it.

    submitted by /u/Negative-Ad-4280
    [link] [comments]

    I can't create a sale for my paid apps, any help.

    Posted: 01 Jan 2022 03:45 AM PST

    I can't create a sale for my paid apps, any help.

    Hi, I hope you're doing well, my current app price is $1.50, I'm trying to make a sale by setting the price to $1.00, but when I try to create the sale, I get this message error: Some prices have errors

    https://preview.redd.it/wjyilmbbd2981.png?width=1616&format=png&auto=webp&s=ab3ac8e4d7868fe97c54dbbac9ab04747bc90c14

    The current price in this country is 1.40, so 30% is 0.98, as you can see I've set 0.90 and the error message still appears, I tried with different values such as 1.00, 0.99, 0.80 but the error still appear.

    Thank you

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

    App title get rejected by google play, says 'Your app title appears to contain words or phrases you may not have permission to use.'

    Posted: 01 Jan 2022 03:34 AM PST

    I developed an app called 'xxx for AdMob' (xxx is just a phrase, not the actual name), using AdMob api, but get rejected, the reason is:

    App Title: Your app title appears to contain words or phrases you may not have permission to use.

    After I remove the 'for AdMob' part, it get passed.

    I'm clearly developing a third party app for AdMob. How can I add the 'AdMob' part into my app name?

    I've seen a lot of other apps using this pattern.

    If others develop apps using third party api (i.e. google's api, facebook api, instagram api), are these apps not allowed to call xxx for Facebook/instagram?

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

    Other than the Surface View, is there anything Android View can do but can't be achieved by Jetpack Compose?

    Posted: 31 Dec 2021 04:59 PM PST

    With Jetpack Compose coming into play today, I cannot really think of anything Jetpack Compose cannot achieve, but is achievable with Android View (and its XML, e.g. layout), both for display and animation.

    We can even draw Canvas in Jetpack Compose, animation, display images, etc. Looks like it can be a full replacement of Android View (and its XMLs)

    Did I miss something?

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

    How to hide the secret keys from reverse enginnering in order to decrypt a file that was encrypted in PHP?

    Posted: 31 Dec 2021 03:40 AM PST

    I have an encrypted json file that I generated in a web app, and I would like to open it in the Android app:

    private fun decrypt(encrData: ByteArray): String { 

    val key = "mySecretKey123".toByteArray() val iv = "mySecretIv".toByteArray()

     val localCipher = Cipher.getInstance("AES/CBC/PKCS5Padding") localCipher.init(Cipher.DECRYPT_MODE, SecretKeySpec(key, "AES"), 

    IvParameterSpec(iv)) val data = localCipher.doFinal(encrData)

     return String(data, Charsets.UTF_8) 

    }

    If I reverse engineer the app, I can extract these "private" keys: "mySecretKey123" and "mySecretIv" and the json file content can be stolen. How do I obfuscate or hide these keys?

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

    Injecting CoroutineDispatcher instance using Koin

    Posted: 31 Dec 2021 05:46 PM PST

    I was reading the data layer guide by Google and in the linked segment, they have the following snippet:

    class NewsRemoteDataSource( private val newsApi: NewsApi, private val ioDispatcher: CoroutineDispatcher ) { /** * Fetches the latest news from the network and returns the result. * This executes on an IO-optimized thread pool, the function is main-safe. */ suspend fun fetchLatestNews(): List<ArticleHeadline> = // Move the execution to an IO-optimized thread since the ApiService // doesn't support coroutines and makes synchronous requests. withContext(ioDispatcher) { newsApi.fetchLatestNews() } } } // Makes news-related network synchronous requests. interface NewsApi { fun fetchLatestNews(): List<ArticleHeadline> } 

    Injecting the NewsApi dependency using Koin is pretty straightforward, but how can I inject a CoroutineDispatcher instance using Koin? I used the search functionality on Koin's website but nothing came up. A filtered ddg search doesn't yield many results either.

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

    What’s the best service/program to make a simple webview app for Android/iOS? Any recommended white label companies selling them?

    Posted: 31 Dec 2021 08:37 PM PST

    In-app purchases, pending state - how to handle for the client?

    Posted: 31 Dec 2021 11:00 AM PST

    Hi everyone.

    Quick question on IAPs, in particular, pending states. So I'm referring to the "Accept - slow response" and "Decline - slow response" (I can't remember the exact names) when testing IAPs in test mode, with the test cards.

    How do you handle these pending payments in the app? Do you show some sort of notifications/text to inform the user what's happening?

    In truth, I can't remember how this works in the real world (in non-test mode). With the test card, I just get some text stating "the payment will be cancelled in a few minutes."

    So I guess my question is more, can I rely on the prompt/functionality built in by Google to handle this for me? Or should I show a dedicated screen if the payment isn't successfully purchased instantly to keep the user in the loop?

    Any other insights on purchase flow (client side) would be good too.. I'm finding the documentation slightly lacking.

    Weird question maybe, but thanks for any input!

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

    Need Someone to help me in Small project

    Posted: 31 Dec 2021 02:25 PM PST

    I need a guy who can help me in android development. I'm not expert so I need someone to help me I'll pay for that.

    The app I'm building is only 2 screens app using API. First screen is a login screen

    Second screen Need 3 subscription options to limit app usage per day. App should be run in background/foreground Some work with notification

    That's all I can do all the API work because both screen needs API work and I need help in rest of that.

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

    TDD in Android - where and how?

    Posted: 30 Dec 2021 07:32 PM PST

    With so much churn in the Android world lately, I've found it hard to find good guidance on how to use TDD to build a modern Android app, but I'm kind of groping my way to an optimal strategy.

    Using Compose and an MVI pattern, I've found most value in testing the whole stack as a unit from the Viewmodel layer downwards, but stubbing out network and DB components to avoid dependence on Android context, and because they're easy to stub.

    The UI itself is best tested by looking at the damn thing, and not using clunky automated UI tests to verify mostly trivial to non-existent logic - the VM layer is the one closest to the UX where we can truly test input/ouput in a reasonably pure way. Given state X, when intent Y, assert state Z.

    Some components that have more complex logic may need their own suite of tests, depending on what the app is.

    I'd be interested to hear how other people approach this,

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

    Motionlayout corrupted animation when using ExoPlayer

    Posted: 31 Dec 2021 11:38 AM PST

    I am using Motionlayout but when i want to back to start transition it's like corrupted animation when using ExoPlayer, any solution?thanks

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

    Android TV device technical help

    Posted: 31 Dec 2021 12:15 AM PST

    Disclaimer: Please feel free to point me in the right direction if the question isn't appropriate here.

    Hi. I have an old DirecTV device that runs Android. It seems like it hits an URL which no longer has a response and now it just stalls on a blue screen trying to load content. I have another DirecTV device (same model, specs etc) and that runs perfectly after having updated to the latest version of Android/firmware.

    Does anyone have experience cloning the image from the working device to a non working device?

    PS: I am an Android dev so I am totally comfortable with the dev tools.

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

    How to measure fps in an Android device ?

    Posted: 30 Dec 2021 09:23 PM PST

    Hello,

    I'm developing an Android app. It uses accessibility service and does several background processes.

    My app causes frame drops in some devices.

    How can I measure the fps so that I can compare the values after optimising ?

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

    How to check is focus in view group?

    Posted: 31 Dec 2021 03:19 AM PST

    Hello i need to listen childs focus changes so please how we can do this in kotlin?

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

    How do you decide the backend for your personal project ? Do you go with firebase or AWS or something else ?

    Posted: 30 Dec 2021 09:09 AM PST

    How should one learn the skills

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

    Sharing experience with Play store release stages

    Posted: 30 Dec 2021 02:07 PM PST

    While developing of our new game Idle Paradise I wanted to try out the different release stages of the play store release process. The documentation on the different stages leaves many questions unanswered, so I wanted to share some things I've noticed. The publishing process of free games might be different to other app types though, so I added our use case to each stage.

    Internal App Share:
    Our use case: Quickly sharing new versions within the team.
    Experience: A great tool but google didn't let us use it until we reached open testing.

    Internal Testing:
    Our use case: Share new versions within the dev team (if Internal App Share is not yet available)
    Experience: Quickly sharing a new version and updating it the next day is not possible as you never know how long it takes Google to update the versions on devices. We experienced delays of up to 3 days which is really annoying.

    Closed Testing:
    Our use case: Share within the wider team and close friends
    Experience: Quickly sharing a new version and updating it the next day is not possible as you never know how long it takes Google to update the versions on devices. I didn't notice it taking longer than in the internal testing stage.

    Open Testing:
    Our use case: share with a broader audience and get some external users
    Experience: As the early access section in the play store was removed we're not getting any explore traffic. Search traffic works though. Reviews are not shown publically.

    Hopefully, these observations help you release your app!

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

    Using Firebase Analytics and Huawei Analytics in Android Project.

    Posted: 30 Dec 2021 06:39 PM PST

    If your Android Project already implemented Firebase Analytics and want to expand to Huawei Market, you need to implement Huawei's Analytics Kit.

    If you unsure how to implement two analytics tools in your projects, here is my blog on how to do it.

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

    What app should I make ?

    Posted: 30 Dec 2021 09:18 PM PST

    I am taking an introduction to app development (kotlin) session for some beginners at my university. As an intro app (besides obvious hello world ) what shall I teach them to make ? Please give me your suggestions as this would be really helpful to me and my team .

    Thank You

    submitted by /u/100thRedditAc
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel