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
2 views

"Unable to resolve host: No address associated with hostname" error faced by users with same ISP

I've an application on play store. Some of the users of the app are facing the error shown as in below screenshot. https://i.stack.imgur.com/5xvXi.png Analysis It's a transient error, meaning ...
Jaydip Kalkani's user avatar
0 votes
0 answers
7 views

The Application Gives Error When Opened from Recent Applications

There is a SplashActivity in my application, the application is started with this activity. SplashActivity has a duration of 2.5 seconds, when this time is completed, HomeActivity opens. When the back ...
nataliaali's user avatar
1 vote
0 answers
17 views

Running Android App in Visual Studio Code with Emulator

I am developing a React Native application which is integrated with Android. It is easier for me to be developing just using Visual Studio Code for React Native and Java in the same place. Currently, ...
John Barton's user avatar
  • 1,611
0 votes
0 answers
11 views

Run Services in Background Android New Versions?

Here My task is I want to show Toast when Screen Unlocks that "screen is open" which is working fine but I want it to run as service that When app is closed or app is removed from recent ...
Abhishek's user avatar
0 votes
0 answers
8 views

Build failed when I write yarn android in terminal

FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'Recalls'. Could not determine the dependencies of null. Could not resolve all task dependencies ...
Muhammed Emin Incedayı's user avatar
1 vote
0 answers
6 views

Android BluetoothSocket will not connect: read failed, socket might closed or timeout

Trying to handle connecting to a bluetooth device for the first time, following the instructions at Android Dev: Connect Bluetooth devices. Right now I'm just trying to get anything working at all, so ...
Kenny Wyland's user avatar
  • 20.9k
0 votes
0 answers
8 views

Call using a specific sim

I was using a code to make calls using a specific sim on a J7 Prime, now I was trying on a more updated device, specifically an A12. The calling action is performed without problems, the problem is ...
Zolu's user avatar
  • 1
-2 votes
0 answers
14 views

Extract pictures of a specific WhatsApp conversation

Due to a silly mistake, I lost a few months of WhatsApp media data. I backed up the chats but not the photos etc. Since my conversation partners still have the photos on their phones, I am searching a ...
mire's user avatar
  • 1
0 votes
0 answers
9 views

Difference `app:layout_constraintDimensionRatio="1:1"` Width and Height

What is the difference between app:layout_constraintDimensionRatio="H,1:1" and app:layout_constraintDimensionRatio="W,1:1" for example app:layout_constraintDimensionRatio="H,1:...
pequeñaluna's user avatar
0 votes
0 answers
12 views

Migrate existing Android PNG Splashscreen to Splashscreen API

I'm trying to migrate my existing Splash activity to the new Splashsreen API. Currently I have two png files - one is an English splashscreen, the other is a French splashscreen. If the app is ...
G. Steve's user avatar
  • 2,739
0 votes
0 answers
18 views

Query through old in-app purchases or keep track in another way

I want the users to purchase premium membership without using subscriptions because users are more likely to purchase if there is no auto renewable billing. Let's say the user buys 30 days premium ...
Eduard Unruh's user avatar
  • 1,007
0 votes
1 answer
11 views

android app error "failed to start several times. Restore it by clearing history?" when i run the app on my phone

✸✸ this is the error message that show in most of programms i try to run it shows in the most of my programms and i don't know why .. i google it but can't find solution ..................................
Osama mahmoud's user avatar
-2 votes
1 answer
11 views

Is there a way to block outbound calls/SMS when the monthly minutes/SMS from my provider has ended?

Been searching for ages. This should be really basic functionality right? Yet all I can find is parental control/data usage blockers. I just need the most simple thing/app/extension: I know providers ...
OzzyOsbourne's user avatar
1 vote
1 answer
25 views

How to run kotlin script programmatically in Android code

