As of May 31, 2023, we have updated our Code of Conduct.

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

Trying to find a Flutter package for app usage detection

I'm looking for a Flutter package (specifically for Android devices) which allows checking the app usage in my device, so that I can know when did the user open some application. Any recommendations / ...
obs's user avatar
  • 23
0 votes
0 answers
3 views

Android Kotlin: Saving RecognitionIntent user's audio to app's cache folder

After reading dozens of post regarding this topic I've come to the conclusion I'm behind a very difficult goal, but shouldn't be impossible. You can use my app to learn/improve english and I'm trying ...
Diego Perez's user avatar
  • 2,056
-1 votes
0 answers
10 views

How to implement recommendation system from search and visiting time

I built an android app that contains a fragment for questions' posts, another for courses. I want to add a recommendation system that send a notification to lecturer to tell him that a person may be a ...
Salma Eng's user avatar
0 votes
0 answers
4 views

Get and display the photo file in the phone's music in Android Studio

I want to create a music project that contains the title and image of each music track on the mobile device. The title is displayed but the image of each song is not displayed. If possible, give me ...
Parisa H's user avatar
0 votes
0 answers
7 views

Using Android's New Photo Picker Combined with Camera Option?

Has anyone found a good way to implement Android's new Photo Picker with an option to also take a photo using the camera? My app currently has a chooser that lets users add a photo from existing or ...
shagberg's user avatar
  • 2,407
0 votes
0 answers
7 views

What is the best way to pass in padding about its children in Jetpack Compose @Composable functions

ok so I am trying to write a composable function that has a default padding but I found that with a default modifier parameter it gives me this warning: I understand the reason is that if we want to ...
Qian Wu's user avatar
  • 20
0 votes
0 answers
11 views

Android Studio Unresolved Reference R in generated Fragment file

I am using fragments in my android project. Whenever I insert a second fragment in my navigation xml and connect the first to the second, I get an error. In the automatically generated ...
OHA's user avatar
  • 303
0 votes
0 answers
8 views

Compile error Unresolved reference: DatabaseHelper

I am creating a project (I only have one activity and I already have thousands of problems), I am starting with Kotlin and watching some videos and reading tutorials little by little I have been ...
Jhorbam's user avatar
0 votes
0 answers
5 views

React Native background geolocation not work

