• Breaking News

    Sunday, January 31, 2021

    Android Dev - For any Unity android devs, if your app has a lot of static screens that only change when the user interacts with them, you can massively decrease your GPU/CPU/Battery usage by dropping the frame rate to 1FPS while keeping the rest of the engine running at 60FPS using the new OnDemandRendering API.

    Android Dev - For any Unity android devs, if your app has a lot of static screens that only change when the user interacts with them, you can massively decrease your GPU/CPU/Battery usage by dropping the frame rate to 1FPS while keeping the rest of the engine running at 60FPS using the new OnDemandRendering API.


    For any Unity android devs, if your app has a lot of static screens that only change when the user interacts with them, you can massively decrease your GPU/CPU/Battery usage by dropping the frame rate to 1FPS while keeping the rest of the engine running at 60FPS using the new OnDemandRendering API.

    Posted: 31 Jan 2021 06:33 AM PST

    Found an app which process cannot be killed

    Posted: 31 Jan 2021 04:01 AM PST

    Found an app which process cannot be killed

    I have found an app, which process cannot be killed, event I use force-stop

    https://preview.redd.it/pbrp1p39qne61.png?width=686&format=png&auto=webp&s=93330509deb0d340365bd6f9b4bee31fb683e036

    then I track the u0_a3513, and found this:

    https://preview.redd.it/morqrr0dqne61.png?width=736&format=png&auto=webp&s=6bb035daeedd1fe14981446343d28ec326669d38

    the assist/clean/other process's PPID is 1, which mean is system process?

    I have decompiled the app, and found this:

    https://preview.redd.it/w26kxdgfqne61.png?width=2180&format=png&auto=webp&s=e975222bda2db5501372674f82b5b15e270e44d5

    What's more, I cannot find those classes in androidx package.

    And I have no idea how it's process cannot be killed....

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

    24 — 30 January Android Newsletter

    Posted: 31 Jan 2021 02:33 AM PST

    Stay up to date with Android development, in this week's edition:
    💅 Customize your snackbars
    😻 Implement TopSheet
    📵 Avoid malware Android projects
    ✨ Explore 16 cool things in Android Studio
    and much more!

    Read it here 👉 https://vladsonkin.com/android-newsletter-31/

    💥Featuring @HeyTaskito @_jitinsharma @ZacSweers @deniskrrr @karandhillon95 and many more devs!

    💚 Subscribe and receive new editions directly to your email. Weekly, no spam, unsub anytime.
    Here is an example: https://mailchi.mp/0a17581fe054/android-newsletter-31

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

    Freelance platforms?

    Posted: 30 Jan 2021 06:00 PM PST

    I'm currently a full-time developer but have been considering moving into becoming a freelance or contract worker so I can have more freedom with my time (Work for X months, take X months off)

    Lately, I've been seeing job openings at Toptal and know they work with freelancers. I'm also aware of other companies that do similar things but am pretty limited in my knowledge.

    Anyway, my question is would you recommend going through one of these freelance companies to have that super flexible schedule and if so, which one(s) are worth applying to?

    Thanks!

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

    DiffUtil Compose Ui

    Posted: 31 Jan 2021 01:44 AM PST

    With a recyclerview, we can use a list adapter to which we can submit lists observed with for example live data as we observe changes from let's say Room. DiffUtil can be intergrated into the list adapter to reflect changes like deletions, swaps, additions etc. Is there something similar that we can use with LazyColumn in Compose Ui? I find it not appeasing having to resubmit a full list to LazyColumn whenever a new log is added to Room (in my case)

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

    What Mobile App Development Tools / Software can preview the app on a real device??

    Posted: 31 Jan 2021 06:51 AM PST

    What Mobile App Development Tools / Software can preview the app on a real device??(not emulator)

    like Phonegap build

    my method, build apk and install it to preview.......

    anyidea?? thank you very much

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

    USB DAC Problems with connection

    Posted: 31 Jan 2021 04:50 AM PST

    Hi,

    well, my friend asked me for a favour. He has a samsung phone and he has a digital to analog converter. (I think he has a Samsung Note 20 pro and iBasso TYPE C converter) And everytime he connects this converter to his device in order to use, he must restart his device everytime he wants to use it problemlessly. Is there among you anyone who knows how to eventually program something which would actually bypass this so the user would actually just use some sort of app which would solve this issue?

    This is low level stuff which is really unfamiliar to me.

    Some links to study -

    first

    second link

    third link

    Some solutions are mentioned here, but they are really only temporary.

    Any help, direction would be appreciated.

    Regards

    Juniorish android dev

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

    Firebase dependencies -ktx

    Posted: 31 Jan 2021 04:22 AM PST

    So when I use firebase, should I use only -ktx or should I use both ktx and regular ones?

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

    NetworkBoundResource and DB updates while loading

    Posted: 31 Jan 2021 04:16 AM PST

    A variation of the NetworkBoundResource class/method is frequently used to load data from a remote source to a local cache (like a Room database). I'm trying to use one of these NBRs (see below) but there is one big problem: While the state is Loading, I am not receiving database updates (because we only receive a "snapshot" of the cached data while Loading is in progress). In my app, this causes a bookmark functionality (which updates the DB entry) to not be reflected in the UI until Loading has finished.

    Is there any way to fix this? Did anyone else run into the same problem?

    This is the NetworkBoundResource I'm using (source: Stackoverflow). As you can see, Loading only contains a snapshot of the current data (first()) and no live updates. I also looked at other variations of the NetworkBoundResource and they all seem to have this characteristic.

    inline fun <ResultType, RequestType> networkBoundResource( crossinline query: () -> Flow<ResultType>, crossinline fetch: suspend () -> RequestType, crossinline saveFetchResult: suspend (RequestType) -> Unit, crossinline onFetchFailed: (Throwable) -> Unit = { Unit }, crossinline shouldFetch: (ResultType) -> Boolean = { true } ) = flow<Resource<ResultType>> { emit(Resource.Loading(null)) val data = query().first() val flow = if (shouldFetch(data)) { emit(Resource.Loading(data)) // this won't give us live updates try { saveFetchResult(fetch()) query().map { Resource.Success(it) } } catch (throwable: Throwable) { onFetchFailed(throwable) query().map { Resource.Error(throwable, it) } } } else { query().map { Resource.Success(it) } } emitAll(flow) } 

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

    Comments and discussion about UI, integration tests, and mocks

    Posted: 30 Jan 2021 11:47 AM PST

    I have some experience with Unit testing but I have never gone beyond that, and in the next project we will start doing UI and integration tests. I have thoughts based on what I've read, but I'd like to see what you think, what am I missing, and get real-experience feedback.

    Some specific questions (sorry, it is a bit long, relevant topics in bold as TL;DR):

    1) For UI tests, to reduce flakiness and slowness, I understand it's better if we mock the server. But where/how? By running an on-device server (e.g. with Ktor), by providing mock json responses (retrofit interceptor), by providing mock data sources, by providing mock UseCases…?

    What I see is, the more code that is mocked the less "real-like conditions" the test will be; but the easier and faster it will be to build, run and maintain. And we can already test all of that with unit and integration tests…

    Am I missing some points? What have you tried and how did it work out?

    2) How worthwhile is it testing the server requests (data source), considering it is mostly done by retrofit and the serializer, and it requires setting up a lot of big json files? It seems that it will rarely break due to a programmer error, as that code should only change if the actual server response changes, and in that case the test needs to be changed anyway. The only benefit I can see is if we change the serialization library (or upgrade to a breaking version) in the future, which might be enough to be worthwhile, but I am not sure because it is a lot of effort for a not that frequent change. Probably if we have some end-to-end tests from question 1 it makes this less necessary too.

    Again, am I missing something? What's your experience? And what tools are good and bad for testing REST API requests?

    3) What do you consider more important to test in UI testing, sorted by usefulness in finding bugs vs effort and flakiness? I suspect this: correct user interaction and navigation > specific bugs that have been detected and fixed > UI correctly doing what the VM expects >> ui correctly shows the info >> animation. Not sure if there are more things that could be tested or the sorting is not correct. Prior to having tried it, for example, it seems very costly to test that the UI looks as it should (text is not cut or has ellipsize, views do not overlap…).

    4) I was thinking about covering all the visual part of UI testing with screenshot testing and leaving UI tests for interaction/navigation. Those tests in theory look good, but I've read the worst opinions about them. They seem especially useful when we update UI libraries -e.g. material design- and margins or colors work differently. I see that I lose the benefit of reading the tests and knowing the UI behaves as expected, but if all logic is at the ViewModel or in separate and testable UI helper classes it should not be necessary. It seems that it can very significantly reduce the effort of building and maintaining tests, and detect issues that do not seem feasible with standard UI tests.

    5) As sort of a follow-up of 1, is it a good idea having some fully end-to-end tests that include actual server requests, to be able to release blindly? I think I'd always want human supervision before doing a release, so there would be no reason for that, I think. Note that currently, I do not expect to be doing more than 1 release per month or so. If we were releasing once per week or more I'd probably change my opinion on this.

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

    Is there a way to be notified when my release has been approved?

    Posted: 30 Jan 2021 03:31 PM PST

    I did not find a way to be notified when a release in the Google Play Console is approved by Google team (and then I manually publish it the store).

    There is no emails or webhooks available.

    It's annoying to visit the console every hour to know if the review process of my update is done.

    I already searched a solution with CI/CD like Bitrise or even tried to scrap the Google Play Console but no success.
    Bonus: Did someone ever manage to scrap the Google Play Console? I've managed to pass my auth cookies and stuff but I'm stuck to the loading view (with the Google Play Console Logo).

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

    Android 10 emoji ttf

    Posted: 30 Jan 2021 10:28 PM PST

    Hi, I've been looking for .ttf for a while with the android 10 unicode 12 emoji, but I can't find anywhere, and the NotoColorEmoji files transform the numbers into emojis using zFont.

    Thanks

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

    Getting TextView to update

    Posted: 30 Jan 2021 07:29 PM PST

    I'm trying to run the following code in an activity:

    class EditImage : AppCompatActivity() { private lateinit var binding: ActivityEditImageBinding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_edit_image) binding = ActivityEditImageBinding.inflate(layoutInflater) } override fun onResume() { super.onResume() binding.imageStatusReport.text = "This has been changed." Toast.makeText(applicationContext, "Exiting.", Toast.LENGTH_LONG).show() // debug } } 

    But the imageStatusReport TextView never updates. The Toast does pop up, so this is not the normal case of something hogging the UI thread and not letting things update… onResume() is doing its thing and promptly exiting. I've tried adding .invalidate() calls; it doesn't help.

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

    Is there a no-coding free software that allows you to make a simple app?

    Posted: 30 Jan 2021 03:25 PM PST

    All I would like it to do is:

    - input data (durations)

    - do calculations based on the data

    - present the data

    - make a widget

    - do pop-up notifications based on calculations of the data

    - option to export the data / do (automatic) back-ups

    Thank you in advance! :)

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

    Modelling UI State on Android

    Posted: 30 Jan 2021 04:45 AM PST

    Migrating Your Design System to Jetpack Compose Part 3: Interop & Testing

    Posted: 30 Jan 2021 09:49 AM PST

    The Crazy Android Fragment Bug I’ve Investigated

    Posted: 29 Jan 2021 11:39 PM PST

    Android Currency Converter with RxJava2, Dagger2, Retrofit and Kotlin Channel

    Posted: 30 Jan 2021 09:15 AM PST

    Android Currency Converter with RxJava2, Dagger2, Retrofit and Kotlin Channel

    I'have created a simple currency converter application using RxJava2, Dagger2, Retrofit and Kotlin Channel. You can see a sample video about the app below and the source code under the link.

    https://github.com/inspire-coding/CurrencyConverter_RxJava_Dagger2

    https://reddit.com/link/l8qd0e/video/ey28g9s56ie61/player

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

    kmm +DART Flutter view

    Posted: 30 Jan 2021 09:03 AM PST

    Compose and SWIFT UI are really similar to Flutter views, and furthermore Flutter takes care of iOS, Android differences in a cool way.

    What is the technical difficulties in developing a clean architecture app, that could use the view layer of DART? I guess are two different compiler right, not expert. But the point is `why not using a kind of way to repaint compose and swift UI in C++ as flutter does?`, so that one can develop one view in both the platforms, maybe not in DART necessarily... Please do not get angry with me I sincerely want to ask to understand, this is something I cannot find in the internet really easy. Thanks, your newbe

    submitted by /u/Professional-Sea-677
    [link] [comments]

    Kotlin Coroutines Fundamentals

    Posted: 30 Jan 2021 08:53 AM PST

    Play Console Publish Timeline Question (With Ads SDK)

    Posted: 30 Jan 2021 08:53 AM PST

    I have been updating my app via play console everyday. It used to take only 15 to 30 mins to get reviewed. However, two days back I did add 'ratings sdk' and 'ads sdk' to my app. Now, it has been more than 2 days and my app has still not been reviewed.

    My best guess is that now a human will first review the app because of ads sdk. Has anyone else faced this or is there something else that I should be looking for.

    15 mins publish time did highly reduced my development time. So, I am extra curious.

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

    First Time Dev: Error with Gradle Sync

    Posted: 30 Jan 2021 08:51 AM PST

    Hi, I'm completely new to android development and just downloaded Android Studio today. I am following this tutorial which seems to be going well until it asks me to open activity_main.xml - when I tried to open it, it gives me this error: Design editor is unavailable until after a successful project sync. After some googling I managed to find out how to sync files with Gradle, but when I did so it gave me this error: Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: And I don't know how to fix this, google or StackOverflow seem to have no help.

    Thanks in advance!

    submitted by /u/1ZacNolan1
    [link] [comments]

    No comments:

    Post a Comment