Category "android"

okhttpClient requset download file fail,Server is built by Netty

Now,i build nettyServer and use okHttp request download, but okhttp response not has dataiostream, could someone help me solve the problem? code Server by Netty

ListView Item Duplicated when Save or Reload

I am getting listView items duplicated after adding items and also when EDIT or DELETE menu item got selected, but when i re-open the app, items are not duplica

NullPointerException when i call SmsManager.sendTextMessage() method

When this line is executed: val smsManager = context.getSystemService(SmsManager::class.java) I am getting this exception: java.lang.NullPointerException: Atte

Auto Launch option by default enabled for some applications when downloaded through Play-Store

In Realme device Auto Launch option by default enabled for some application when downloaded through Play Store like Myntra, Flipkart, Domimo's etc. Any one has

Android Scoped Storage Permission for Download Folder to Download PDF

I have an app that download specific pdf files using streamig Retrofit. I am upgrading my app targeting android 11. I have gone through many online documents an

Button background color is not showing in my android activity

I created a calculator activity as a part of a bigger app, and created a theme, and style for different components. yet, when I assign a background color of ora

How to open fragment from the click of the notification?

This is my onMessageReceived method. I am getting data from notification i want to open fragment when i click on this notification and get the data from this.

Same screen specs but ADB reports different pixel density depending on OS version (LDPI/MDPI)

I suspect that later versions of Android OS are forcing MDPI rather than using LDPI. It would be helpful if someone could point me toward info/technical termino

Is it possible to run Java16 code on Android

I know Java 16/17/18 is not compatible with java 8 (android), but is-it a way to generate byte-code for android to execute the program on my phone? Or trans-cod

How can I make the status bar / navigation bar invisible on Android, while keeping the padding at the top / bottom of the screen?

I'm trying to create an 'immersive mode' in my app, where tapping a button simply hides the status bar (and nav bar, if possible.) But I specifically don't want

Animating a specific line of a textview using android Animations

I am wondering if it is possible to perform a fade out/fade in animation on a specific line of a textview. I have a two line textview which I would like the "ti

How to pass an interface as parameter in koin

I'm so beginner in koin. I have a method that named "MesheRepoImpl" that get an interface as parameter. I know that I can't pass an interface to a method in Koi

How to restrict the user to enter leading, trailing and consecutive space in a string in kotlin

I have a scenario, where I need to restrict the user to enter leading, trailing and consecutive space and if the user enters do not update the text with space b

Firebase dynamic link does not go smooth

I'm trying to use Firebase dynamic link option and succeeded to create a link that opens the app, but the opening process doesn't look smooth. It looks somethin

How to create unique id for each collection in Firebase?

I want to create a unique id for collection call 'Reservation' and I'm not sure how to do it so. It currently has name, plate number, phone number and timestamp

Firebase crashlytics not able to read crash reports

I have configured crashlytics as per Firebase Documentation https://firebase.google.com/docs/crashlytics/get-started?platform=android. But crash reports not gen

Pass context to store data in Room

I am trying to save received data to local storage using Room library. I have created a database class in which I define the parameters I need and define the co

bottom navigation view doesnt shows fargment unless double click

i fixed the previous error but now this here. fragment isnt visible if i dont click bottom navigation two times. my code: activity_main.xml <androidx.fragmen

How to load data into the database and get it back

When I open the screen by "ID", I get the title and data from "dummy.dart" in accordance with the "exercise_model.dart" model, which fall into the "Slider", in

How to load data into the database and get it back

When I open the screen by "ID", I get the title and data from "dummy.dart" in accordance with the "exercise_model.dart" model, which fall into the "Slider", in