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.

android
Filter by
Sorted by
Tagged with
0 votes
1 answer
9 views

Recyclerview is not shown

I want to put row_center_list.xml in the recyclerView called gym_list_recycler of fragment_center. I don't know because gpt says there are no code errors. I folloed every steps that ChatGPT told. ...
Jay's user avatar
  • 1
0 votes
1 answer
15 views

Android pattern deep links with query params

I want to support only this deep link in application https://example.com/magic_links/UUID?client_id=android and NOT these: https://example.com/magic_links/UUID?client_id=android1 https://example.com/...
Paraskevas Ntsounos's user avatar
0 votes
1 answer
14 views

For some reason my uri is not saved normally

I save the URI and then write it into the database with other data, but for some reason it starts to look different. Here's an example: [1] https://i.stack.imgur.com/WXsIm.png But when I load ...
TryHardSummer's user avatar
0 votes
1 answer
12 views

Trouble finding solution for error "Cannot resolve Class" in XML and Kotlin

I am kind of new to Android app developement and I am trying to Programm this app, which basically replaces the counting system in a card game. The Problem is, that when I try to create a layout with ...
Annonot Bsugv AliLP's user avatar
0 votes
0 answers
7 views

Inject custom .css and .js from cloud to a android webview app

I am making an app just for one thing - phone diary (in my school they are going to block all native apps) so I am making my own. I barely figured out how to use webview in android, but managed to get ...
Fluid's user avatar
  • 1
0 votes
0 answers
11 views

Android Kernel module to modify the Framebuffer

I am in search of a tutorial or guidance on how to access the framebuffer (fb0) from an Android device and modify specific pixel columns. From my research, it seems this can be achieved by creating a ...
dhan's user avatar
  • 63
0 votes
0 answers
10 views

Android Studio app installs and opens when connected but not when disconnected

I made an app, and I can install it on my phone and run it by clicking run in Android Studio, but I can't open the app without Android Studio. When I unplug my phone and close the app, I no longer ...
Curtis's user avatar
  • 1
0 votes
1 answer
8 views

Android bindServiceAsUser equivalent API which runs on an executor thread

