Category "android"

Wifi direct P2P aplication

I am trying to create a android Wi-Fi Direct (P2P) application. I found this code (Creating P2P Connections with Wi-Fi : Message passing issue) and I'm trying t

Flutter:MainActivity cannot be converted to FlutterEngine in Java Native code

I am trying to create a plugin for Flutter in Java. I am trying to pass the Android activity parameter in my main Java class. This is my native code: package

ViewModel updates on screen rotation

I've created a simple project to study Kotlin and Android architecture https://github.com/AOreshin/shtatus The screen consists of RecyclerView and three EditT

Why has SpeechRecognizer suddenly stopped working?

My Android app (Xamarin) uses speech recognition. This has worked fine on smartphones with Android 8, 11 and 12. Since a few weeks the speech recognition of my

Error: "Your Android App Bundle is signed with the wrong key." How to sign apk/aab using Google provided signing information

While uploading my second app project to PlayStore, I got the following error while upload .aab file for a new release: "Your Android App Bundle is signed wit

CoroutineScope Questions

At the Coroutine Scope, Why is the last println() called first when the launch block is called first?

\debug\stableIds.txt: error: failed to open: the data is invalid. (13)

Someone, please give some suggestions on this error. android resource linkage failed: \debug\stableIds.txt: error: failed to open: the data is invalid. (13).

Youtube video playing intent only works if Youtube is not open yet

I would like to send intents for a continuous stream of videos, but all intents, except for the first one (sent with youtube closed) seem to be ignored, and you

How to run react native on WSL with android emulator on Windows

I have a react native expo project on WSL2 and I need to run it on an android emulator on Windows, and I am also willing to run the project using yarn start. Ho

Cannot pass filepath to MediaRecorder in Android 11

I am passing filepath to MediaRecorder for creating video file. File(filePath).exists() returns false, but MediaRecorder fails with IOException, java.io.FileNot

TimePickerDialog in spinner mode

In my project, I use TimepickerDialog to show the time in a TextView. My Timepickerdialog is shown as a clock, but I want it shown as a spinner. How can I do th

Firebase Cloud Messaging : not receiving message in android 12

I am trying to send push notification to android 12 device using Firebase messaging service. When i try to send FCM from nodeJs, onMessageReceived is not called

Android Notification MediaStyle Ignores Ongoing Flag

I am attempting to employ a MediaStyle notification in an audio Android application as discussed in the audio app documentation as well as in the media style do

ViewPager2 crash

I am using Advance Navigation Component with BottomNavigationView. In one tab I have ViewPager2. When I clicked on the tab for the first time, it worked fine. A

How to globally change language in Android app

I have such code, and its work fine, but it change language only in context which was applied. I need to run this code in all activities. How can i change langu

Android Programming - Navigation Drawer Multiple Instances of Same Fragment

I am trying to make a weather app where each location that the user adds, it will be shown in the Navigation Drawer. I would like to have multiple items in the

How to remove the access rights to a linked google account after the deletion of an account at firebase?

I just implemented the possibility to delete the personal account at Firebase of an Android application. I then discovered that the application is still listed

java.net.ProtocolException: expected * bytes but received * #4302

@post() @multipart Call<FileUploadResult[]> upload File(@nonnull @part MultipartBody.Part... files); MultipartBody.Part body = MultipartBody.Part.create

Can I hide certain files and folders in the Project Explorer of my Android studio?

There are many files or folders that should be included in the project for a specific case, such as when building, but are not editable by the user. In the a

What is the use case for @Binds vs @Provides annotation in Dagger2

I am not certain on the purpose for Dagger2's @Bind annotation. From what i have read online im still not clear but here is an example: @Module public abstr