• Breaking News

    [Android][timeline][#f39c12]

    Sunday, January 31, 2021

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

    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]

    What were your first few Android apps?

    Posted: 31 Jan 2021 11:22 AM PST

    I'm still only learning Java with MOOC but I'm curious as to how complex your first few apps were. What was their function? Did they help you obtain a job?

    I'm just curious.

    submitted by /u/skyrim248
    [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]

    Where do I get started with my own hardware and software to build an android phone?

    Posted: 31 Jan 2021 02:38 PM PST

    I want to build my own android phone - how to get started?

    How do I get started building my own android phone from all open source parts and software?

    submitted by /u/Bytetrue
    [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]

    No clue where to start. Is this a pipe dream?

    Posted: 31 Jan 2021 01:43 PM PST

    So in botw, you can look through a scope and drop pins on things in the distance - then look at the map to see exactly where they are.

    I would like to make an ar app to accomplish this irl, with focus on exploring/geocaching/or even emergency navigation.

    Is this something that's been done, or is even feasible?

    submitted by /u/SevereAnalLeakage
    [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]

    INSTALL_PARSE_FAILED_NO_CERTIFICATES When Upgrading Gradle

    Posted: 31 Jan 2021 08:42 AM PST

    Hey all, was wondering if anyone else has seen this. When I upgrade gradle from com.android.tools.build:gradle:3.6.4 to anything higher, I get an error

    "INSTALL_PARSE_FAILED_NO_CERTIFICATES"

    The app builds fine and if I build with com.android.tools.build:gradle:3.6.4 it installs no problem. This app has been on the Play store for 3 years now. Not sure why a Gradle upgrade would cause this issue. I am using Android Studio 4.1.2

    I appreciate any help!

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

    Protecting intents with permissions

    Posted: 31 Jan 2021 11:36 AM PST

    Is there a way to protect implicit intents with permissions, so that they could be delivered only to components that have those permissions, regardless of the intent filter?

    I know that it possible to do this for intents sent as broadcasts, but is there a way to do it for intents used to start activities or services?

    I know implicit intents for services are very insecure, but I need to know the answer to this question for my university project.

    submitted by /u/Uboatfreak
    [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]

    Not Responding when creating activity

    Posted: 31 Jan 2021 10:34 AM PST

    Does anybody's android studio go to "not responding" when they are trying to create a new activity to an app? I'm on a 2017 macbook pro on big sur.

    submitted by /u/papajuantoo
    [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 for information regarding the issue-

    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]

    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]

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

    Posted: 30 Jan 2021 09:49 AM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel