• Breaking News

    [Android][timeline][#f39c12]

    Thursday, March 3, 2022

    MVVM Unit testing on Android - Howtodoandroid Android Dev

    MVVM Unit testing on Android - Howtodoandroid Android Dev


    MVVM Unit testing on Android - Howtodoandroid

    Posted: 03 Mar 2022 04:04 AM PST

    Compose: remember vs remember mutableStateOf

    Posted: 02 Mar 2022 07:06 PM PST

    Good practice for multithreading (Java)?

    Posted: 03 Mar 2022 04:37 AM PST

    In my app, I update the user's GPS location on a separate thread and there are other processes (like creating a bitmap, etc.) that are performed on non-UI threads. Right now I declare these threads at the application level and destroy them only when the user closes the app. I tried declaring the threads inside the activity but configuration changes destroy the threads and that's not what I want. So, my question is whether my approach is the correct one? Is there a third-party library that can abstract out the process of creating and destroying separate threads?

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

    Samsung galaxy S20 (Android 12) - not showing all notifications

    Posted: 03 Mar 2022 01:22 AM PST

    Long story short, I have a custom app that sends out lots of notifications. On Android 8-11, there were no issues (aside from having to change the code to accept the new category system at some point).

    However, now it seems that if it tries to show me 20+ notifications at around the same time, it won't show all, it will just randomly pick some and ignore the rest, this has become increasingly frustrating, especially when I have quite a few notifications that haven't been cleared (even if they are of a whole different category). Recently now I should have received 7 notifications, but I only received 1.

    I can imagine that this could be an OS spam filter, and if it is, I would like to turn it off.

    Updated to minSdkVersion="30" with no improvements in the notification system.

    Any suggestions?

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

    I'm trying to make an app that runs bash scripts. How to make it realtime?

    Posted: 03 Mar 2022 12:50 AM PST

    Hi, I'm new to development. I'm trying to make a app that runs shell scripts.

    I've found multiple suggestions on stackoverflow with async task, threads and runables, run on ui thread, but I can't figure out a way to send it's output and error to textview.

    Can someone please help me, I want to use a thread to run process and pipe output to textview. (I also the commands would be supplied through a string)

    (I'm not familiar with most interfaces on android like Async task. So I think thread based solution will be better)

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

    What is the best way to integrate a hybrid app with a native app so the hybrid app can be accessed without installation?

    Posted: 02 Mar 2022 08:33 PM PST

    I have created an ionic (cordova) android app. The plan is to partner with another company which runs their own native android app. The end result should be - Only one app (partner's native app) will exist. The user should be able to access my app from within this app without installing my app seperately (just like an additional page or feature within the native app).

    What is the best way to do this?

    Integrating using web view might not be a good option some key features of my app use cordova plugins specific for Android.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel