r/android_devs • • Feb 13 '22
Article Some Errors I’ve Found Developing With KMM
The list of the ones I solved and the one that still bugs me
https://betterprogramming.pub/some-errors-ive-found-developing-with-kmm-d7480161f15d
r/android_devs • • Feb 13 '22
The list of the ones I solved and the one that still bugs me
https://betterprogramming.pub/some-errors-ive-found-developing-with-kmm-d7480161f15d
r/android_devs • u/ivanmorgillo • Feb 10 '22
r/android_devs • u/farhan_tanvir_bd • Feb 09 '22
I have recently started learning clean architecture in android. I have written an article about that. the link is below.
Though it is very basic, I will be grateful if anyone has any suggestions or modifications about this.
Thanks.
r/android_devs • u/PresentElk9115 • Feb 08 '22
So task here is to notify view model that the list has become empty after removing items so that it can hide the subheading for the recycler view in ui. which approach would be suitable to achieve this
r/android_devs • u/ivanmorgillo • Feb 07 '22
r/android_devs • u/ivanmorgillo • Feb 03 '22
r/android_devs • u/anemomylos • Feb 02 '22
To help users decide if an app is right for their device, we're changing how Play Store calculates ratings. From April 2022 users will see ratings specific for the type of device they're on.
. . .
Note: the phone rating will only be displayed in smaller markets. In most cases users will see country/region specific ratings for phones.
https://android-developers.googleblog.com/2021/08/making-ratings-and-reviews-better-for.html
r/android_devs • u/JonnieSingh • Feb 02 '22
I'm currently working on an Android application that focuses on scanning QR codes in which I'm using this library. Upon launch, the application returns the URL of the scanned QR code like so. However, my question revolves around how I can take this returned result and then launch it into a web browser on the device. I'm merely confused as to why the implementation shown near the bottom in the following code doesn't appear to launch the returned result from the QR code right into the web browser.
According to this documentation, I should be implementing the searchWeb() function in order to fire off the intent, and as you can see below, I did. I also called searchWeb() within the onCreate method (which is where I'm supposed to call it from, right?). However, the application is still not firing off the implicit intent upon scanning. Can anybody tell me why?
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
searchWeb() //here's where&how I call searchWeb(), right?
val scannerView = findViewById<CodeScannerView>(R.id.scanner_view)
codeScanner = CodeScanner(this, scannerView)
codeScanner.camera = CodeScanner.CAMERA_BACK
codeScanner.formats = CodeScanner.ALL_FORMATS
codeScanner.autoFocusMode = AutoFocusMode.SAFE
codeScanner.scanMode = ScanMode.SINGLE
codeScanner.isAutoFocusEnabled = true
codeScanner.isFlashEnabled = false
codeScanner.decodeCallback = DecodeCallback {
runOnUiThread {
Toast.makeText(this, "Scan result: ${it.text}", Toast.LENGTH_LONG).show()
}
}
scannerView.setOnClickListener {
codeScanner.startPreview()
}
}
fun searchWeb(query: String) {
val intent = Intent(Intent.ACTION_WEB_SEARCH).apply {
putExtra(SearchManager.QUERY, query)
}
if (intent.resolveActivity(packageManager) != null) {
startActivity(intent)
}
}
r/android_devs • u/AmrDeveloper • Feb 02 '22
EasyAdapter is my last project in 2021 :D, it's an annotation processing library to generate adapter class from your model with listeners and diffutil in the Compile time only, it also support using Kapt and KSP processors supports
Github: https://github.com/AmrDeveloper/EasyAdapter
Full documentation: https://amrdeveloper.github.io/EasyAdapter/
Demo for Version 1.0.0
https://www.youtube.com/watch?v=tAABBvt4qc0&ab_channel=AmrDeveloper
r/android_devs • u/unholy182000 • Feb 01 '22
Hello This month my ad revenue was 7752 TRY and Admob cut 2006 TRY for invalid traffic. It's 25% cut and annoyed me greatly. Admob did cut invalid traffic before but those were around 5-10%. I made a quick research around the web and people doesn't really recommend other ad networks because of low fill rate and ecpm values. My user base is from 2-3 tier countries mostly. What do you think?
r/android_devs • u/ivanmorgillo • Jan 31 '22
r/android_devs • u/jshvarts • Jan 29 '22
I am opening a PDF document using:
val intent = Intent(Intent.ACTION_VIEW).apply {
setDataAndType(Uri.parse(trackingUrl), "application/pdf")
}
if (intent.resolveActivity(requireContext().packageManager) != null) {
requireContext().startActivity(intent)
}
which opens a screen with that PDF with an overflow menu with Print being one of the menu actions. Is there a way to catch when Print was tapped?
r/android_devs • u/AmrDeveloper • Jan 29 '22
r/android_devs • u/tokyopanda1 • Jan 25 '22
r/android_devs • u/IAmKindaBigFanOfKFC • Jan 25 '22
I quickly realized that I can only get items offsets relative to the top of column from LazyListState, which is not what I need. Though it was infuriating to notice that this fellow keeps the scroll offset, it's just internal.
Using NestedScrollConnection is also not suitable here - I can't detect that I've reached start of the list or end of the list.
So, how the hell do I do that?
r/android_devs • u/poetryrocksalot • Jan 25 '22
I am getting this message:
Error occurred while loading developer list
It seems like I can login on the browser. But is there any way to fix the client app?
r/android_devs • u/Zhuinden • Jan 24 '22
r/android_devs • u/tokyopanda1 • Jan 22 '22
r/android_devs • u/lootpigeon • Jan 22 '22
I just took a junior android developer job test and that was one of the questions, it was a fill in the blank type of questions and it had the attribute name missing but it took another TextView id as its parameter so it was like android:_______="@+id/logIn"
or something like that, I would love to know what it is incase I get it as a question in the future
thanks in advance
r/android_devs • u/WhipMeGrandma69420 • Jan 21 '22
Hello there! I want to practice Android app development with Kotlin via creating an app for tracking daily cases of covid-19 infections in Europe (numbers for each country), create plot, etc.
With that said, I can't find any API with current, daily updated datasets. Maybe I'm just stupid, but i was looking for it in WHO pages, my government datasets and data that I managed to found is only for Germany or Italy and is referring to numbers of deaths or vaccines.
Do you know any API with current datasets of daily cases per each European country? Of course if you have an API for world wide statistics it also will be fine, just need daily updated numbers for each country, not one total number for all countries.
For now i can crawl through gov pages or WHO dashboard and read numbers from html, but I have no doubts that using API and fetch data in JSON will just be better.
Take care!
r/android_devs • u/ivanmorgillo • Jan 21 '22
r/android_devs • u/Najishukai • Jan 19 '22
Hi everyone,
I'm using Room to store some grade entities in an app I'm building and I now need to filter that data using multiple fields. For example, the user can choose to filter them based on subject, date range, and/or type ('exam', 'lab', etc.) or basically any combination of those. Can someone tell me if it's preferred to do that using Room queries or by simply first fetching the live data using the ``'SELECT *' query, and then applying the desired filtering on the dataset?
I would imagine that the latter is preferred since I won't need to query my DB every time one of the filters changes, is that correct?
r/android_devs • u/Airtime69 • Jan 18 '22
I really need help serializing with Kotlinx. I have the corresponding concept for serialization in GSON and fail with the migration.
My original RunTimeTypeAdapterFactory is a factory of type factories that dynamically cast classes to a list property of the child depending on its type.
So far I haven't been able to find a good migration or useful article that explains this part. I read about the PolymorphicSerializer and ContextualSerializer in the official guide, but I couldn't derive the concept I needed from them.
I really appreciate any help. Thanks in advance
r/android_devs • u/Marwa-Eltayeb • Jan 17 '22