Weekly Questions Thread - November 30, 2021 Android Dev |
- Weekly Questions Thread - November 30, 2021
- Weekly Who's Hiring Thread - November 29, 2021
- Activity A starts activity B, activity B starts activity C and activity C starts activity D. How can we send data back from acitivity D to activity A? (Interview question)
- should i migrate my app to api 31
- What is the Android Cache Fix Plugin and Why do I need to Solve my Own Cache Misses? | Nelson Osacky
- Is bintray service down ?
- What map SDK's do you prefer?
- What are deductions in Payments profile report?
- Persism 2.0.0 Released - A zero ceremony ORM for Java
- How do you handle forced dark mode and apps not updating on xiaomi phones?
- So I get this error when I try upload my aab (made with unity) for release on Google Play Console?
- Under The Hood – Crashlytics
- Resources for learning?
- How does android studio use values inside XML files
- If I build enough decent android apps and just use that as my portfolio would companies be willing to hire me if my apps are good enough just based off that?
- mobile.dev – Our First Open-Source Project
- ADT-3 Android 12 Beta 5 struggle
- Beginning with Testing in Android
- Need Help with how to count the scores of an external game on your app
- Can we utilize the Fragment Result API to replace the ViewHolder callback?
- I feel like quitting my Android dev job.
- How to allow periodic SyncAdapter to run when app is in 'force stopped' state
- dadb: A Kotlin/Java library to connect directly to an Android device without an adb binary or an ADB server
- JetBrains Fleet: The Next-Generation IDE by JetBrains
- What program should I learn to have the easiest time to get hired by companies for Android app dev? Do companies look for people that know how to do both Android and iPhone if not, what's my best bet to learn for Android software/platform - and also, I only know C Sharp. Pointers, any advice welcome
- hi. so in feb 2021 my admob account got disabled now i have an new account i want to add my bank account but im afraid that this will lead to the same thing as the first one should i do it ?
- ContactStore 0.6.0 is out – Featuring new DSL, Linked Account support, testing without Robelectric
Weekly Questions Thread - November 30, 2021 Posted: 30 Nov 2021 06:00 AM PST This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:
Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead. Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail! Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays. Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link! [link] [comments] | ||
Weekly Who's Hiring Thread - November 29, 2021 Posted: 29 Nov 2021 06:00 AM PST Looking for Android developers? Heard about a cool job posting? Let people know! Here is a suggested posting template:
Feel free to include any other information about the job. [link] [comments] | ||
Posted: 30 Nov 2021 01:08 PM PST I found this interview question somewhere on the internet but it didn't have any answer. Now I'm wondering how can it be done. I'm guessing we'll start all 3 activities (B,C and D) by Is there any other way? Update #1 Mixing answer by u/jamireh and u/Zhuinden Write this function in Activity D and call on some button click Update #2 Use some kind of persistent storage or save data in a singleton class Update #3 One other way as suggested by u/Blakdragon39 is to make use of [link] [comments] | ||
should i migrate my app to api 31 Posted: 01 Dec 2021 01:15 AM PST we have a couple of users that received android 12 update ,should we start to migrate to api 31? and why? our app uses location servic,camera,stoarge [link] [comments] | ||
What is the Android Cache Fix Plugin and Why do I need to Solve my Own Cache Misses? | Nelson Osacky Posted: 30 Nov 2021 08:47 AM PST
| ||
Posted: 30 Nov 2021 05:48 AM PST Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'. Received status code 502 from server: Bad Gateway [link] [comments] | ||
Posted: 30 Nov 2021 07:50 AM PST We are using maps in a lot of our apps but the Google Maps SDK fails us in some aspects like animation, gradients, clustering, offline caching, etc. I know that Mapbox is a very nice alternative, but it's also very pricey. This is fine of course, hard work doesn't go unpaid but it seems like there are a lot more alternatives in the webdev world than the Android dev world. So, what map SDK's do you like to use? I'm also interested in how many features of the SDK you are using. :) [link] [comments] | ||
What are deductions in Payments profile report? Posted: 30 Nov 2021 12:32 PM PST
| ||
Persism 2.0.0 Released - A zero ceremony ORM for Java Posted: 30 Nov 2021 12:11 PM PST
| ||
How do you handle forced dark mode and apps not updating on xiaomi phones? Posted: 29 Nov 2021 08:04 PM PST There is a strange problem on xiomi phones like mi, redmi and poco. If the dark mode is on, the os forces all apps to have a dark mode even if they do not have the dark mode styles. Amazon is the prime example. My company has an app which is all weirded out because of this. How do you handle this without creating dark mode support? Also, has anyone faced apps not updating on xiaomi phones? [link] [comments] | ||
So I get this error when I try upload my aab (made with unity) for release on Google Play Console? Posted: 30 Nov 2021 02:19 PM PST Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again. Your App Bundle is expected to be signed with the certificate with fingerprint:SHA1: 60:8C:A6:93:2A:1B:07:83:1E:BD:CA:E4:9F:37:14:22:30:B2:23:B7but the certificate used to sign the App Bundle you uploaded has fingerprint:SHA1: 47:A6:55:33:86:5F:02:A3:9C:3B:5B:79:23:38:9E:CD:2B:CC:7E:CD [link] [comments] | ||
Posted: 30 Nov 2021 01:15 PM PST
| ||
Posted: 30 Nov 2021 12:02 PM PST I just wanted to start with android development and the documentation provided from android seems really good. Are there any other resources I should consider as a beginner? (i have programming experience) Thanks a lot! [link] [comments] | ||
How does android studio use values inside XML files Posted: 30 Nov 2021 11:45 AM PST When i set values in strings or colors.xml... in the activity main xml file how does the system know in what xml file i put my naming.. also is it possible to have the exact name of attribute in 2 files ? also can we add a new xml file in the values folder? im really a noob beginner in this .. [link] [comments] | ||
Posted: 29 Nov 2021 03:54 PM PST | ||
mobile.dev – Our First Open-Source Project Posted: 29 Nov 2021 09:47 AM PST
| ||
ADT-3 Android 12 Beta 5 struggle Posted: 30 Nov 2021 12:28 AM PST Hi guys; Just looked at the factory image download page, and for some reason, there is no flash-all.bat files in those archives; only flash-all.sh ; does anyone knows why? Is it safe to craft my own? The Android Flash Tool can be used to easily flash ATV12 up to Beta 3 on the ADT-3, but 5 is not available for some other/same? reason. After flashing Beta 3, I am offered an OTA to RTT1.2104156.002.A1 which downloads alright, but fails to apply for some reason. I get the classic Android recovery screen with the droid on its back; "couldnt load Android system", and then I'm completely screwed. "Try again" doesnt help, and I'm forced to Factory data reset and go back to Android 11. =( What am I missing? Anyone with an ADT-3 in there? [link] [comments] | ||
Beginning with Testing in Android Posted: 29 Nov 2021 10:26 PM PST I have to learn JUnit for a university project. I was confused whether to learn JUnit 4 or 5. I also develop Android apps in Java and Kotlin, but have never written a test. I had read in the Android docs - 'The AndroidJUnitRunner class defines an instrumentation-based JUnit test runner that lets you run JUnit 3- or JUnit 4-style test classes on Android devices'. Would learning JUnit 5 be helpful for Android tests in general? Or should I learn JUnit 4 ? [link] [comments] | ||
Need Help with how to count the scores of an external game on your app Posted: 30 Nov 2021 05:25 AM PST okay maybe the title was quite confusing lmao but let me elaborate.. So let's say I wanna make an app that gives you rewards if you score 10k Running points in Subway Surfers Game which is an external application. So how to connect that game into your app so that we can record and verify scores? Let me explain practical use case : Like, You opens the app then selects a game to play , in this case Subway surfers, then you plays that game and score 10k running points. As soon as you hit that number of scores you will get a notification from the app that you scored 10k points, then you can click on the notification and go to the app and withdraw your rewards. I'm asking how to to make a system that connects that game to the app and counts the score? [link] [comments] | ||
Can we utilize the Fragment Result API to replace the ViewHolder callback? Posted: 30 Nov 2021 05:18 AM PST We're familiar with the displaying UI with Fragment > RecyclerView Adapter > ViewHolder. In order for Fragment to receive a click action from ViewHolder, we must pass a callback to the Adapter > ViewHolder > setOnClickListener, which is quite verbose. Since there is Fragment Result API, I wonder if we can utilize it? The sample code should be like this: First, we create an extension method to get the parent Activity of a View } [link] [comments] | ||
I feel like quitting my Android dev job. Posted: 29 Nov 2021 02:08 AM PST So my manager sent me this XD file with 10-15 pages to replicate on android and submit. Now I have spent hours and hours working on each component in the XD file. They are custom views, compound views and recycler views. Including layouts into other layouts. Then there are use cases, business logic, ViewModels, databinding. THE WHOLE LOT. And I'm the ONLY developer working on this project in the entire firm. And I am feeling this pressure of time crunch and perfection. And that when I first submitted my work, they were not at all satisfied with it. Hours of work and they were like "No. You need to make the views match exactly how it looks in the XD." That is if an image view is 2-3 pixels shifted up and right, they will point that out and tell me it's not correct. So then I did it. After 4-5 days, i corrected everything and then I submitted it. The values weren't match_parent, or wrap_content, 0dp (constraints). They are like 34.52dp, 88.21dp, 4.69dp. Literally all of them. But my phone is 450dpi, and managers phone is 540dpi. So now he's saying I've made it worse. And literally, changing these values is all I've been doing for the past month and STILL NOW it's not "perfect" according to him. I made a custom view for the bottom navigation, because it's highly complex. There are menu items in the bottom nav. The first 3 icons are aligned perfectly with XD design but the 4th icon is 5-6 pixels to the right. And now he's not happy with my work. If i change the position to fit the 4th icon, the other 3 will get disturbed. Is this fair? In Android, is it EVER this case that I need to follow these strict things on making it "Pixel perfect"? I feel alot of pressure doing this crap work and not getting any good outcome out of it. I feel like quitting, but i don't know if this is actually how android is done. Instead of a 16dp margin, you are putting 14.31dp because it has to fit with the design. Is this how the Android Dev Industry is?? Edit 01: Also, hahaha, to match with the XD design, the font size is set to 9.92dp. "dp", you say? So that the font size doesn't change based on user settings (so that stakeholder is happy with pixel perfect) and less than 11sp is not recommended by Google. [link] [comments] | ||
How to allow periodic SyncAdapter to run when app is in 'force stopped' state Posted: 30 Nov 2021 03:28 AM PST Might not be the right place to ask seeing as I'm using Xamarin Android but the fundamentals still apply. I have created a sample app here: https://github.com/lukewo/AndroidSyncApp Is there a way to allow the SyncAdapter to run after the app has been put into a force stopped state or is this not possible due to the new limitations android has introduced? Should I be using the WorkManager instead? [link] [comments] | ||
Posted: 29 Nov 2021 08:07 AM PST | ||
JetBrains Fleet: The Next-Generation IDE by JetBrains Posted: 29 Nov 2021 02:23 AM PST
| ||
Posted: 30 Nov 2021 12:20 AM PST | ||
Posted: 30 Nov 2021 05:56 AM PST hi. so in feb 2021 my admob account and google play developer got disabled now i have a new dev account since jul 2021 admob oct 2021 i want to add my bank account but im afraid that this will lead to the same thing as the first one should i do it ? [link] [comments] | ||
ContactStore 0.6.0 is out – Featuring new DSL, Linked Account support, testing without Robelectric Posted: 29 Nov 2021 06:13 AM PST Hi Android Devs 👋 There have been a few new features in ContactStore released recently. If you are working with Contacts in your app and you prefer an alternative to working with ContentProviders, this one is for you. New DSL APIThere is now a DSL to insert, update and delete contacts. Inserting a new contact to the device looks like this: ```kotlin val store = ContactStore.newInstance(application) store.execute { insert { firstName = "Paolo" lastName = "Melendez" phone( value = PhoneNumber("555"), label = Label.PhoneNumberMobile ) mail( address = "paolo@paolo.com", label = Label.LocationWork ) } } ``` "Message on WhatsApp" or "Call on Telegram"You can use ContactStore to query items that are linked to the contact from 3rd party apps. The following example shows how to query and open the profile screen of a contact in the WhatsApp app. Fetching: ```kotlin contactStore.fetchContacts( predicate = ContactLookup(listOf(contactId)), columnsToFetch = listOf( LinkedAccountValues("com.whatsapp") ) ).collect { val contact = it.firstOrNull() if (contact != null){ // access the details using contact.linkedAccountValues } } ``` Deeplinking to WhatApp:
Testing contacts without Robelectric (experimental)There is now a Fake implementation of the ContactStore coming for free as an extra depedency. This was done so that you do not need to create your own abstraction and focus on your production code instead. Source code and documentation at https://github.com/alexstyl/contactstore. ⭐️ Make sure to star the repo if you found it useful. [link] [comments] |
You are subscribed to email updates from Developing Android Apps. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment