• Breaking News

    Monday, December 13, 2021

    Android Dev - Complete Kotlin library for retrying on I/O failures

    Android Dev - Complete Kotlin library for retrying on I/O failures


    Complete Kotlin library for retrying on I/O failures

    Posted: 13 Dec 2021 12:42 AM PST

    Performance of Compose AlertDialog is terrible

    Posted: 12 Dec 2021 04:33 PM PST

    I'm wondering if this is a known issue but the AlertDialog from both material and material3 are super slow. I've tested a completely blank dialog with a profiler and consistently get over 250ms just to show this blank dialog. With content it goes to over 450ms! The material3 version is slightly faster but it still visibly lags.

    In the profile trace, I can see most of the time is taken in traversal() and animation() (I have no custom animations).

    Anyone else noticed this or knows how to fix this?

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

    ARMv7 - is it still something you should care about as a developer?

    Posted: 13 Dec 2021 01:58 AM PST

    I'm releasing a new App that will run from Android 9.0 up.

    I'm wondering if I have to keep into account 32-bit devices or if I can just skip arm7 and live with arm64 only. Where can I see some stats about 32 vs 64 adoptions (especially with the minimum android version in mind?)

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

    What are some good resources for Android Automotive API?

    Posted: 13 Dec 2021 03:58 AM PST

    WorkManager cleanup all old work tasks on app upgrade

    Posted: 12 Dec 2021 05:57 PM PST

    I know when using work manager if one renames workers, one is supposed to use workFactory etc.

    How is one supposed to handle a case where worker class is completely removed in the new version of the app.

    Say in version 101, I had a class workerFoo that was a periodic task.

    Now in version 102, I no longer have this class workerFoo, so when workManager tries to execute this periodic task workerFoo it's going to fail, causing an exception.

    So is it advisable to just do workManager.canclAllWork() when an App version is updated?

    What is the correct way to clean up work manager tables particularly when upgrading the app?

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

    Why is my package not importing?

    Posted: 13 Dec 2021 02:56 AM PST

    Why is my package not importing?

    I'm new to Adroid development and wanted to know more about compose, so I started the turorial on Android Developers. In lesson 3 I need to use a Theme that can be imported from the ui.theme package. But as seen in the picture, it is red and cannot be imported.

    https://preview.redd.it/hnrs5dzxia581.png?width=1023&format=png&auto=webp&s=888803f79d550b533ecc6d81b2eb972554849ecb

    Here is my build.grade (compose_version = 1.0.5)

    plugins { id 'com.android.application' id 'kotlin-android' } android { compileSdk 31 defaultConfig { applicationId "com.example.myapplication" minSdk 23 targetSdk 31 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary true } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' useIR = true } buildFeatures { compose true } composeOptions { kotlinCompilerExtensionVersion = compose_version kotlinCompilerVersion '1.5.21' } packagingOptions { resources { excludes += '/META-INF/{AL2.0,LGPL2.1}' } } } dependencies { implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.appcompat:appcompat:1.4.0' implementation 'com.google.android.material:material:1.4.0' implementation "androidx.compose.ui:ui:$compose_version" implementation "androidx.compose.material:material:$compose_version" implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0' implementation 'androidx.activity:activity-compose:1.4.0' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" } 

    Can someone explain why the packages cant be imported

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

    Which RAM is appropriate for Android Studio average projects?

    Posted: 13 Dec 2021 04:35 AM PST

    I'm running Android Studio on a PC with 3gb ram and everything works fine (not very smooth though). However, I'm only using it to build small projects (think stuff like notepad..calculator etc). My question is, will I encounter any problems (besides the minor lags) if I were to want to work on large projects. I want to build Android Apps for the purpose of freelancing and I can't decide between using it like this, upgrading my RAM (upgradable to 8GB), or purchasing a new 16GB/32GB RAM PC. Will I need all the additional RAM if I wasn't working on a BIG project?

    Appreciate the help. Thanks in advance.

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

    I'm a graphic designer and would like to help open source apps developers make better promotional material to show off their apps.

    Posted: 13 Dec 2021 04:02 AM PST

    If you are a open source dev and want a icon, or promotional stuff, dm me.

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

    Call recorder code source?

    Posted: 13 Dec 2021 03:34 AM PST

    Hello, Im looking for code source for call recorder app or developer can develop this app? If anyone have code source ready that'd be great. Thank you

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

    Is there a way to limit the range on Material Date Range Picker?

    Posted: 13 Dec 2021 02:09 AM PST

    I am using material date range picker, and want to limit the range a user can pick to 7 days, is there any good way to implement that? I found some one solution on stackoverflow that did not work well, and was wondering if there was a good way to implement this.

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

    Data Safety required and optional data collection

    Posted: 12 Dec 2021 06:54 PM PST

    If some data collection is required only when users use certain features, then is it required data collection or optional data collection?

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

    Jake and Leland answered your questions about Jetpack Compose ������

    Posted: 12 Dec 2021 10:24 AM PST

    Trying to understand google play Content Policy with respect to nudity

    Posted: 12 Dec 2021 04:31 PM PST

    I am an Android developer with a boudoir/nude photography side hobby. Most of the work that I do would fall under the artistic nude genre. I am thinking of creating an Android app where the main content would be photos from my portfolio although the idea is still not fully final.

    This profile would be a good example of the kind of photos that I take. (That isn't me though)

    I have seen apps with similar content on google play with Content rating PEGI 12. This app is an example.

    I am reading about the issues that I may run into before even thinking of development since it would be a colossal waste of time if I find that my content isn't permitted or isn't monetizable.

    So I just want to get second thoughts and idea from the community here

    1. Are there any issues that I may run into when having content like this which features female nudity?
    2. Would I face any issues running ads or setting up payments?
    3. Any other issues that I should be concerned of before staring development?

    Thanks a lot for reading.

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

    Appreciation post of kotlinx-coroutines-test Devs

    Posted: 12 Dec 2021 05:47 AM PST

    I don't know if it fits here. If it doesn't forgive me. I just can't control my emotions.

    Thank you runTest guys. Testing coroutines became so easy, From sophisticated equipments to writing something with a pencil...

    Those messy scopes and Test Dispatcher rules, just to test a simple behaviour, makes life a lot harder, and when you have Livedata it just becomes a mess...

    I am in love with TDD. And it's closer to my heart more than my heart. And emergent/evolutionary/incremental design, cherry on top... Only friends, I have right now...

    I can't thank you guys enough. Maybe these emotions are just side effects of how much I love TDD.

    But nonetheless... Thank you Guys. kotlinx-coroutines-test:1.6-RC is one of the best if not the best release...

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

    Does google actually take 30% from in app purchases?

    Posted: 12 Dec 2021 12:32 PM PST

    I looked at the percentage Google takes from in-app purchases and it's a whopping 30%🤔. It now seems you are working for Google. And worst if you are in the US you are paying 30% tax if I'm not wrong .

    so if you make 100k, Google takes 30k, you have 70k left. Then you pay 30% tax on your 70k, you are now left with 49k. How do US citizens even survive?

    I'm still finding it hard to believe Google actually takes 30%. Please can anyone clear my doubts?

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

    I wrote an article about how I found out about findViewById's internal implementation. Hope you guys like it.

    Posted: 11 Dec 2021 09:41 PM PST

    Jetpack Compose Enables JSON Defined View Layout

    Posted: 11 Dec 2021 09:57 PM PST

    Junior question #2

    Posted: 12 Dec 2021 12:54 PM PST

    Hello guys, how would you handle multiple countdown timers in a project. I have a jetpack compose project and my model has the timestamp until event start time. I have a list with all the events and i have to make a countdown until stsrt time. How would you update all the countdowns to UI at the same time. StateFlows are a good idea ? Thank you!

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

    Android Biometric API primer

    Posted: 12 Dec 2021 06:18 AM PST

    What is the current tooling for android development?

    Posted: 12 Dec 2021 02:33 PM PST

    Hello,I am a C# (and all around .NET) dev.

    Got my hands dirty with many more languages and tools, but I mainly work in .NET

    Once upon a time I got interested into expanding my skillset to include making apps.

    I tend to dive a bit and have a bit of opinion before blindly learning a new whole IDE, language and platform.

    At the time, as I use windows, given my skillset, the choiche was between Android Studio and Xamarin/Xamarin Forms.

    I took some info around, started reading some docs and guides and decided that android dev was an utterly clusterfuck of spaghetti code and an aberrant humongous bloated senseless and poorly written system. This happened with other languages, like javascript, which I still avoid whenever possible, even if today, it's impossible.

    When I saw "intentions" (that's what they were called at the time if I remember correctly) and all the jurily rigged togheter hacks to pass variable and view states around, my skin crawled in horror.

    When I saw all the exceptions and things one had to know because android was not forward and backward compatible my skin crawled even harder and the cringe started hitting alarming levels.

    It was all a "If you use android v7 then, but if you use v6 then, but if you use version 8 before june 2019 then, also remember that permission management changed since version 8.2, remember that PIP doesn't work for devices with android version <7, then make a manifest for this, a manifest for that with required minimum version."

    Ew.

    Now, I was tempted to go through Xamarin once again and give android another possibility.

    Has the situation improved?What is the current tooling for a windows dev which wants to go native? It's still Android studio?

    Thank you

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

    Admob Limited but 100% Match Rate

    Posted: 12 Dec 2021 06:18 AM PST

    Hi,

    My AdMob has been limited for a few months now but suddenly for the past few days match rate is 100% but still shows the red line on top :D and in the policy center, it says it's limited.

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

    Load high resolution images from internet using glide

    Posted: 12 Dec 2021 12:13 AM PST

    Hi,

    In my app i am loading high resolution images in recycler view. Those images are taking some time to load 5-6 seconda depending on the resolution of the image.

    Is there a way to load low res version before and later download the high res?

    Thanks

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

    Hey Android Developers, Learning Jetpack Compose series Part 2 video is ready and uploaded. �� Let's watch it together on Monday 7pm CET with live chat. ��️ Don't forget to press the reminder button to not miss it! ⏰

    Posted: 12 Dec 2021 04:53 AM PST

    how it would be possible to receive only a single notification per app per day, instead of 100 notifications from the same app in that same day?

    Posted: 12 Dec 2021 12:17 PM PST

    No comments:

    Post a Comment