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
0 votes
0 answers
3 views

How to connect directly to the ADB daemon via an Android

I am looking to implement a Android virtual controller application. Most android games works with mobile gaming controllers but for certain games, this is not supported (Genshin, looking at you 0__0). ...
johnpeng47's user avatar
0 votes
0 answers
3 views

fix for seeds labs android rooting

I am doing android rooting seeds lab following each step very closely, I have started project from scratch 2 to 3 times all codes are good, but when uploading task2.zip and running update-binary, It ...
Ali Abbas's user avatar
0 votes
0 answers
6 views

is there any option for private app distribution for android app in google play without EMM(Mobility management)?

I need proper solution for android app distribution as private app in Google play store without EMM.Just like Apple's unlisted app distribution. My problem is to distribute the android app to specific ...
Muralitharan A's user avatar
0 votes
0 answers
4 views

The built version of my Unity android game works at a much different speed than the inspector version of my game

I don't have any special settings enabled, so what can be the cause of this?
CheeseGunner's user avatar
0 votes
0 answers
5 views

Load information at the start of the Flutter program

I have a program that reads API data. It shows the information in the program in a list. But I have a problem: When I run the program, the information is not loaded at the beginning of the program! I ...
AmirSam's user avatar
  • 25
0 votes
0 answers
4 views

failing to run an ionic app built with react on adroid studio

I've built in VScode an app using ionic & react frameworks. the app works and now i want to build it in android studio. I've tried running the following commands to copy the app from vscode to ...
Atom's user avatar
  • 1
0 votes
0 answers
4 views

How to precisely check the position of an animated element in Android with a RepeatListener

I want to develop a small game where an orange rectangle is animated from the right to the left on the display and when it is in the middle (green rectangle) the user should press a button and gets ...
VanessaF's user avatar
  • 554
-1 votes
0 answers
8 views

FilterImageView gives a transparent bitmap when drawn on Canvas?

I am actually making a photo editor and for that I am using imagefilterview to give light effects but when I try to get a bitmap out of it, the bitmap is totally transparent and shows no image. I am ...
Thunder Boltz's user avatar
0 votes
0 answers
4 views

The advantage of HWUI rendering and overdraw

Is the HWUI rendering and the GPU Overdraw tool from app developer options useful with Jetpack Compose? I tried it out, and some areas were seen to be overdrawing, and it seems like it is useful, but ...
Makiwe Lewel's user avatar
0 votes
0 answers
5 views

Jetpack Compose and MVI: Are mutable UI classes always bad?

Are there any valid reasons to make a UI data class property mutable? For example: I have an app that allows users to send messages with polls with multiple choices using Checkboxes. I want ViewModel ...
Regress.arg's user avatar
0 votes
0 answers
10 views

Why am I getting a IllegalStateException in ViewPager2 when hiding empty viewpager in my Android app?

I have a really weird issue with my viewpager2 in my Android App. Context : On my home screen, I have a viewPager2. At the beginning, it's empty. I call my api to know how many fragments the viewpager ...
Tom's user avatar
  • 1
0 votes
0 answers
6 views

How can I prevent or catch Android BluetoothGatt DeadObjectException while listening for indications from a peripheral server over long time period?

Peripheral is a GATT server that provides an indication to the android app(on a smoke detected characteristic) when it detects smoke. Usually the app logs the event to file, the user can click yes no ...
wielkipalladius's user avatar
0 votes
0 answers
12 views

React native image from json

