Questions tagged [android]

Android is Google's mobile operating system, used for programming or developing digital devices (Smartphones, Tablets, Automobiles, TVs, Wear, Glass, IoT). For topics related to Android, use Android-specific tags such as android-intent, android-activity, android-adapter, etc. For questions other than development or programming, but related to the Android framework, use this link: https://android.stackexchange.com.

Filter by
Sorted by
Tagged with
0votes
0answers
2views

Gradle is throwing an error while downloading the artifacts

Running Gradle task 'assembleDebug'... Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns FAILURE: Build failed with an exception. What went wrong: Could not ...
user avatar
0votes
0answers
5views

Can't pass variable from onDataChange to another class/activity

I'm trying to pass 2 variables from firebase onDataChange method to another activity but always the value is null inside the other activity. I tried the following things: Using a callback interface ...
user avatar
0votes
0answers
3views

Kotlin Coroutines Flow catch mechanism

In my sample I'm calling network operation and emitting success case but on error e.g 404 app crashes wihout emitting exception. Surrendering with try catch prevent crashes but I want to pass error ...
user avatar
  • 15
0votes
0answers
3views

Foreground service is getting killed outside without calling selfStop?

I am working on scheduling app in which i have to run the app until it completes it process but the problem is , Process is getting killed after few minute even it is running on foreground service ... ...
user avatar
0votes
0answers
11views

I released my first app but it shows draft instead of production under App Status?

I recently released an app on play store and it’s in review but the thing I am worried about is that under App Status it shows draft, which I think should be production. Is it normal? Also how many ...
user avatar
0votes
0answers
4views

Unable to execute Syncfusion gauge chart in flutter

Unable to execute Syncfusion gauge chart in flutter, I have imported the syncfusion based on the documentation in the pub.dev, after running i am getting an error , I have syncfusion in my pubspec....
user avatar
0votes
0answers
4views

Error: 'Flutter\Flutter\FlutterCode\StatefulWidget\android' is not recognised internal or external command, operable program or batch file

Error: 'Flutter\Flutter\FlutterCode\StatefulWidget\android' is not recognised internal or external command, operable program or batch file. Error: Could not find or load main class org.gradle....
user avatar
0votes
1answer
13views

Restoring the state of a SearchView and filtering LiveData with the restored state

I'm using a SearchView in my layout to let a user search for categories. The problem that arises is when restoring state when i navigate away from the fragment and come back (View gets restored)... ...
user avatar
  • 1,964
0votes
0answers
3views

How to set Exoplayer as a service