I want to run kotlin script(in string form) within Android: class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(...
Taylor's user avatar
  • 31
0 votes
0 answers
10 views

How to turn on the screen when notification arrives on device

In our app we would like to wake the screen up when notification arrives. This notification logic will be in service. We have tried to use "PARTIAL_WAKE_LOCK", but this is not working. We ...
user3863488's user avatar
0 votes
0 answers
17 views

Progressive web app stuck in portrait mode despite auto-rotate being enabled on phone

I'm developing a website which I've also created a Progressive Web App (PWA) Android app for by using https://pwabuilder.com In my manifest.json file I initially had the orientation property set to ...
John Smith's user avatar
  • 8,597
0 votes
0 answers
8 views

I'm trying to run the command =>./gradlew generateAabFlavor but Android Studio says it can't find the file(gradlew)

Caused by: java.io.IOException: Cannot run program "gradlew" (in directory "C:\Users\Suporte\digitaloffer\version2\mainfarmav2-android\app"): CreateProcess error=2, The system ...
Cesar Soares Costa FIlho's user avatar
1 vote
3 answers
37 views

Learning Kotlin problem. Cannot understand Modifier parameter

Im learning programming for the first time in my life, I've been around 2 weeks learning Kotlin with a free course, and a week learning Jetpack Compose in Android Studio especifically. I've been stuck ...
David Suárez's user avatar
0 votes
0 answers
5 views

Google Play - stuck in "Changes ready to send for review"

I need to submit changes for my app in order to submit it to the app store for the latest version, but there is no "submit" button - everything is stuck in "Changes ready to send for ...
nihonnik's user avatar
  • 162
0 votes
0 answers
7 views

Espresso. intent matcher not matching

i have this part to match intent intended(allOf( hasAction(Intent.ACTION_VIEW), hasData(Uri.parse("http://www.ya.ru/")), toPackage(...
FrBr's user avatar
  • 1
0 votes
0 answers
11 views

Clarification about APK signature scheme v3, v3.1 proof of rotation

We are blocked on releasing an update to our app because of an error related to a failed "proof of rotation" when trying to release our app on the play store. Here is the exact error message ...
jgaurav6's user avatar
0 votes
0 answers
9 views

Camera2api how to access the ultra-wide angle camera?

The phone is pixel7pro and the zoom range is [0.5563248,30.0] according to CameraCharacteristics.CONTROL_ZOOM_RATIO_RANGE I am using the following code and it is working well when switching to tele ...
kusocodeing's user avatar
1 vote
0 answers
12 views

Command 'flutter run' giving many errors

I might have messed up the installation of version of flutter and dart. I have no idea how to fix this I tried flutter run on creating a new project and it works fine for the initial demo app. But ...
Saiprasad Patil's user avatar
1 vote
0 answers
13 views

Flutter Cubit for holding data about fetching data, uploading, deleting downloading

I have the code written like this can you advise me if it is correct and suggest possible changes? Need to store download, delete and upload states for each item and display this on screen. The ...
ZomboY's user avatar
  • 31
0 votes
0 answers
9 views

How to save and retrieve/restore my scrollable activity's position (use scrollwiev) after close and reopen the app?

Hi guys :) I have an application, and I want when I close and reopen the application, it should not go back to the top of the activity, but return to the position where I left it. I tried some code ...
Sof565's user avatar
  • 1
-3 votes
0 answers
29 views

Getting 'Your JAVA_HOME is invalid' error [closed]

I am trying run an app on visual studio code but I am getting the error 'Your JAVA_HOME is invalid' I downloaded the jdk from the link the error provided. Added JAVA_HOME to the environment variable: ...
user123456789's user avatar
0 votes
0 answers
7 views

I am facing this issue while trying to add cameraX dependency in android stduio. Can somebody help here, what am i doing wrong?

While trying to add cameraX dependency to my application; i am facing "Unexpected tokens (use ';' to separate expressions on the same line)" in the highlighted line. ** def camerax_version =...
Arushi's user avatar
  • 1
0 votes
1 answer
23 views

Only updated necessary components in MutableStateFlow<MutableList>

Say I have a list in a MutableStateFlow: MutableStateFlow<MutableList<Int>>, where I have a fragment displays information of every element of the list. For example, [2, 3, 3] would have a ...
yuz's user avatar
  • 1
0 votes
0 answers
6 views

Android application build failed after upgrade targetSdkVersion and gradle version

Android application build failed after grade targetSdkVersion to 33 Tool version: Android Studio Arctic Fox | 2020.3.1 Patch 4 JDK: JAVA 11 compileSdkVersion: 33 tarGetSddkVersion: 33 Gradle: 7.0.2 ...
Kayum's user avatar
  • 1
0 votes
0 answers
16 views

Displaying text on the screen with a delay (Android Studio)

Hello everyone I recently started development in Android Studio and ran into a problem. I am developing a text novel by analogy with lifeLine. The bottom line is that the text of the story is ...
Mikhail Gorbov's user avatar
0 votes
1 answer
19 views

Coil AsyncImage get larger after back stack

I have a screen that displays a list of image movies using AsyncImage https://i.stack.imgur.com/mhSUh.jpg When I click an item, the Detail screen will display with a full-screen image https://i.stack....
Phan Lê Thăng's user avatar
0 votes
0 answers
10 views

Recaptcha sent a token. But I don't know what to do in Android - Kotlin

My question is as in the title. I started a recaptcha client by reading Android's documentation. As a result of the transactions, he sent me a long token. However, no recaptcha window appeared on the ...
traveler's user avatar
0 votes
0 answers
5 views

AdMob Native Ad not showing in emulator

Our Native Ad implementation of AdMob is working with physical devices but for some reason it is failing when running it in emulator. Other types of ads such as Interstitial and Banner works fine in ...
Bitwise DEVS's user avatar
  • 2,431
0 votes
0 answers
13 views

"Cracking the Code: How Can I Unpack and Analyze a Packed Application for Reverse Engineering?"

I am currently reverse engineering an application and have determined that it employs a packer technique. I've identified the packer in use and attempted to dump the code, but it still appears to be ...
AL QUDRI's user avatar
0 votes
0 answers
7 views

Firebase App Check: Throttled when running it with Test Lab devices

Running our app on multiple devices using Firebase Test Lab and upon seeing its log, the Firebase App Check is getting throttled. What could be the possible solution to this? 09-21 22:51:55.551: W/...
Bitwise DEVS's user avatar
  • 2,431
0 votes
0 answers
6 views

firebase authentication after login app automatically recent Minimized

firebase authentication after login success app automatically minimize. android studio error logcat here. FATAL EXCEPTION: main Process: com.myapp.myapp, PID: 15474 java.lang.RuntimeException: Unable ...
XenLeaks's user avatar
0 votes
2 answers
13 views

Android Studio: changing package name broke tests

I have an unexpected problem. I changed package name of my app (using Refactor, ofc) and I have fixed gradle.build to make sure new package name is registered there. Cleaned and rebuilt my project but ...
guest86's user avatar
  • 2,894
0 votes
0 answers
7 views

menu fields and outlinedtextfield not rendering

"// main.ktpackage com.example.littlelemon import android.os.Bundleimport androidx.activity.ComponentActivityimport androidx.activity.compose.setContentimport androidx.compose.foundation....
Rajat Bansal's user avatar
0 votes
0 answers
7 views

Nested Scrolling in Compose

I am using compose to write a Screen where structure is like this -> Header, List of ItemA and footer, but each ItemA can have list of itemB.. when i am adding list of itemB in column using forEach,...
Gaurav's user avatar
  • 1
0 votes
0 answers
5 views

How to fix "com.android.volley.TimeoutError" in android while trying to perform a login activity

I'm using xampp server as my localhost and I have an android app that has to connect to a MySQL db (where I saved some users) and login to it using users credential or as a guest. The app is on ...
Mattia Miot's user avatar
0 votes
0 answers
9 views

Items with absolute positioning create clutter in the flat list and hinder its functionality - react native

I have UI data that comes from the server, and I need to render it on the screen based on its width, height, x-axis, and y-axis. I'm attempting to render this data using the absolute position, so I ...
Anas Te's user avatar
0 votes
0 answers
6 views

How to correct intercept scrolling gesture in child of horizontal RecyclerView

One part of my main screen in Android App is horizontal recycler view with 'products' elements. In each 'Product Item' view I have another view with several photos. And I want to user can scroll this ...
alena_fox_spb's user avatar
0 votes
0 answers
8 views

Android app is not allowing to upgrade to newer version because of com.google.android.gms:play-services-ads older version

When we are trying to upgarde the app to newer version on google play store we are getting the following error: The developer of Google Mobile Ads (GMA) SDK (com.google.android.gms:play-services-ads) ...
Shyam Sunder Ghai's user avatar
0 votes
0 answers
6 views

Flutter:A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action

Error Message: Execution failed for task ':image_picker_android:verifyReleaseResources'. A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action Android ...
Ahmad Albarghash's user avatar
0 votes
0 answers
5 views

error element type is invalid expected a string (for built-in components) but got: undefined after upgrading react and react-native

I upgraded my project from "react": "16.11.0", "react-native": "0.62.2", to "react": "18.2.0", "react-native": "0.72.4", ...
alexgarciaalcuadrado's user avatar
0 votes
0 answers
14 views

How to test NFC Tag interaction in Android since android.nfc.Tag cannot be instatiated?

I am currently working on an Android application that involves NFC tags. In my app, I need to write to NFC tags, and I would like to write some unit tests that directly interact with the android.nfc....
Mirco Bellagamba's user avatar
0 votes
0 answers
6 views

Unable to resolve "firebase" error in React Native project

I try to use Firebase in a ReactNative project. I added all the configurations data in a config.js file : <Project_Name>\src\firebase\config.js import * as firebase from 'firebase'; import '...
Freddy's user avatar
  • 47
0 votes
1 answer
22 views

Error [Dagger/DuplicateBindings] when working with enum

My android app has enum class Specialization: enum class Specialization { DEVELOPER, MANAGER } The values of this class are passed to the viewmodel, which makes a request to the repository based ...
Metal Gear's user avatar
0 votes
0 answers
12 views

Recomposition is causing api to hit again and again in jetpack compose

I am doing pagination and have this code for my composable. But on recomposition the api is calling again and again. { composable(HomeSections.Todo.route) { from -> val mViewModel: ...
Jahangir Jadi's user avatar
1 vote
0 answers
6 views

How to get over Android CompanionDataManager using deprecated methods?

In its own documentation page, it is stated that CompanionDeviceManager is the preferred mechanism in order to scan for devices without asking for the infamous FINE_LOCATION premission. deviceManager....
Baltasarq's user avatar
  • 12k

1
2 3 4 5
28212