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.
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 ...
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 ...
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 ...
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 ...
...
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 ...
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....
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....
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)...
...
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?): ...
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://...
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 ...
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-...
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 ...
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 ...
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 ...
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) {
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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/...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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.
...
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?
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 ...
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" ...
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 ...
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 ...
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 ...
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 ...
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 ...