I am trying to make a music player with exoplayer but i am not able to set it as a service class PlayerService : Service() { var exoPlayer : ExoPlayer? = null override fun onBind(p0: Intent?): ...
user avatar
0votes
0answers
6views

How to handle theme changing when using android:configChanges="uiMode?

I am using android:configChanges="uiMode" to avoid recreating my activity but I have a problem with theme changing, here is my Light theme file: <resources xmlns:tools="http://...
user avatar
0votes
0answers
8views

(Android-Mapbox)Failed to resolve: com.mapbox.navigation:android:2.3.0

I am trying the implement the navigation API of Mapbox into my android application. However, I have encountered the following issue: Failed to resolve: com.mapbox.navigation:android:2.3.0 May I have ...
user avatar
-2votes
0answers
11views

When my app going phone number activity to otp activity,,app crashed..And My phone number is not changing

2022-03-26 14:56:03.917 31220-31220/? E/nstyle.widecha: Unknown bits set in runtime_flags: 0x8000 2022-03-26 14:56:04.037 31220-31220/? E/RefClass: java.lang.reflect.InvocationTargetException 2022-03-...
user avatar
0votes
0answers
8views

VPN not working on Android Emulator in MacOS

I am using Android studio Emulator on my MacOS where I am using a VPN. On my desktop I am able to access website using a VPN but on my Emulator those websites I am not able to access, but a normal ...
user avatar
  • 3,284
0votes
0answers
7views

How to change RecyclerView dataset with animation?

I have two different ArrayList a<Model> and b<Model>. recyclerview shows a by default and I want to change recyclerview dataset to b or back to a dynamically. how can I make this dataset ...
user avatar
  • 143
0votes
1answer
13views

get data with query from document collection and document subcollection in firestore

I have a collection with "grup" name and have a subcollection named "anggota". Please help me, how to display data by query referring to collection document and subcollection ...
user avatar
-2votes
1answer
19views

Thread freezes UI

I have this button that when clicked calls a thead to update user ui: averageButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { ...
user avatar
  • 439
0votes
0answers
10views

firebase authentication google sign [duplicate]

I am using firebase authentication google sign in .APK works fine but showing error with status code 10: developer error in app bundle. Means when I am generating app bundle and test with firebase. It ...
user avatar
0votes
0answers
11views

Can not open two camera ( front and back) at same time

My project in git I wanna open 2 camera (front and back) and display preview in screen. If I open single camera then it's Ok. But I have trouble when open 2 camera same time, one in two camera error ...
user avatar
0votes
0answers
15views

App crashes on uploading documents from recents folder android

I am making a doctor and patient app in which I have added the document upload option but when I try to upload any pdf from "recents" folder the app crashes. If I upload it from downloads or ...
user avatar
0votes
0answers
12views

Download data in WorkManager. Not working when I checked in Activity

I am using workManager in splashActivity, But I don't think it's saved in Room database. I don't know why and I try to find out how to work this things. This is my workmanger and I make this with ...
user avatar
-3votes
0answers
16views

How to make android app run on windows without emulator

So I have an android app, and the app is secure, that means one can't take screen shots or record the screen, I want to convert my android app into desktop app but keep the security thing, I can't use ...
user avatar
  • 1
0votes
0answers
18views

React-Native Deep Linking - If app is not installed redirect to Play Store. If app is installed pass params to app

I'm struggling by this problem - How to pass google play store parameters value to input field? for example, https://play.google.com/store/apps/details?id=%7BappID%7D&hl=en&referrer=ABC123 I ...
user avatar
0votes
0answers
8views

How to clear task with a different affinity?

I have an Activity A in my app which is launched as part of Chrome's task. This Activity opens Activity B which is part of an external library. Now, the problem is when the app is open with Splash ...
user avatar
0votes
0answers
10views

Unable to get marquee effect in textView Android

I have a widget which is containing a text view and this widget is included in my fragment layout file , I want to have the marquee effect for the textView inside the widget but it's not working. Here ...
user avatar
1vote
3answers
24views

Cannot Scroll ListView inside FutureBuilder

I have tried almost all the solution on stackoverflow like using Expanded widget with single child scroll view and physics property and what not but still cannot enable scroll inside futurebuilder ...
user avatar
0votes
0answers
15views

Location tracking in react native even if app is closed?

I am looking for Location tracking in react native even if app is closed? I have tried react-native-location but how i will track location and get response from gps when even app is closed. I am ...
user avatar
0votes
0answers
5views

Remove Cookies except session related cookies in android app

I have develop an android application which uses webview to convert my website into mobile app. there are few cookies set from website to store data while user uses website on android app. Issue is ...
user avatar
-1votes
0answers
7views

Buildozer didn't took few audio files while packing apk

Everyone I made a simple game in kivy and build the apk using buildozer and google colab there are three sound files which I used in the game all are of.wav extension one sound file is successfully ...
user avatar
0votes
1answer
16views

Android Studio Emulator Not Running

I am not able to run emulator neither on my phone nor on laptop Name of emulator is appearing fade and what I have done I don't know and also in log cat it is showing disconnected. I have deleted the ...
user avatar
0votes
0answers
7views

How to Test Doze mode in Android 12?

Document https://developer.android.com/training/monitoring-device-state/doze-standby#testing_doze_and_app_standby mentions to use this command to send the device to Doze mode adb shell dumpsys ...
user avatar
0votes
0answers
6views

How to stop backslash auto insertion in JSON Object in Android? [duplicate]

Here url = "https://youtu.be/02G43456CA" is a string that contains some video URL JSONObject jsonObject = new JSONObject(); jsonObject.put("url", url); Log.i(TAG, ...
user avatar
0votes
0answers
11views

How to make Text scrollable in Jetpack Compose

I want to create a scrollable Text in Jetpack Compose. In View system, we can make text scrollable by using: android:scrollbars = "vertical" and textview.setMovementMethod(new ...
user avatar
-1votes
0answers
10views

Why all content inside fields still exists even after the onCreateView method is called?

In the A fragment there are fields and a button that will take the user to the B fragment, Let's suppose the user inserts the data inside fields and after that clicked on the button, Now the user in ...
user avatar
  • 69
0votes
1answer
31views

Android CountDownTimer skipping interval of 1 ms

At first lets have a look in the logcat E/StopWatchService: onTick: 0 E/StopWatchService: onTick: 2 E/StopWatchService: onTick: 3 E/StopWatchService: onTick: 5 E/StopWatchService: onTick: 6 E/...
user avatar
0votes
0answers
13views

Set flag to intent dynamically from response string

I have to start an intent with some flag values which will be received from an api response. intent.addFlags(Intent.ANY_ACTION); As shown in the above line, the value "ANY_ACTION" can be ...
user avatar
  • 175
0votes
0answers
21views

Flutter app only working with WiFi and not mobile data

I have a flutter app that is working fine with WiFi but when I switch to mobile data its not working. I have checked and I have internet connection because my other sites and apps are working. On the ...
user avatar
0votes
0answers
12views

Disable split screen mode for android launcher

I would like to exit split-screen mode when the home button is pressed on android 10. I try a lot of solutions like setting android:resizeableActivity="false" in the manifest of my launcher ...
user avatar
0votes
1answer
8views

Launching fragment via ServiceLoader in Dynamic Feature (Android)

I'm trying to launch a fragment in my a dynamic feature module using a ServiceLoader as follows, but I get a crash the first time I try to launch my fragment. After the initial crash, if I try to ...
user avatar
  • 5,329
0votes
0answers
10views

NativeScript Android .aab/.apk published but app is not opening after installed

Application: NativeScript + Angular + TypeScript Platform : Android Problem: During development everything works fine. By "ns run android", the app works perfectly on my android phone. So ...
user avatar
1vote
0answers
10views

How to pass BluetoothDevice object to BluetoothAdapter?

I'm working on a react-native application that will connect to a printer using Bluetooth and using the SDK of that printer will be able to print receipts. To implement the SDK I had to bridge android ...
user avatar
-1votes
2answers
30views

I'm trying to implement MVVM Architecture, but this error is consuming me... (ViewModelProvider)

just it's me trying to implement MVVM architecture with Kotlin. I need to use ViewModelProvider to init my instance and I'm getting this error... Any advice?
user avatar
-4votes
0answers
24views

How to set or change a phone number programmatically? [closed]

I know how to get or read a phone number. But how to set or change one? I want to change it in such a way that other application installed on my phone would read it as a custom number that I had set. ...
user avatar
  • 1
1vote
2answers
23views

How to use SharedFlow in Jetpack Compose

With state flow I can use val items by myViewModel.items.collectAsState() I suppose shared flow cannot be used this way. Are shared flows even applicable for Compose?
user avatar
  • 1,186
-1votes
0answers
10views

Universal deeplink on android 12

on android 12 when I try to open URL it's always opening on webview. when I go to the app setting it's showing 0 verified links. My app is not using target SDK 31. Same URL is working on android 11 I ...
user avatar
  • 63
0votes
0answers
11views

Android automatic sleep and wakeup

I am developing an android application on an industrial device (SDK 23 / Android 6) with root permission. This industrial device should "go to sleep" over night and then "wake up" ...
user avatar
0votes
1answer
14views

How to fetch files from Firebase in Android using multiple threads?

So I have an intent where I display several images in RecycleView. But the loading is slow so I thought I could display them using multiple threads. When I create threads in the onBindViewHolder ...
user avatar
0votes
0answers
14views

Updating the apk created in the Coollaboratory Google Research

I managed to create an apk (kivy/python) using Coollaboratory and it works, but the Android device cannot install subsequent versions created in another session to the previous one, even if nothing ...
user avatar
0votes
0answers
22views

How to create a socket with SSL and self signed certificate in java [duplicate]

I want to create a socket with with my self signed certificate In my android application so that I can conect to my server which is written in python and use dual stack settings Any help please it's ...
user avatar
0votes
0answers
7views

MongoDB Could not resolve encoder for end type when querying an array?

I've got a collection of Event documents in my MongoDB database that contain various properties. One of which is an array of User IDs named "attendees". I am trying to query the database for ...
user avatar
  • 1
0votes
0answers
9views

Android 12 - Launching Foreground Service from a background Bluetooth LE scan BroadcastReceiver throws ForegroundServiceStartNotAllowedException

My app records the user's trip while driving a vehicle using GPS. It's intended to be triggered by the presence of a BLE beacon (or Activity Recognition). Since targeting API 31 it's being caught by ...
user avatar
  • 2,675

15 30 50 per page
1
2 3 4 5
27416