I tried to find free solution for background location for Android RN app and used this lib. But it seems it not support background geolocation. I used this code: useEffect(() => { Geolocation....
DukVanDuken's user avatar
0 votes
0 answers
6 views

Can someone help me with the 'maximum 54.0, Java 10' error when building my Unity Android game with Admob integration?

Unity Android failed build error: java.io.IOException: Can't read [/Users/user/.gradle/caches/transforms-2/files-2.1/aa91abc22c3608da7062f69537a62ac6/googlemobileads-native-unity-runtime.jar(;;;;;;;**....
Akira Fisher's user avatar
0 votes
1 answer
7 views

What is the code for keyboard to make it type in proper case always

I want to modify android keyboard so that it always types in proper case i,e the first letter of each word is in uppercase like this " This Is A Sample Text" Which code should I put and ...
Android User's user avatar
0 votes
0 answers
12 views

Python capture RAW camera image with Android phone connected to Linux via USB

Is there a way to capture a 14-bit raw camera image from a Python script on a Linux computer connected to an Android phone via USB (Google Pixel 4a to be specific)? Basically like a USB Webcam, but ...
user3925668's user avatar
0 votes
0 answers
10 views

dlopen failed: cannot locate symbol "JNI_OnLoad_javajpeg"

I have pretty simple desktop app written in JavaFX. The only task is to get a search term (text input box), send a request to my REST API and display results in a form of articles list (name and photo)...
horvoje's user avatar
  • 579
0 votes
0 answers
3 views

I'm having a problem with not receiving notifications from Firebase when I make my SDK33 app my app, the app is programmed through Sketchware

I'm having a problem with not receiving notifications from Firebase when I make my SDK33 app my app, the app is programmed through Sketchware I'm having a problem with not receiving notifications from ...
ayman Hussein's user avatar
0 votes
0 answers
11 views

"Apps targeting "Android 12 and higher are required to specify an explicit value for android:exported" I already added it as the documentation says

My application is in react native, it is an uber driver type. I use location in the background. notifications. Information of the version of the app. Camera. enter image description here enter image ...
Luis Mz's user avatar
0 votes
0 answers
10 views

GeckoView never passes referrer path/query

I'm trying to pass a referrer with GeckoSession.Loader, given that no referrers are passed at all by default with GeckoView. However, only the origin is ever passed. My code (actual URLs obfuscated): ...
Matt Bennett's user avatar
0 votes
0 answers
5 views

DrawerLayout theme does not change from code

I want to make make it possible for users to change the theme of the app but drawer layout does not change theme. I don`t understand why. AndroidManifest.xml <?xml version="1.0" encoding=&...
Davanok's user avatar
  • 49
0 votes
0 answers
5 views

How do I prevent the M3 Compose ModalBottomSheet from detaching when flinging inner LazyRow content?

I have a ModalBottomSheet and within I have a LazyColumn with a list of items. When I scroll quickly up or down, i.e. fling, that LazyColumn content, then the bottom sheet briefly detaches from the ...
Karolis's user avatar
  • 13
0 votes
0 answers
8 views

Make android print bypassing print dialog

My goal is to develop an Android app that can print an image directly without prompting the user for print settings. I want the app to send the necessary data to the printer and initiate the printing ...
centenond's user avatar
  • 1,170
0 votes
0 answers
10 views

How to exit from ui state loop?

The question about UI layer and unidirectional data flow (UDF). Let's we have DetailFragment with EditText: When user open existing detail, text filled from StateFlow<DetailUiState> by ...
Viewed's user avatar
  • 1,140
0 votes
1 answer
14 views

How to store multiple values with multiple keys using preferences in Android

I need to create add multiple numbers and each of them have unique name from user input. Then in another Activity when user put the name, the app returns the number. To Store: public void ...
Tuan Do's user avatar
0 votes
1 answer
13 views

How to fix 'Cannot resolve symbol READ_EXTERNAL_STORAGE' error in Android Studio?

READ_EXTERNAL_STORAGE error MainActivity.java public class MainActivity extends AppCompatActivity { RecyclerView recyclerView; TextView noMusicTextView; @Override protected void ...
Tushar Kumar Singh's user avatar
-1 votes
0 answers
6 views

Want Data recovery [closed]

I'm BRIJESH JANI from surat Gujarat, INDIA I have a technical issue that's why I contact you, I expect that you would help me out, Two Months ago My phone was stolen, after having a legal process my ...
Brijesh Jani's user avatar
0 votes
0 answers
13 views

Why does my HTML string resource only work with &lt;

I'm trying to apply formatting to a String literal using fromHtml() My string (foo) is something like: aaa<br/><b>bbb</b><br/><br/><b>ccc</b> However, when ...
marcpetitvecino's user avatar
-1 votes
0 answers
18 views

How to handle NullPointerException in Kotlin when accessing a property of a null object?

to com esse seguinte erro no android studio, algume consegue me ajudar ? 06/02 15:02:26: Launching 'app' on motorola one action. Error loading build artifacts from: C:\Users\mathe\...
Matheus Marinho's user avatar
0 votes
1 answer
10 views

Cordova 11 CORS Access-Control-Allow-Origin error during AJAX Call

I am developing an Android app using Cordova 11. The app performs AJAX call to 2 different domain URLs on the login page. To validate the mobile number entered. If the number exists, it generates an ...
Abhilash Raj's user avatar
0 votes
0 answers
10 views

How to create an custom share screen when receiving a share in a flutter app(or on Android and iOS native) like the pocket app?

I want to show the screen of a custom app like a demo, not the default share sheet, when I click Share in an external app I already checked the below issue and didn't understand it in that android ...
nain's user avatar
  • 1
0 votes
0 answers
6 views

How to schedule another instance of a worker with the same unique name when the worker has finished, using WorkManager?

I have a task that needs to run once at the end of every month approximately at 00:00. I have implemented it in the following way: fun schedule(existingWorkPolicy: ExistingWorkPolicy) { val ...
hoshiKuzu's user avatar
  • 836
0 votes
0 answers
5 views

I want to show the data in the roomDB in the recyclerview, but it is impossible to import the data

Adapter class package com.example.breakingblock.roomdb import android.util.Log import android.view.LayoutInflater import android.view.ViewGroup import androidx.lifecycle.LiveData import androidx....
김민서's user avatar
0 votes
1 answer
8 views

How to prevent the Android keyboard from hiding screen content?

how to make sure that the keyboard doesn't hide the inputdialog i tired : window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE) and : i added android:windowSoftInputMode="...
zakaria zin's user avatar
0 votes
0 answers
12 views

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain in new Flutter project

I'm trying to run a new Flutter project, but I keep getting the following error message: Copy Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain Caused by: java.lang....
Nima Soltan's user avatar
  • 1,763
0 votes
0 answers
10 views

ForegroundService periodically shuts down and doesn't restart after installation from unknown developer

I am writing an application for Android >=12, in which I use ForegroundService to get the user's coordinates and synchronize them with the server. I don't have any apps hosted anywhere yet (I'm a ...
solaris.chel's user avatar
0 votes
0 answers
8 views

Upgraded to Angular 16: Google Places Autocomplete (ngx-google-places-autocomplete) preventing compilation

I'm looking to get support for Google Places Autocomplete for iOS version 16.x (and Android) on mobile devices in portrait mode. So I've upgraded our Angular web application from 14 to 15 and then to ...
Pieter Siegers's user avatar
0 votes
0 answers
19 views

Not able to add a library to android studio

Uber offers the following libraries, but I dont know how to add them to my Android Studio project: https://github.com/uber/RIBs/tree/main/android The link above has a Libraries folder, I need to add ...
SA DL's user avatar
  • 63
0 votes
0 answers
13 views

Widget mirroring issue with "Stream builder"

import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import '../components/grocery_item_tile.dart'; import '../...
Serhat GENÇ's user avatar
0 votes
1 answer
19 views

How to execute code every time a Composable is shown (and execute only once)

I am creating a Composable which is responsible for showing notifications to users. Every time the user goes to that Composable, I want to execute a query which will clear the notification count. I ...
J. Doe's user avatar
  • 12.8k
0 votes
0 answers
15 views

How do I modify or remove system-defined shortcuts such as "app info" and "Pause app" in android

I have tried retrieving all the existing shortcut using shortcutManager.getShortcuts(ShortcutManager.FLAG_MATCH_PINNED) with all existing flag but it didnt retrieve "App info" and "...
K P's user avatar
  • 182
1 vote
0 answers
17 views

How to download & save files from the assets folder of React Native Expo app to a physical device?

Actually, I add some images to the assets folder of my React Native Expo app. I want that when a user opens my app, they can download or save these images on their physical device. I have tried many ...
NOOR AHMED's user avatar
0 votes
1 answer
36 views

Lambda expression returns parent method

I'm trying to create a Snackbar in my Android Java application. It has an action, displayed as Cancel, that should stop (or return) the parent method. I tried this: snackbar.setAction("Cancel&...
Ben the Coder's user avatar
0 votes
1 answer
19 views

Android Compose Recomposition is not triggered when adding items in a mutable list

I have a list of files in a LazyColumn. User can select multiple files in the list. I have a button floating over that list. The text of the button is "Archive n files" (where n is the ...
BigDan's user avatar
  • 517
0 votes
0 answers
5 views

BackdropScaffold backLayerContent image content scale issue

I have a Compose Screen with BackdropScaffold and with AsyncImage in backLayerContent, so when I open the Screen the first time, the scale of the image works weird, like in Screenshot1. And when I ...
Alybek Dandaev's user avatar
0 votes
0 answers
5 views

What should be put inside onConsentFormDismissed method of UMP SDK?

I have followed the official Android Doucumentation to implement UMP. This is the code I have: public class MainActivity extends AppCompatActivity { private ConsentInformation consentInformation; ...
pequeñaluna's user avatar
0 votes
1 answer
33 views

Getting 'No active admin' SecurityException in Android 10 - how to resolve?

I am encountering an error in the pre-launch report on the Google Play Console during testing. The error message is as follows: java.lang.SecurityException: No active admin ComponentInfo{com.google....
Rohan Hazarika's user avatar
0 votes
0 answers
11 views

What is the better way to store global objects rather than Singleton classes

I am building an android application which contains some activities that fetch datat using retrofit client. For now, i have resorted to creating instances in each activity that requires it. However, ...
TheFishTheySay's user avatar
0 votes
0 answers
8 views

Why my changes won't show up in the zip/img file created by running 'm component'?

I build my aosp project by running: source build/envsetup.sh lunch x86_64-userdebug m component I got the zip file created which inside there are different img files and others. Then I modified some ...
issac's user avatar
  • 155
0 votes
1 answer
19 views

Flutter: Error with env paths ANDROID_SDK_HOME

I tried to run the project on an android emulator and get the following error. I have mac os. Thank you all in advance for your help in solving this issue.
ike13's user avatar
  • 127
0 votes
0 answers
10 views

Different behavior when having multiple clip modifiers in jetpack compose in different SDK versions

I have the following code in jetpack compose in an android project. Button(onClick = { }, modifier = Modifier.height(52.dp).clip(RoundedCornerShape(26.dp)).clip(RoundedCornerShape(12.dp)) ...
Ahmadabadiha's user avatar
0 votes
1 answer
14 views

How can I fix the lag in displaying a text field when pressing a button in my React app?

I am getting started with React and doing a simple app. Basically when pressing a button it should generate some random-ish data (for simulating trade in a RPG). It seems to pretty much work except ...
Alex's user avatar
  • 21
0 votes
0 answers
8 views

Gradle task to unzip maven repo in Android

I am trying to unzip a local maven repo and copy the files into app\libs directory. The repo is a .zip file and the zip file contains .a files and header files. Also, I want this task to run on ...
Siju's user avatar
  • 2,585
0 votes
0 answers
8 views

On Android with root access, how can I get READ_CALL_LOG permission?

I should start by saying that this is a private app, so I don't need to worry about Google Play allowing my app to be published. I have my app installed on the system partition, in the priv-app folder,...
user496854's user avatar
  • 6,325

1
2 3 4 5
28100