I have the current code which passes an executor thread to bindService API as below: public class SynchronousExecutor implements Executor { @Override public void execute(Runnable r) ...
smshahriar's user avatar
0 votes
1 answer
14 views

How to display pdf in kotlin multiplatform compose

I need to display some pdf files that will be locally hosted in my multiplatform app (iOS/android).I could also open them in another app, but I have no idea how to do that. I would preferably do this ...
Tardig's user avatar
  • 9
0 votes
0 answers
11 views

Android RecyclerView with EditTexts selecting range stops before next item

Let's say I have such a RecyclerView adapter consisting of EditTexts only. public class MyAdapter extends RecyclerView.Adapter<MyAdapterJava.ViewHolder> { private String[] textArray = {&...
mnietuniema's user avatar
-3 votes
0 answers
9 views

Orange pi 5 not booting [closed]

so I bought an orange pi 5 recently (1 month ago) and today it suddenly doesn't open at all (I'm talking no lights not even red) and today I also recently added a WIFI chip to it on the back (I'm not ...
thelordOmega's user avatar
0 votes
0 answers
18 views

Android. How to programmatically download apk file?

I need to implement downloading an apk file from a link. The APK file can be large. The download should happen immediately after clicking on the "Download" button in my application. In ...
testivanivan's user avatar
  • 1,224
1 vote
1 answer
14 views

How do I observe when a list stored in another class changes to update my Compose UI?

I'm new to Compose and Android, so I may use some incorrect terminology here, but I'm basically trying to observe when a list is changed and update my UI accordingly. The list is immutable so I just ...
stackunderflow's user avatar
0 votes
0 answers
12 views

How can I exclude a specific UI element from the Material 3 Compose library?

Let's say I have followed the directions here to add the material 3 compose dependencies. https://developer.android.com/jetpack/androidx/releases/compose-material3#kts dependencies { ...
Cameron Henige's user avatar
0 votes
0 answers
16 views

How can I add native c++ code to an AOSP app using JNI? I am trying to modify EmbeddedKitchenSinkApp. I am working with Android 11

I am trying to add native C++ code to the app, but I get an linker error on execution. I am guessing there is a problem somewhere in my Android.mk files or maybe I should just manually move the shared ...
Anthony Sabbagh's user avatar
0 votes
1 answer
13 views

Android Snackbar.SnackbarLayout obsolete; replacement?

I'm maintaining an "enterprise" Android app that runs on wrist-mounted computers in an industrial environment. When we need to let the user know something of middling importance, we have the ...
Douglas Henke's user avatar
0 votes
1 answer
12 views

Android studio after updating to Iguana not allowing to create flutter project

Android Studio Iguana | 2023.2.1 Patch 2 Build #AI-232.10300.40.2321.11668458, built on April 4, 2024 Runtime version: 17.0.9+0-17.0.9b1087.7-11185874 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains ...
Abhijeet Verma's user avatar
-1 votes
0 answers
6 views

Import Platfrom Specific modules React-Native

I am using Twilio Webrtc for react-native android/ios also i am building web app from the same ,but twilio Webrtc sdk is only for android/ios not for web so i used twilio video for web ,now the issue ...
gagan jatana's user avatar
0 votes
0 answers
8 views

Problem in Android that only happens on OnePlus Smartphones

I have this problem Fatal Exception: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/local/tmp/external/d14b78a5-ac82-4371-8791-e7433f6e2f706102300023160852134....
Mario Alvarez's user avatar
0 votes
0 answers
10 views

Correct way to build room database from asset file?

I am creating a Room Database from xyz.db file in the assets folder using this code Room.databaseBuilder( context,XYZDatabase::class.java,"XYZDatabase.db") .createFromAsset("database/...
Pawandeep Singh's user avatar
0 votes
0 answers
7 views

Android wont request `READ_EXTERNAL_STORAGE` permission

I am trying to get the phones wallpaper like so: val wallpaperManager = WallpaperManager.getInstance(this); val wallpaperDrawable = wallpaperManager.drawable But am getting an error that I need ...
Quinn's user avatar
  • 7,918
0 votes
0 answers
3 views

Reset Password not connecting to Firebase authentication

I developed a project on android studio. created UI for login, forgot password. The login is connecting very well with FIREBASE but when I click on forgot password button after inputting email, it ...
DARL OKEY's user avatar
0 votes
0 answers
16 views

How to make an Android App accessable for various people

FYI I have little experience in programming, mostly just what I learned thanks to school (mostly VBA and little HTML, PHP, Java). Now I am trying to make an app (for private functionality reasons and ...
David Riesner's user avatar
0 votes
1 answer
20 views

How do I tell what caused an internal compiler error in Android Studio?

I am building an app in Android Studio Hedgehog with Kotlin. On my latest attempt to build, I got an internal compiler error. I recently added Room and KSP to the project, so I assume I did ...
Atreides's user avatar
0 votes
0 answers
8 views

Opening file open_file package downloading from firebase storage is not working

I'm not getting any error still file is not opening and I'm running the app in my own device. Does open_file only works in android studio? is there any mistakes in my code or is there any other ...
Rohan Rana Magar's user avatar
0 votes
0 answers
5 views

Problems while calling the API: The authManager is: null; the authCallback is: null; the mContext is: null

In my project, I want to call a Baidu map API (a Chinese map API), I wrote MapApp.java for this program, initialized the SDK in this file, and also declared it as the entry point of the program in ...
Wei Zeng's user avatar
0 votes
0 answers
4 views

Deriving and calling key value pairs from deserialized JSON data in Kotlin

I have a program that receives JSON data after a request to a third party API. I need to be able to call the values using the keys that I've deserialized. I know that the method lies in kotlins Map<...
Jake Ramirez's user avatar
0 votes
0 answers
13 views

prevent from displaying background notification [duplicate]

I use FCM in flutter my application. I want to receive my messages in background but I don't want to notification being displayed automatically; I want to create my own notification. what should I do? ...
yalda mohasseli's user avatar
1 vote
2 answers
21 views

Load Image without update the app Android

I want to develop my Android Studio application using Kotlin and Jetpack Compose for the UI, but I've been stuck for a while on the topic of adding a dynamic image to my app. Specifically, I want to ...
FREERIKK's user avatar
1 vote
1 answer
26 views

Should I avoid creating classes and compiling them at runtime in Android?

Let' say I have an app that is more or less like an editor and executor of what was created with the editor function. I thought about two ways: I can either develop an algorithm and a structure to ...
Jade Kush's user avatar
0 votes
1 answer
24 views

java.lang.ClassCastException When Initializing My View Models to Be Made at Runtime

I’m following Android Developers course in Android Basics with Compose. I’m on Unit 6.2 Use Room for data persistence (the level of my current knowledge in Android App Development thus far, as I’m ...
Ryan Barillos's user avatar
0 votes
0 answers
7 views

TopAppBar with scrollBehavior lagging inside HorizontalPager

I have a Scaffold with a TopAppBar and a HorizontalPager. I want the TopAppBar to collapse when the content in the HorizontalPager is scrolled vertically. Have a look at my code: @OptIn(...
BenjyTec's user avatar
  • 5,277
0 votes
1 answer
10 views

How can I optimize data retrieval in my KTOR backend server when processing API requests?

I am building a KTOR backend server which pull data from an API and stores it in MongoDB Atlas.Some data which is always same I have stored it in MongoDB.I need it frequently to process API data. I ...
Pawandeep Singh's user avatar
0 votes
2 answers
15 views

Does Firebase Authentication offer a page for deleting user accounts?

I am using Firebase Authentication in my Android app. Google is asking me for a URL where users can delete their account. Before I create a page and host it myself, I was wondering if Firebase offers ...
user567's user avatar
  • 3,812
0 votes
0 answers
17 views

Cannot use Alarm Receiver Service on new Android 14

I am trying to get a notification on the selected days and time by the user but I got this error: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. ...
flutra's user avatar
  • 71
0 votes
1 answer
15 views

Disable Automatically Tracked Events on Firebase Analytics

On Firebase Analytics for Android, certain events like screen_view or session_start are automatically tracked. Since I wanted to send additional parameters with screen_view, I added the following line ...
notGeek's user avatar
  • 1,436
0 votes
0 answers
6 views

"Cannot find EventEmitter for receivedTouches" when using a RecyclerView inside a React native UI Component

I have a React native UI Component that uses a RecyclerView to display a scrollable list of Cards. I define my View like this: public class ListView extends LinearLayout { CustomRecyclerView ...
Thomas Berthaud's user avatar
-1 votes
0 answers
13 views

I'm unable to implement the USB flash drive functionality in my application in Android Studio

I developed a picture application in Android Studio. When the user clicks on a button appearing in the top right corner of the phone screen, the application offers three options for the user to access ...
Kemal Emin Zor's user avatar
0 votes
0 answers
8 views

AutofillClientController leaking activity: system leak or is it my implementation?

When rotating the emulator the memory leak below pops up. I'm not able to figure out exactly where it comes from. To me it looks like the systems AutofillClientController is leaking my ExampleActivity....
Oscar Spruit's user avatar
0 votes
1 answer
19 views

What is the right way to combine multiple flows without the debounce in one affecting the other?

I have two hypothetical streams of data intFlow and stringFlow that I want to combine and pipe to the UI. stringFlow is somewhat erratic so I am using debounce(2000) to "slow it down". ...
X09's user avatar
  • 3,887
0 votes
1 answer
18 views

Opening App Shortcut On Android Does Not Call The onResume() Function Of The Main Activity

I'm trying to create a shortcut for my android app that calls some code when it is opened. I have followed the Official Guide to create the shortcut, and it shows up correctly on my smartphone: ...
Silvan Schmidt's user avatar
0 votes
0 answers
8 views

python and kivy reminder

I made a program for Android and I want to alarm when it's time to do it, how can I do it? Like, even when the phone's off, I want him to do it. I used the plyer to get notifications, but it doesn't ...
arshiya norozi's user avatar
0 votes
0 answers
9 views

Google play console: Your app doesn’t provide a clear source of government information

How to fix If you have written documentation proving government affiliation or authorization to facilitate government services through your app: Submit the written documentation through the Advance ...
Md Masud Rana's user avatar
2 votes
1 answer
23 views

How to create multiple application ID apks with different firebase project using single code base

Background : I am developing a kotlin android app linked to firebase , already uploaded to google playstore. I need to upload identical app to google playstore with a different id and a name with a ...
Supun Ayeshmantha's user avatar
0 votes
0 answers
8 views

Managed configurations are null on creating work profile

We are using Android management API to enroll managed devices. We have a custom app that is required for setup. For this app we also send managedConfigurations in the policy, some string data. To get ...
Takshak Rajput's user avatar
0 votes
1 answer
16 views

How to observe app settings change in the app?

Is there any way to observe settings change for my app? I mean the settings that user can change in the "Settings", particular for my app, like battery optimizations, background restrictions ...
Kamil Komnacki's user avatar
0 votes
1 answer
13 views

Android Appium long press not working on 2.5.1

On my local appium that runs 2.0.1 this works: WebElement element = assertElement(new AppiumBy.ByAndroidUIAutomator("new UiSelector().resourceId(\"" + resourceId + "\")"...
rosu alin's user avatar
  • 5,780
0 votes
1 answer
11 views

Android Webview how to display outlook mail in portrait layout in landscape device?

I have a android webview application and tried to load outlook.com. i have few mixed of portrait and landscape devices. in both the devices outlook layout is displaying differently as shown in below ...
Rajendra Prasad's user avatar
0 votes
0 answers
13 views

Flutter Android - HTTP plugin error OS Error: Machine is not on the network, errno = 64

I'm using Flutter for Android, and I'm attempting to make an HTTP call on a restricted network (no internet connection) after switching the Wi-Fi using the WifiIOT plugin in Flutter. I've successfully ...
Nicolas HOAREAU's user avatar
0 votes
1 answer
9 views

Return the view to the original position and move again (Android)

I'm trying to move an image back to its original position and then move it 200 pixels. Each line of this program works fine separately, but these two lines don't work together. When I use two lines ...
ali's user avatar
  • 306

1
2 3 4 5
28347