Android Dev - Weekly Questions Thread - February 22, 2022 |
- Weekly Questions Thread - February 22, 2022
- Contact Store 1.0 is now available! – a modern, simpler way of accessing contacts in Android
- What's your review of AppLovin? I had really bad experience with them when I added their network for few days back in 2020. Insanely high clicks, but literally non-existent revenue.
- What to use for updating the UI from a Service (LiveData, Kotlin Flows, Repository)?
- Android Gaming performance
- Android export and import data. It tackles how to backup and restore the data of local storage If app is deleted or uninstalled.
- Kotlin bluetooth documentation is outdated
Weekly Questions Thread - February 22, 2022 Posted: 22 Feb 2022 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] | ||
Contact Store 1.0 is now available! – a modern, simpler way of accessing contacts in Android Posted: 22 Feb 2022 03:13 AM PST A few months back, I posted about a modern alternative to the Contacts API I was working on called ContactStore. The post received 100 upvotes and plenty of positive comments! More than ⭐️ 260 Github stars, 🍴 9 forks, 💙 2 contributors, plenty of feature requests and with incredible support from the Android community, Contact Store just hit 1.0 🍾 and there are going to be no breaking changes from now on. Contact Store is not simply a strongly-typed version of the default API, but a modern, simpler way of accessing contacts in Android. Forget about RawContacts, Entities and overwhelming documentation. ContactStore provides a simple API so that you can use contacts straight away and focus on your app's important features instead. The way to access all contacts on the device is as simple as:
There are also optional Coroutines and rxJava extensions you can use: Fetching details for a specific contact is also straightforward: there is also a Kotlin DSL for writing contacts. Here's an example how to create a new one into a Gmail account: This is just a quick overview of ContactStore. ContactStore can do so much more:
The API documentation covers all the functionality available along with code samples and best UX practices: https://alexstyl.com/contactstore/ If you find this API useful, 🌟 give a star on Github and 🐦 follow @alexstyl on Twitter for updates. [link] [comments] | ||
Posted: 22 Feb 2022 03:33 AM PST
| ||
What to use for updating the UI from a Service (LiveData, Kotlin Flows, Repository)? Posted: 22 Feb 2022 04:00 AM PST At first I want to say that I'm still at the start of Android development and trying to learn what (and why) is "recommended" way of doing things. I'm currently writing an app which uses a service which continously scans for Bluetooth beacons (also in the background when the Activity is stopped) and an Activity which should display the results. Therefore, I currently use a bound service to have a reference to the service object in my Activity for communication from Activity -> service. The service holds all the found beacons in a The problem is that since found beacons are added asynchronously into the adapter list by the service (via the After researching I found that you should not change adapter data asynchrounously. I came across The approaches I considered were:
I would be grateful for a hint what would be the adequate pattern to use in such a situation. [link] [comments] | ||
Posted: 22 Feb 2022 06:34 AM PST I play mobile games on a tab s6. Not knowing much about the OS or optimization, I am wondering what knowledge some of you might be able to share on it. In communities like fortnite mobile, the player base desires more FPS like 120 on devices and to have better graphics but it continues not to be supported. What criteria would a tablet need to perform at such a level? [link] [comments] | ||
Posted: 22 Feb 2022 05:26 AM PST
| ||
Kotlin bluetooth documentation is outdated Posted: 22 Feb 2022 03:45 AM PST Hi, i recently tried to use kotlin to create a Bluetooth connection. On the official documentation some code show in the examples is outdated and android studio doesn't recognize it. Can anybody help? Also is there maybe a complete Bluetooth template in kotlin? Thanks [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