• Breaking News

    Thursday, April 15, 2021

    Android Dev - Life pro tip - Disable "Allow parallel run" in the app Run/Debug configuration in Android Studio if you previously had to run the app twice in order for your code changes to reflect in the app

    Android Dev - Life pro tip - Disable "Allow parallel run" in the app Run/Debug configuration in Android Studio if you previously had to run the app twice in order for your code changes to reflect in the app


    Life pro tip - Disable "Allow parallel run" in the app Run/Debug configuration in Android Studio if you previously had to run the app twice in order for your code changes to reflect in the app

    Posted: 15 Apr 2021 03:45 AM PDT

    Have been suffering for months until I found this out. I had to run the app a few times after changing something in the code in order for the changes to be reflected in the freshly installed app.

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

    Starting May 5th, you must let us know why your app requires broad storage access

    Posted: 14 Apr 2021 07:00 PM PDT

    We've detected that your app contains the requestLegacyExternalStorage
    flag in the manifest file of 1 or more of your app bundles or APKs.

    Developers with apps on devices running Android 11+ must use Scoped Storage to give users better access control over their device storage. To release your app on Android 11 or newer after May 5th, you must either:

    Update your app to use more privacy friendly best practices, such as the Storage Access Framework or Media Store API

    Update your app to declare the All files access (MANAGE_EXTERNAL_STORAGE
    ) permission in the manifest file, and complete the All files access permission declaration in Play Console from May 5th

    Remove the All files access permission from your app entirely

    For apps targeting Android 11, the requestLegacyExternalStorage
    flag will be ignored. You must use the All files access permission to retain broad access.

    Apps requesting access to the All files access permission without a permitted use will be removed from Google Play, and you won't be able to publish updates.

    Anyone got the warning from Play Console? Isn't that the deadline is August, 2021 for new apps and November, 2021 for updating existing apps according to this article?

    https://developer.android.com/distribute/best-practices/develop/target-sdk

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

    Migrating from Burst to TestParameterInjector

    Posted: 15 Apr 2021 07:25 AM PDT

    Mobile Developers Cafe - Weekly Issue #23 is out with loads for Android Dev content

    Posted: 14 Apr 2021 07:47 PM PDT

    Ominous Scoped Storage warning messages

    Posted: 14 Apr 2021 01:44 PM PDT

    I got the following message in the console:

    Starting May 5th, you must let us know why your app requires broad storage access

    We've detected that your app contains the requestLegacyExternalStorageflag in the manifest file of 1 or more of your app bundles or APKs.

    Developers with apps on devices running Android 11+ must use Scoped Storage to give users better access control over their device storage. To release your app on Android 11 or newer after May 5th, you must either:

    Update your app to use more privacy friendly best practices, such as the Storage Access Framework or Media Store API

    Update your app to declare the All files access (MANAGE_EXTERNAL_STORAGE) permission in the manifest file, and complete the All files access permission declaration in Play Console from May 5th

    Remove the All files access permission from your app entirely

    For apps targeting Android 11, the requestLegacyExternalStorageflag will be ignored. You must use the All files access permission to retain broad access.

    Apps requesting access to the All files access permission without a permitted use will be removed from Google Play, and you won't be able to publish updates.

    My app targets Android 10 with requestLegacyExternalStorage=true set. My app uses raw file paths to media files in native code and I was planning on keeping it that way, out of necessity. This seemed fine since Android 11 allowed us to use raw file paths again for media files under scoped storage, and for Android 10 we could set requestLegacyExternalStorage=true. There were just a few small things I needed to do to target Android 11 (without MANAGE_EXTERNAL_STORAGE permission oc)

    I was under the impression that we'd have until November to do these things, at which point we'd need to target Android 11 to release updates, and we'd retain requestLegacyExternalStorage=true for Android 10 users.

    However, from this message, I have no idea what hoop they want us to jump through and when. We can't really remove requestLegacyExternalStorage=true for Android 10 without breaking the app. How do we 'let us know' (there's no form in the dev console for this), and is using raw file paths in Android 10 a 'permitted use' of the requestLegacyExternalStorage=true flag?

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

    Android Vitals - Tap Response Time

    Posted: 15 Apr 2021 07:15 AM PDT

    Book Recommendations for Android Development in Java 2021

    Posted: 14 Apr 2021 08:53 PM PDT

    Hi, I am a beginner in android development with Java and are there any updated books that can teach me the fundamentals + advanced concepts well?

    I am looking for books specifically.

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

    Firebase realtime database for entire app lifecycle.

    Posted: 15 Apr 2021 07:01 AM PDT

    My app's server occasionally goes down. It is planned to have multiple servers with different base URLs but cannot update app simply for the reason of different URL. So I tried storing the URL in firebase realtime database so that I can store it to shared preferences in real-time. Since it is for entire app, I have a service which I start in the application class which has the value event listener. But sometimes the value event listener's on data change not at all invoked. Is there anything wrong in this method? Or is it issue with firebase? Or is there a better way to have dynamic base URL to get reflected in real-time?

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

    Looking for feature recommendations for my app

    Posted: 15 Apr 2021 12:18 AM PDT

    So I created this app back in 2019, it takes input time, output time, and/or break time and outputs time into a decimal format. Will also store hours in a sqlite database as well as calculate your wages for the hours stored. I am currently working on a very big update. Currently up to 50 or bug fixes and changes. I was looking for some feature recommendations for my app. I feel like its lacking in some areas, i'm just not sure what. So if you would, you can check it out here. Can also view github source code here. Also notify me of any bugs you find, so i can include them in this update. Thanks!

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

    Can I use Kotlin Multiplatform Mobile on a Windows machine for android only development?

    Posted: 14 Apr 2021 08:27 PM PDT

    I know you have to have a mac to write swift code and do iOS development on Kotlin Multiplatform Mobile (KMM) but currently I don't have a macOS machine. I was wondering if I could use KMM on a Windows machine for android only development. I eventually will get a mac but can't at the moment. Could I start dev on a windows machine and then migrate my code to a mac?

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

    Trivia App Game For Android (Open Source)

    Posted: 15 Apr 2021 04:41 AM PDT

    It Will be So helpful for me if someone can give me some notes about my code & how can I improve it. https://github.com/DevKazonovic/Quizzer

    P.S: I Post in the PlayStore just to see the process of releasing an app.

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

    Is it too much trouble to add/update assets?

    Posted: 15 Apr 2021 12:35 AM PDT

    I'm researching the idea for an asset pipeline which will use a source like Figma or Sketch and transform icons to svg/xml for all densities, format correct file names and put them in proper folder structure.

     

    Optionally, create a pull request against the project repo so there is some history and kick off CI if configured to guard against any potential resource compiler errors.

     

    Does this sound a useful tool to have around?

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

    How does your team handle release builds from CI/CD?

    Posted: 14 Apr 2021 12:50 PM PDT

    What does your teams process look like for creating production signed builds from CI/CD and uploading them to Firebase App Distribution/Google Play/etc. ? How does that play in with versioning?

    Trying to evaluate how other teams perform these tasks. Some people advocate for tags or branches as being the 'trigger' for causing these actions. Curious to hear how some of you are doing this

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

    What is the best way to test app + backend interactions?

    Posted: 14 Apr 2021 12:12 PM PDT

    How can I test the REST api contracts between an app and it's backend? I know I can test each in isolation with unit or integration tests, but I still need to test to make sure that the backend is sending the data which the app is expecting to receive and vice-versa. Is there a way to do this without relying on manual testing or large scale multi component automated tests? Like maybe have a way for the app and backend to share json fixture files for integration tests?

    submitted by /u/No-Let-1734
    [link] [comments]

    Hi everyone i need help i want to make app to send msg via bluetooth 80% of code is given in assignment can anybody complete it for me please ???!!!

    Posted: 15 Apr 2021 06:40 AM PDT

    I need it by next 24 hrs before my exam starts i cant do it it very hard for me please somebody help mee 😭

    I heard people on reddit are really nice and this is a big android community so i beleive there will be someone who will be willing to help a kid in college.

    https://drive.google.com/folderview?id=1hSkg29WC7maYxd87f1ePRZavZXnb2Ysa

    (80% to 90% code is already given in assignment material) Please help

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

    Problems faced by you as an Android Developer?

    Posted: 14 Apr 2021 07:08 PM PDT

    https://www.reddit.com/r/androiddev/comments/mbk299/those_that_started_in_android_development_and_got/?utm_source=share&utm_medium=web2x&context=3

    In the comments of this post, we can see Android App Development described as overengineered overcomplicated stuff, steaming pile of crap & so on. My question to those how did you miss to recognize this when you learned Android Development? Have you been unable to implement a required function in Android which lead to dissatisfaction in your work by your employers or clients?

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

    real-time sample android app code challenges, rapid-prototyping interviews ?

    Posted: 14 Apr 2021 10:38 AM PDT

    i have over 10 years experience developing android apps across different business-sectors and industry domains, however, i've mostly worked as a work-visa contractor in the united states. i have conducted interviews hiring members for my android dev teams in the past as well, also been actively interviewing the past two months for full-time employment opportunities potentially as staff-android engineer level roles.

    i am particularly opposed to take-home assignments. to my advantage, plenty android mobile development teams are focused on real-time screen-share sample android app code challenge development and showcase type of interviews - what i call 'rapid-prototyping'. however, i've had some mixed levels of difficulty during such interviews. at this point i am wondering, what's your opinions been like when conducting these type of interviews for your teams ?

    these questions are particularly geared toward more senior and staff tech-lead type of android engineers and mobile engineering managers - regarding what's your bar of acceptance, and how do you set the difficulty of the interview task ? how much would you expect the candidate to know at the top-of-their-head in order to satisfactorily impress you that the candidate is a good hire for the team - from a fluidity and agility skills stand-point ?

    what i know at the top of my head, i really don't need to google or stackoverflow any of this in real-time during the rapid-prototyping interview -

    1. basic android app skeleton. essential dependency libraries - appcompat, constraint-layout ( these are default available in a new project in android studio ) recycler-view, card-view, retrofit, GSON, lifecycle-runtime-ktx. most importantly enabling viewbinding, because it's super cool. sometimes lifecycle-viewmodel-ktx becomes necessary.
    2. The Internet permission.
    3. setup a quick retrofit interface, and data-classes representing request-response payloads. load-up the retrofit interface using the Builder, add the Gson converter factory, base-url etc etc. Declare all of this in a simple kotlin singleton - object NetworkService, or some shit like that!!
    4. some project code-bases de-structure and provide multiple end-points such as fetchAllListofOrders, then for-each Order-Id, fetch the list of Products, de-duplicate, then for-each Product fetch additional data such as latest discount etc. I can manage to quickly setup a jetpack viewmodel, and flow-emit-collect for all the de-structured end-point response-processing and data-assimilation.
    5. declare and define view-binding components to load-up the layout-views for display - including the recycler-view basic properties like layoutManager, or a custom-adapter, custom view-holder etc etc.
    6. some interviews never hit any server end-point, but mostly involved offline tasks - such as a timer, or click-counter etc. lifecycleScope is adequate with launch or async-await coroutine builders.
    7. in all, i can manage to fetch lists of items as data, process them if need be, and quickly display them as recycler-lists in an emulator, or display different timers and click-counters etc - in a rapid-prototyping type of an interview.

    what i do not know at the top of my head, and looking up google and stackoverflow only kill time.

    1. integrate google-maps - cross-check location permissions and add them if missing, particularly that location-permissions are run-time so have to use the run-time permissions api. maybe, more complex google-maps usage stuff etc. i don't know any of this at the top-of-my-head.
    2. integrate BLE - absolutely no idea at the top-of-my-head where to even begin without killing time in a 1-hour interview.
    3. integrate maybe, camera-X or some modern functionality, maybe, jetpack compose or even jetpack navigation etc ?
    4. in one interview, i just didn't know how to read a json-file from the assets folder from the top-of-my-head, and looking up google only killed more time while all i needed really was this one-line - String ( BufferedInputStream ( resources.assets.open ( "file_name.json" ) ).readBytes ). well, now i know that trick.
    5. junit test-cases setup, and test-runs even. typically, have to find and fix multiple bugs using junit test-case runs within a 100 LOC logic in one-class, or probably even spread-out across multiple classes. the main challenge here being unfamiliar code-base - some other engineer developed this code, but i am expected to find and fix all the bugs in a timed-setting ?
    6. drawables, animations setup, usage - xml layout files, programmatically including api invocations etc etc. as deep-and-wide as using constraint-guides in constraint-layout xml files etc.
    7. complex, incomplete tasks such as display custom designed analog-clock, or write program to compute scores in a game of bowling, or develop minesweeper game. i mean, i practically have no idea where to begin, and how to kill the available 1 hour interview duration for a task that cannot be completed, and still be impressive ?

    what i intend to ask is - none of the tasks that fall within the 'rapid-prototyping' interview framework are an everyday duty on the job for android engineers - from creating a brand new android studio project to writing up code for recyclerviews or daily familiarity with runtime permissions api etc. despite the disconnect, some degree of fluidity and agility is appreciated, and i expect the same when i am interviewing candidates for my teams as well. however, i am particularly glad that we had been remodeling our interview framework geared more toward basic knowledge, rather than even knowing and hands-on coding api components and such. if the candidate presents a guess that run-time permissions api usage is necessary for using location-api, that's a favorable positive-point to the candidate in my interviews, and it's not necessary for the candidate to run the app and get the full expected behavior and functionality output in the emulator - because clearly, run-time permissions api is not integrated yet into the code-base.

    TLDR :- what is your take on the difficulty levels of rapid-prototyping interviews ? how much do you expect the candidates to be living-breathing api-docs and build / compiler toolchains all by themselves ? how many and what kind of tricks should the interview candidate know, so they can guess what you are thinking, and therefore, perform impressively during the rapid-prototyping interview ?

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

    Academic Survey on Parameters in Android Apps

    Posted: 14 Apr 2021 01:55 PM PDT

    Hi everyone! I'm posting the survey again since we still haven't reached our target sample size. I'm a graduate student working on a research project studying energy usage in Android apps. I would love your perspectives -- the data will help the Android developer community (and make the world greener). Please take our 7-minute survey if you haven't. Thank you for your help!

    https://purdue.ca1.qualtrics.com/jfe/form/SV_d6bEkkLrhq5ZI1M?source=androiddev

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

    Is it possible to make an app with only one admin user, myself ?

    Posted: 14 Apr 2021 01:29 PM PDT

    Making my first app using Intelliji Android UI and want there to only be one user, the admin who is the only one who can make posts. The app is basically a blog app to allow reviews of shops.

    I don't want other people to be able to sign up and make posts or comments, just for them to be able to read the reviews and see the shops on a map. The only person who should be able to log in is the admin/poster.

    Any tips? Thanks i'm advance.

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

    Why Kotlin Is Preferred Language For Android Development?

    Posted: 14 Apr 2021 08:25 PM PDT

    I had put the version at 0.1 while releasing the app... On the playstore it showed up as 1.1 ... Is there any policy update that I am unaware about?

    Posted: 14 Apr 2021 05:13 AM PDT

    No comments:

    Post a Comment