Hay I have problem to change image. export const heroImages = [ { name: 'Aatrox' , url: './hero/Aatrox.png' }, { name: 'Ahri' , url: './hero/Ahri.png' }, { name: 'Akali', url: ...
Gamcio's user avatar
  • 1
0 votes
0 answers
14 views

Background local puh notifications on IOS & Android

I am new to flutter and trying to implement a local push notification. I tried flutter_local_notificationsbut failed to get Notification on IOS. It's only work if the app is open. Is there a way to ...
asdf21's user avatar
  • 1
0 votes
0 answers
8 views

Session["username"] not being stored in android app, even though it is stored while using any browser - Flask

I have this log in method in my python backend: @app.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'POST': username = request.form['username'] password = request....
Arieiv Ordep's user avatar
0 votes
1 answer
19 views

Flutter Exception "type 'String' is not a subtype of type 'int' of 'index'" when fetching filtered api data

I'm making an Android app with local Django Restful Api. I have 2 models in database, that are nested together, ShowsModel and DirectorModel. This is basically how my JSON looks like with GET function....
amyhawks's user avatar
0 votes
0 answers
9 views

Original error: 'GET /screenshot' cannot be proxied to UiAutomator2

Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: 'GET /screenshot' cannot be proxied to UiAutomator2 server ...
Lina Pacheco's user avatar
0 votes
0 answers
8 views

How to maintain session in android webview

I am using webview to display my website. When user click any links that is opened in a new tab or a new window user loosing his login session. But in any other browser it works fine. How to overcame ...
Haseeb Shaikh's user avatar
0 votes
0 answers
10 views

Cannot read a device's serial number when SELinux runs in enforcing mode

I developed a native application for Android 12 which needs access to the system property ro.boot.serialno. As the application is part of a release ROM, SELinux runs in enforcing mode. Due to this, ...
CRM's user avatar
  • 4,549
0 votes
0 answers
6 views

Does anyone have details on saveEnabled for ViewPager2?

So we have a ViewPager in our App that loads hundreds of fragments and we are getting a crash with TransactionTooLargeException. So here is our setup: Activity: We have the an activity that has the ...
huey77's user avatar
  • 633
0 votes
0 answers
8 views

Hilt lazy singleton with dependency at runtime

I have the following scenario: A FooRepo that do an API Rest communication to get an ID A BarRepo with AnotherRepo as a dependency and also the ID I got from FooRepo at runtime as dependency. I want ...
JSB's user avatar
  • 95
0 votes
0 answers
17 views

How can I reshape a Tensor to pass it to TF lite text recognition model [ OCR Android app ]

I am working on this Optical Character Recognition (OCR) example that uses two TensorFlow lite models (.tflite): text detection model & then text recognition model: https://www.tensorflow.org/...
M. K.'s user avatar
  • 1
0 votes
1 answer
11 views

Why can't kotlin sortWith order the collection by the first field in descending order and then by the second field in descending order

I want to order the tasks collection by nextTime in descending order and then timePart in descending order. the sort code works fine for the person collection, however, when it applies to tasks ...
Saint's user avatar
  • 1,492
0 votes
0 answers
10 views

How can I achieve the same collapsing toolbar with parallax effect as seen in Resplash in my Jetpack Compose app?

How to implement collapsing toolbar with parallax effect in jetpack compose? Hi everyone. I want to implement the scrolling behavior like user profile in Resplash application(shown in the link below) ...
lotus's user avatar
  • 1
0 votes
0 answers
15 views

How do I make the shadow appear under a button on Android Studio?

I am attempting to make the shadow appear under a button on Android Studio. This is what the button should look like this (link: https://i.stack.imgur.com/dnwFW.png). On Android Studio, it has no ...
ned-L_99's user avatar
0 votes
0 answers
21 views

Can't open external files in Android Studio

I want to open a .npy file in C++ using the NDK in Android Studio. The external storage directory is at /storage/emulated/0/, so I used the following C++ code to open the file: #include <stdio.h>...
terdev's user avatar
  • 45
0 votes
0 answers
9 views

Capacitor Upload to S3 empty file on Android

I ran into a problem when uploading files to s3. I use Yandex Object Storage (works also like aws s3 and supports aws-sdk) I use a presigned url to upload the file. And then I upload the file directly ...
dindev's user avatar
  • 23
0 votes
0 answers
11 views

How do I check if the user has an active subscription in Google Billing 6?

Is there a way to check if the user has an active subscription? I use Google Billing 6 right now. But it seems that I cannot find out how to do that. Could you please help? queryPurchases() method ...
Alex20280's user avatar
1 vote
0 answers
9 views

How to detect power button press in a service Android Kotlin

Context --- I am developing a app where i have a foreground service that detects a shake event and then sends a sms. But to minimize false positives I want to make it so that when the shakeevent has ...
Chrizlove's user avatar
0 votes
2 answers
13 views

Why is my TextView hidden below a black bar when using a WebView in Android with Kotlin?

I am trying to display a WebView and with a TextView widget below the WebView. The WebView contains ordinary HTML. When I am trying to scroll past the WebView, I can't see the TextView. image from ...
zaldoarigi's user avatar
0 votes
0 answers
7 views

Built React Native application cannot access local server running on emulator

I build Android application with ./android/gradlew assembleRelease and install the built APK to Android emulator. However, I cannot access server in any of the following ways: Using hostname IP 192....
Karolis's user avatar
  • 204
0 votes
0 answers
6 views

Customized Dash Seekbar Seekbar UI

I want to developed a customize seekbar just like the image i attached below. The center line is the base line where i can get the progress value, It should be the starting and ending point.
Ehsan Ullah's user avatar
0 votes
0 answers
7 views

Error building my Ionic React app in Android due to 'invalid source release: 17' - how can I solve it?

I am trying to build an Ionic React app in Android and am not succeeding. The app works perfectly fine in the browser but won't build. I used the followings steps: ionic capacitor build npx cap add ...
Arielle F's user avatar
0 votes
0 answers
13 views

Can't restart infinite animation using ObjectAnimator

Can't restart infinite animation using ObjectAnimator. Below code doen't work as expected, my ImageView is always stays not animated. When I remove if else statements, animation works good. Any ...
Konstantin Konopko's user avatar
1 vote
0 answers
9 views

How can I debug java.time classes in an Android app with desugaring enabled?

In the app that I develop we use ZonedDateTime and some other classes from java.time package very often. And from time to time there is a need for debugging. I am facing such problems as: ...
Inliner's user avatar
  • 901
0 votes
0 answers
18 views

Why does Android Studio require reinstallation after every laptop restart on Windows 11?

I have just installed Windows 11. Android Studio does not run after every time the laptop is turned off and on. It must be removed and reinstalled. Please help. Thank you in advance for your efforts. ...
ali masomi's user avatar
1 vote
1 answer
22 views

How to add new permission requires only on Android 13?

I would like to add this permission from documentation on Android 13. https://developer.android.com/develop/ui/views/notifications/notification-permission#new-apps <uses-permission android:name=...
christianalready's user avatar
1 vote
0 answers
10 views

ExoPlayer2 not clipping correctly in Jetpack Compose and still rendering in the overlap with with other ExoPlayers

My goal is to create a video comparison. I want to display two videos next to each other and be able to freely specify scale and translation of each. The two videos should be clipped to their ...
fragect's user avatar
  • 11
0 votes
1 answer
26 views

Unity Scene working correctly in Simulator but not loading correctly on Android

I have created a Unity Match 3 game, which I want to export to Android. It works on the web, it works when you run it on Windows, but as soon as I export it on Android it doesn't work anymore. I have ...
Felpower's user avatar
0 votes
1 answer
20 views

Check only one Checkbox in a listview unchecking the previous one

I have a listview with checkboxes, i want that only one checkbox can be clicked (like radiobutton), but i don't know how, because all the checkboxes came from the item and have the same id enter image ...
Sergon24's user avatar
0 votes
0 answers
6 views

Android Service: detect if startService or startForegroundService was used

On Android 9 and 10, how can I distinguish if my Service was invoked via startService or via startForegroundService? Is there some way in onStartCommand function inside Service? Basically, I would ...
Ariczek's user avatar
  • 41
0 votes
0 answers
9 views

How to solve the issue of widgets appearing large on ColorOS phones in Flutter?

I started developing an app in Flutter and the design looks okay on Google Pixel phones with stock Android, but on Oppo, for example, the UI elements look zoomed in. I've checked the display settings ...
PhillauSofia's user avatar
0 votes
0 answers
5 views

What could be causing my RAD Studio Android app to crash upon opening on the emulator?

I have some problem with RAD Studio when i make apk android in emulator the program run but crash and close. i try again run from android emulator error appear messages "myandroidapp keep closing&...
Leosan's user avatar
  • 1
0 votes
0 answers
7 views

How can I receive image/* data in my HomeFragment using Navigation Component in Android?

I want to add functionality to my app in which user can share images from other apps to my app. In my manifest file: <activity android:name=".ui.MainActivity" ...
Yatik's user avatar
  • 56
0 votes
0 answers
11 views

Highlight previous selected dates in Material Date Picker Android

I am trying to highlight the previous selected dates ranges in Material Date Picker Android. I am saving previous months ranges in shared preferences. I want whenever user opens the calendar I can ...
Ahmad Badar's user avatar
0 votes
0 answers
21 views

Is there a way to detect text overflow when using OutlinedTextField in jetpack compose?

I'm trying to reduce the font size if the text overflows, but there is no onTextLayout in OutlinedTextField, because the value parameter uses TextFieldValue or String instead of Text. Is there another ...
leosole's user avatar
  • 331
-1 votes
0 answers
12 views

Combine item and items into Single CardView in Compose Android

Please check this answer: https://stackoverflow.com/a/68995732/19428652 This is exactly I implemented, but the thing is each group (header & body) should wrap inside cardview, but I'm not able to ...
Ishika Singh's user avatar
-1 votes
0 answers
10 views

Legal use of Google Map short URL coming from share feature on Mobile devices

I would like to know if I can perform the below actions after receiving the short URL provide by Google Maps using its share feature: retrieve standard URL performing a get thanks to the short URL ...
user1254938's user avatar
0 votes
0 answers
9 views

How to inject contructor in viewmodel witch contains filed parameters?

I have viewmodel, and repsitoryImpl class. RepositoryImpl has parameter. class RepositoryImpl ( private val service: Service ) : Repository { } ViewModel class: @HiltViewModel class ...
Slava's user avatar
  • 371
0 votes
1 answer
17 views

How can I determine the scrolling speed of a RecyclerView in Android using Kotlin?

I want to calculate the scrolling speed of the recyclerview. I want to perform certain actions by understanding whether the user scrolls down the page fast or not. I found this block of code on ...
hgokumus35's user avatar

1
2 3 4 5
28093