• Breaking News

    Wednesday, April 28, 2021

    Android Dev - PSA: Big Sur 11.3 breaks Android emulator

    Android Dev - PSA: Big Sur 11.3 breaks Android emulator


    PSA: Big Sur 11.3 breaks Android emulator

    Posted: 28 Apr 2021 08:41 AM PDT

    I was a dummy and upgraded today to 11.3, and then went back to my project and couldn't run the emulator.

    Luckily, after a couple minutes, I found this article hot off the presses that worked. (literally published about the exact same time I was updating OSX)

    https://levelup.gitconnected.com/how-to-fix-android-studio-emulator-issue-the-emulator-process-for-avd-was-killed-db74cb02a359

    Major props to the author: https://twitter.com/andrea_culot

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

    AutoBindings - Set of annotations that aims to remove some boilerplate code

    Posted: 28 Apr 2021 07:00 AM PDT

    This library will help you cut some boilerplate code in certain aspects (listed below).

    Generate RecyclerView Adapters: [guide]

    So you don't have to write Adapters over & over again (supports multiple view types as well).

    Generate TypeConverters for Room: [guide | article]

    To handle complex data types (for example this where User class has List<Hobby> as supposed to Hobby being itself a separate class) you need to write TypeConverters if you want to store that entity into a Room database. Using @AutoGenerateTypeConverter annotation this will be done automatically for you. The generated class will generate code for serializing the entity using one of the serializers eg: Gson, Moshi & kotlinx-serialization. Also, there is built-in support for Enums.

    Generate ColumnAdapters for SQLDelight: [guide | article]

    The same goes for ColumnAdapter, it will generate classes to serialize your complex data types using one of the serializers (Make sure you add the respective dependency).

    The library also comes with some lint check rules for verifying these annotations usage so that even if you mess something up quick fix is there to help you!

    The library is open source & just reached beta03 a month ago. You can try it out yourself & provide some feedback or feature requests if any!

    https://github.com/KaustubhPatange/AutoBindings

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

    Phone warranty lost due to "adb root" command on unrooted phone

    Posted: 28 Apr 2021 06:55 AM PDT

    Phone warranty lost due to "adb root" command on unrooted phone

    Hello,

    Though I am very far from being an Android expert, i still wanted to learn to create an app by myself over an year ago (on an LG Q7 phone).

    All was good with the resulted app and the concepts i have learned, but somehow i managed to lose my warranty for the LG Q7 phone.

    Lg are claiming that it was lost due to a "adb root" command that was executed at that time. It is true that i have used usb debugging for fast deployment and that i dont remember perfectly everything i did, however my phone surely wasn't rooted (i use banking apps daily). Isn't using this command on a phone that isn't rooted equal to nothing, like this screenshot suggests?

    https://preview.redd.it/w8ikgfo55xv61.png?width=1129&format=png&auto=webp&s=1e42f16176e129da380bc74a573bc5d1158c95ef

    In your opinion is this an abuse from LG or it is completely my fault?

    Thank you very much!

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

    Problems with background execution on Android 11 devices

    Posted: 28 Apr 2021 02:00 AM PDT

    Hey guys

    recently I have discovered that about 2 months ago there was released Android 11 update for Samsung devices.

    Samsung has in this version of OS decided to really strictly suspend the apps/services running in the background (more info https://dontkillmyapp.com/samsung)

    So e.g. when app I am working on goes to background and phone is locked, all BT communication is almost immediately suspended. When I unlock the screen, in that exact moment all threads are not suspended anymore and execution continues.

    OS therefore completely ignores the foreground service mechanism
    https://developer.android.com/guide/components/foreground-services

    + also when I try to add my app to the list of "Never sleeping apps" (some alternative to battery optimization whitelist on Android 11) - app is still getting suspended + this whitelisting mechanism appears to be unstable and even when I add my app to the whitelist, app disappears from the list after few hours.

    My questions:
    1. Have you seen similar issues on Android 11 too ? What helped to resolve the issue?
    2. Is this only Samsung specific issue or even Pixel devices do the same optimization (ignoring foreground service and whitelist)?

    Thanks for any input.

    submitted by /u/android-dev-28242021
    [link] [comments]

    Jetpack Compose: An easy way to RecyclerView

    Posted: 27 Apr 2021 10:58 AM PDT

    Never run Google ads if you have an Android app | by Dan Fabulich | Apr, 2021 | Medium

    Posted: 27 Apr 2021 09:59 PM PDT

    Question about playstore user rating (ex: E for everyone)

    Posted: 28 Apr 2021 09:13 AM PDT

    So I recently published my first app and I noticed that Google rated my app "E for everyone" even though I said it was for users older than 13 when I was answering all their questions.

    The only reason I'm worried about this is because when I generated my privacy policy I said that I do not collect information from people 13 years or younger.

    Since my app is rated E, and you can't use my app without creating an account with an email (meaning I collect that information from the user) will I get in legal trouble or have my app banned if a user under 13 creates an account on my app? Does every app or website that allows users to create an account have to make sure people 13 or under are not creating accounts?

    I am just confused by this because when answering the questions to publish my app I said it is not for users 13 or under but it got rated E anyway so now I'm worried something bad will happen.

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

    Google has declared Droidscript is malware

    Posted: 28 Apr 2021 08:45 AM PDT

    Facing $11B tax bill, Samsung heirs donate massive art trove

    Posted: 28 Apr 2021 08:28 AM PDT

    Looking for a chat SDK for a marketplace app

    Posted: 28 Apr 2021 04:41 AM PDT

    Hi. I am looking for a service like sendbird that can help me create an in-app chat for a marketplace app. With 1K users daily I am looking for a cheaper service that would not burn a hole in my pocket. I am looking for features like moderation and easy buy and sell interactions to make offers when chatting.

    Any open source self-hosted options available? Or any cheap services?

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

    Google Play App Upload

    Posted: 28 Apr 2021 04:51 AM PDT

    I made an app which is more or less a copy of another app I have installed before. I am a beginner in Android development and I created the app for my own learning purposes. I want to upload it to Google Play, and I don't want to get banned for copyrights or any other thing. I heard you get banned forever and I really do not want that...

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

    Discord Community Broadly Encompassing App Development

    Posted: 28 Apr 2021 03:36 AM PDT

    Here is the link to a Discord server dedicated to app development: https://discord.gg/zPeNA2nbet

    The main distinction between the few other app development communities and this one is that it fully encompasses the field of app development from design to development to release and beyond. It is also platform neutral. So while it does provide plenty of support for Android, it provides equal support for other app development platforms and frameworks as well.

    If you're interested in a community like this, be sure to check it out!

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

    Latest MacOS update (11.3) : not possible to launch android emulator ?

    Posted: 27 Apr 2021 09:40 AM PDT

    Hi everyone,

    Today I've updated to the last MacOS version (from 11.2 to 11.3). Not possible to start the android emulator (from android studio) again. I tried to uninstall everything, no improvement

    Did anyone face the same issue ? I think every android emulator problems were fixed on Big Sur... Thanks !

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

    Android alternative

    Posted: 28 Apr 2021 03:21 AM PDT

    Hi all does anyone know an android project anything close to this

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

    RecyclerView doesn't stay scrolled to the bottom.

    Posted: 28 Apr 2021 03:10 AM PDT

    Has anyone actually benefited from migrating to using androidx.datastore?

    Posted: 27 Apr 2021 02:39 PM PDT

    I've never had a problem with regular old shared preferences and actually find it a lot easier to use. Using Flows just to save some basic data in preferences seems like overkill.

    when I search for what are the major benefits of datastore most posts and blogs I see are just copying what the documentation says, and not providing real world use cases. So I'm wondering if anybody that has switch from sharedpreferences to datastore found the transition to be worthwhile.

    Also.....

    SharedPreference has some drawbacks like it provided synchronous APIs -but it's not MAIN-thread-safe! whereas DataStore is safe to use in UI thread because it uses Dispatchers.IO under the hood👀.

    I don't have time to dig in the code myself but is that ^ a true statement?

    mSharedPreferences.edit().apply { putInt("myIntKey", 12) }

    so this is not being processed in a background thread?

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

    Using Room in Jetpack Compose | Room in Jetpack Compose

    Posted: 28 Apr 2021 01:54 AM PDT

    Question regarding internal testing

    Posted: 28 Apr 2021 01:28 AM PDT

    Hello,

    I recently uploaded my first app about a week ago and it is still under review. However I ideally need to use it tomorrow for a small testing run with about 50 people. So I think the solution is to release it as an internal test to the 50 or so people for now. I have some question about this though, namely:

    • Do I need to change anything about my .aab like the version/bundle version code or can I just use exactly the same .aab as for production?

    • Can I add additional testers after the initial release to internal testers?

    submitted by /u/JP-originality
    [link] [comments]

    android master tools intelliJ review needed.

    Posted: 28 Apr 2021 03:56 AM PDT

    https://plugins.jetbrains.com/plugin/15561-android-master-tools

    Today as i was surfing the internet I found this tool. wondering if this tool is helpful or not.

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

    Data binding is a support library provided by Android to bind your UI components directly to the data source like ViewModel. In this sample project you can learn RecyclerView Binding with MVVM + Clean Architecture pattern.

    Posted: 27 Apr 2021 09:22 PM PDT

    How do we show this native Play Store bottom sheet?

    Posted: 27 Apr 2021 08:19 PM PDT

    Best way to get to know the android API

    Posted: 27 Apr 2021 06:41 PM PDT

    Im just getting into android dev seriously, and I'm wondering how you guys went through the API on developer.android.com, it's so vast. Do you just google stuff on their as you need it? Or did you spend time going through each section and just reading the overview? Or do you use something else entirely?

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

    How to deal with unknown device in google play devices list

    Posted: 27 Apr 2021 04:50 PM PDT

    How do you deal with unknown devices that appear in the "my devices" list on google play? When do AVD connect to google play?

    In my particular case, I am shown a device with model specification "Android SDK built for x86_64" which was "last used" today. However, I haven't opened SDK or accessed a AVD today.

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

    A few tips for TestParameterInjector Library

    Posted: 27 Apr 2021 10:37 AM PDT

    TestParameterInjector is a simple to use parameter injector for unit tests. I spent the last week using TestParameterInjector and thought I'd share some tips on the gotchas I experienced in case it is helpful for others. The repo's README is very informative on how to use it so I'd recommend you read it. The two issues that slowed me down the most are:

    1) If you use the @TestParameters annotation, you'll need to enable java compiler parameters to your project's build.gradle. I had no issue using @TestParameter without the following.

    gradle.projectsEvaluated { tasks.withType(JavaCompile) { // You need this for Java tests options.compilerArgs << "-parameters" } tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { You need this for Kotlin tests kotlinOptions.freeCompilerArgs += ['-java-parameters'] } } 

    2) The library requires test classes be annotated with @RunWith(TestParameterInjector::class). As far as I know, you can only have one @RunsWith annotation per class. This prevents using TestParameterInjector with Robolectric or Espresso. There's already a feature request on the repo requesting this.

    3) When running tests, don't run single tests. Instead run all tests for the class. You'll get an error when running a single test. I'm curious if there's a way to modify the run configuration to fix this but I'm not sure.

    Let me know if I'm wrong or if you have better tips.

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

    No comments:

    Post a Comment