Android Dev - Weekly Questions Thread - May 11, 2021 |
- Weekly Questions Thread - May 11, 2021
- Multiple backstacks (Fragments, Jetpack Navigation) is now fixed!
- Two modern ProGuard tools we used to quickly find the optimal -keep rules for DuckDuckGo
- Support multiple back stacks for Bottom tab navigation has finally been fixed.
- Reason for Amazon flex app being a direct download rather than app store download? Does this increase the amount of data they could harvest from users?
- Is it possible to make my own (third party) keyboard that will have password manager integration like GBoard have?
- Can someone post a detailed review of using Android studio on the new M1 chip with the recent updates?
- Unable to Create a sale on mobile device.
- Advantages of new Fragment Version (1.3.3)?
- How to send body in Android Valley StringRequest?
- Android Automotive OS review: Under the hood with Google’s car OS
- A library I made that allows you to make quizzes and questionnaires without having to code a complex UI.
- Hi. Does anyone know what the bubble options in Spotify Library (playlists, artists)and Google Maps (restaurants, gas, groceries) are called? Thanks
- USB Type-C API
- Dagger Android 2.28 deprecated
- I want to sort a LiveData<List<Players>> from Room in my Scorekeeper app. Do I need to be using Transformations? MutableLiveData? MediatorLiveData? Or something else?
- Facebook Audience Network bidding in Android
- Need some advice - Firebase newbie here
- Releasing my first paid app and have some questions
- Anyone have issues with their app not working on a specific model regardless of OS version?
- What's up with the Android SQLite access?
- What is External marketing in PlayStore console?
Weekly Questions Thread - May 11, 2021 Posted: 11 May 2021 06:00 AM PDT 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] | ||
Multiple backstacks (Fragments, Jetpack Navigation) is now fixed! Posted: 11 May 2021 04:09 AM PDT
| ||
Two modern ProGuard tools we used to quickly find the optimal -keep rules for DuckDuckGo Posted: 11 May 2021 06:58 AM PDT Hi all,
Writing -keep rules for ProGuard can be a daunting task, mainly because -- due to reflection -- the impact of such rules may have an impact while executing the application. Fortunately, one can easily tackle these issues by using the right approach along with the right tools.
My colleague has created a blog post which presents a step-by-step approach to apply ProGuard on the DuckDuckGo app. It describes:
This allows you to easily get a stable ProGuard configuration for the application. The post is available here: https://www.guardsquare.com/blog/configuring-proguard-an-easy-step-by-step-tutorial
Any feedback is welcome, since it will help the whole community while configuring ProGuard. (announcement https://twitter.com/Guardsquare/status/1392102226810843137) Enjoy! [link] [comments] | ||
Support multiple back stacks for Bottom tab navigation has finally been fixed. Posted: 11 May 2021 02:58 AM PDT From issue tracker: With these last changes and snapshot build #7351514, we've completed all of the required changes to support multiple back stacks in:
All of these changes will be available in the upcoming Fragment 1.4.0-alpha01 and Navigation 2.4.0-alpha01 releases. (Note that Navigation Compose versioning has been merged into the rest of Navigation as per That being said:
I'd like to thank you for your patience and respectfulness in not spamming this issue with comments. [link] [comments] | ||
Posted: 10 May 2021 07:37 PM PDT
| ||
Posted: 11 May 2021 07:17 AM PDT
| ||
Posted: 10 May 2021 11:12 AM PDT It would be really great if someone could post a detailed review of building/writing code on the new machine. Ideally I would be looking at: I understand someone might have done that already, but with the new updates coming in, it would be great if anyone could do new benchmarks! [link] [comments] | ||
Unable to Create a sale on mobile device. Posted: 11 May 2021 09:00 AM PDT I am unable to create a sale on google play console website in iOS phone. Unable to select a date range. I don't want to open a laptop for this very small thing. [link] [comments] | ||
Advantages of new Fragment Version (1.3.3)? Posted: 11 May 2021 08:22 AM PDT By default Android seems to use Fragment version 1.1.0 & the docs says to add a dependency
In this fragment version, the fragment transaction syntax is different as at takes Fragment's class instead of instance variable of Fragment & also startactivityforresult, target fragment etc are depreceated What are the advantage(s) of this version compared to default 1.1.0? [link] [comments] | ||
How to send body in Android Valley StringRequest? Posted: 11 May 2021 06:12 AM PDT My endpoint looks this way: When I delete product by using Postman everything work. This is my body in Postman: So how to do that by Android Volley? I'm trying by adding this: to my StringRequest but I have an error:
[link] [comments] | ||
Android Automotive OS review: Under the hood with Google’s car OS Posted: 11 May 2021 04:33 AM PDT
| ||
Posted: 10 May 2021 11:44 AM PDT
| ||
Posted: 10 May 2021 07:29 PM PDT | ||
Posted: 10 May 2021 03:53 PM PDT Does anyone know if there exists an API that allows the app developer to utilise all the pins of the type-C port on the phone for accessories? I want to be able to specify which pins to read from for certain data and which to read from for other data etc... [link] [comments] | ||
Dagger Android 2.28 deprecated Posted: 11 May 2021 06:35 AM PDT I got this error from Lint all of a sudden: Does anybody know why or has a link to some explanation why they deprecated it? Was there any heads up for this? [link] [comments] | ||
Posted: 10 May 2021 08:25 PM PDT Right now my app is observing a player list of LiveData and displaying it in a RecyclerView. My original thought was that when I want to sort the data, I can use a Room query to return a new list of players sorted any way I want and then be able to switch that new, sorted list for the old. But I'm having trouble figuring out how to observe the player list correctly if I'm trying to switch the unsorted list for the sorted list. My next thought was then that I just need to return MutableLiveData from the original Room query so that I can just swap in the new sorted list, but Room only returns LiveData objects. Can anyone see where I'm off in my conception of LiveData here? I feel like this should be something fairly routine (sorting a list of LiveData), but I'm struggling. Thanks for reading! [link] [comments] | ||
Facebook Audience Network bidding in Android Posted: 10 May 2021 11:31 PM PDT Hey, I hope many of you are using Facebook Audience Network for app monetization. I am having some questions regarding their latest new "bidding" strategy. I want to integrate AdMob as a mediation partner with Facebook Audience Network. After reading the documentation mentioned, it seems like I have to add both (AdMob + FAN) SDK's and make ad requests separately from both of these. Can someone please confirm for me if that is true? Please share your thoughts if any of you have implemented Bidding in their Android App. Thank You [link] [comments] | ||
Need some advice - Firebase newbie here Posted: 10 May 2021 04:30 PM PDT Hi, We need some urgent advice to help us complete an app based the buddyPress site we launched years ago, that will look like this. https://i.ibb.co/rxXN9NG/image-2021-05-06-T05-11-40-687-Z.png The badges on the notification will display
As the user checks these new messages, the count displayed in the badge will go down. Something like this: https://i.ibb.co/txsQ2n6/image-2021-05-06-T05-04-40-027-Z.png] Or if updating the count is complex, we can go with a badge that clearly indicates there are new messages waiting to be checked. Like this https://i.ibb.co/0QfC1nD/hudl-notifications-2x.png We would like to implement something that is simple and robust without much change to our codes already built. We have been told that Firebase can be used to solve this problem. But we know very little about Firebase. Where to find the documentation? Your suggestion is greatly appreciated. Jing [link] [comments] | ||
Releasing my first paid app and have some questions Posted: 10 May 2021 04:10 PM PDT Hey guys, so I'll soon be releasing my first paid app to playstore (closed testing and then open testing) and have a few questions: 1) If I start gathering users in a closed testing phase, how does that work? Do they get the app for free for testing or do I have to use promo codes for them to be able to get it for free? 2) Same question above but for open testing 3) How do I give a free version of my app to anyone? I think the way to do it is with promo codes but they have an expiration date? That confuses me. What happens when that deadline expires? 4) What is the best way to start gathering users for feedback? Do you guys use closed testing or open testing? I'm a single dev if that makes any difference. Thank you. [link] [comments] | ||
Anyone have issues with their app not working on a specific model regardless of OS version? Posted: 10 May 2021 07:08 PM PDT For some reason my app is having issues with a galaxy A11 regardless of which OS version they're running. I haven't been able to replicate the issues with any other phone model or OS. Do you guys have any ideas on what it might be? Like CPU architecture or some weird obscure thing I'm missing? [link] [comments] | ||
What's up with the Android SQLite access? Posted: 11 May 2021 12:58 AM PDT tl;dr: Maybe I'm simply missing something here, but don't you feel as if the quality of how we can access the Android database got considerably worse over the years? (or wasn't there at all in the first place?) When I started working on Android in 2017, I used Stetho. I needed to add it as a dependency to my app, plug it in somewhere there in the code, install the app on the phone, and then go to Chrome to chrome://inspect, and there it was - my app's database displayed in the web browser. Weird flex, but ok.But I think even back in 2018 Stetho got broken on newer Chromes. I still was able to access my database, but I couldn't execute any SQL commands on it. For a long time since then I had three web browsers on my computer: Firefox for normal use, Chrome for some debugging work, and an old un-updated Chromium solely for the purpose of accessing the database on my phone. Recently, though, even that was broken. I have a new MacOS now and chrome://inspect on an old Chromium is unusable anymore. And that bug which prevented me from using it on newer Chromes was never fixed - instead, Stetho was deprecated. So I turned to Database Inspector in Android Studio. And here's a weird thing: It's only available since Android 4.1 and it only works for SDK 26+. For "reasons" I need to use a slightly older Android Studio and sometimes I do work on an older SDK. For a moment I even tried to use two Android Studios simultaneously, one older, one newer, just as I used three web browsers before, but it confused adb. I had to close one to use adb log in the other. On top of that, AS 4.1 pretty often didn't recognize my app (?). I tried some plugins for the older Android Studio I use, but the best I have found was one that worked offline on a database file copied from the phone. That's not exactly a solution for me. It's too clunky and anyway I like to test and debug by watching and modifying data in the database while the app is working. In the end, I started to use adb shell from the terminal and sqlite3 from there. It's ugly as hell but at least it works. In conclusion: If you have some miraculous solution, please let me know. I already tried quite a few but maybe I missed something. What's more interesting for me, though, is your opinion on the issue. I feel that it should be much easier. After all, it's just SQLite, one of the easiest to use databases. All I need really is a simple GUI somewhere - a plugin or an app - that would display db tables in a clear way and let me execute SQL queries. It's not rocket science. And, on the other hand, it's a powerful tool for testing and debugging. So why do I feel as if this functionality is neglected? is there a difficulty I don't see? Or is the interest low? Don't people write SQL anymore? :) Cheers, [link] [comments] | ||
What is External marketing in PlayStore console? Posted: 10 May 2021 05:10 PM PDT
|
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