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
0answers
5 views

Play Games Services: From which key should I generate the oauth credential?

Welcome all In Play Games guide, they say: Open a terminal and run the Keytool utility to get the SHA1 fingerprints of the release certificate https://developers.google.com/games/services/console/...
0
votes
0answers
3 views

Android Linkify for Emergency Phone Numbers

The following works fine for standard phone numbers: Linkify.addLinks(textView, Linkify.ALL); But not for emergency phone numbers like 911 or 999. I've tried using regex: Pattern phoneNumberPattern = ...
0
votes
0answers
8 views

How to retain CheckedTextView Checked status after Orientation changes

I've created an application that uses recyclerView and adapter. I want to use onSaveInstanceState to save the state of my checkedtextview upon orientation it was refreshed. How can I retain the state ...
0
votes
1answer
20 views

Splash screen is woking on debug apk and is showing blank page on Release apk in flutter

I'm working on a flutter mobile application, while testing the mobile application on the Debug APK it shows the Splash screen perfectly when I created a Release APK the splash screen was not working ...
0
votes
0answers
5 views

Groovy plugin is incompatible with java 11

I want to add spock support to my app: plugins { id 'com.android.application' id 'groovy' } android { compileSdk 32 defaultConfig { applicationId "kkl.android.pinger&...
0
votes
1answer
5 views

Android Studio suddenly can't find ANY drawable components

Like the title suggests, all of a sudden, my Android Studio projects simply can't locate any of my drawable resources that I call when using android:background="@drawable/...
0
votes
0answers
10 views

New flutter project with new AGP and Gradle version

I wanna start a new flutter project without change AGP version and Gradle version manually before running first time on emulator, flutter doctor output : Doctor summary (to see all details, run ...
0
votes
0answers
11 views

Flutter can't recognize android sdk

I'm running Ubuntu 20 and trying to setup flutter enironment without android studio. Installed android sdk manually && it's path is $HOME/android. here's a log of the directory $ ls # cmdline-...
0
votes
0answers
8 views

How to properly use Hilt with ViewModel using @HiltViewModel?

I have a problem with Hilt and ViewModel. I'm getting RunTimeException: MainViewModel> has no zero argument constructor I spent hours to find what is wrong... Here are sources from my code: ...
0
votes
0answers
5 views

Changed data-type in room, how to do a migration?

I have changed a column type from Float to Int, how can I migrate the change so I won't lost old entries, instead just to convert all of them to the Int.
-1
votes
0answers
8 views

Is there an alternative for the apk file that cannot be decompiled?

When I Decompiled a Game Apk File by typing " apktool d file.apk" with Apktool 5 months ago, all the files were coming. But Now When I Decompile The Same File The Same Way They Don't Come, ...
0
votes
0answers
10 views

how to add data to json file flutter?

i have a data.json file like this in which i am getting a list of data i want to add another parameter{p_quantity} to this json file . Or i can the parameter by default as empty then how i can i ...
0
votes
0answers
7 views

Duplicate id 0x7f090178, tag null, or parent id 0x7f090113 with another fragment for androidx.navigation.fragment.NavHostFragment

I try to develope an android app and I need help. In my project I have a bottom sheet dialog fragment, and there is a navGraph inside this dialog fragment. Everthing is fine until after dialog box is ...
0
votes
0answers
8 views

Android MenuItem not always initialized

I have an activity with three MenuItem's. I have three variables at the top of the activity class for each MenuItem (e.g. menu1, menu2, menu3). I initialize the three MenuItems in the ...
0
votes
0answers
13 views

App is crashing when i click on any item in recyclerview

I was creating a recycler view and trying to create a toast when any item is clicked on using interface(i'm doing for first time). But my app is crashing when i click any item in recycler view. Here ...
0
votes
0answers
8 views

I need to upload a file to Google Drive using kotlin ( Android) but when I am doing it in coroutines or Asyc or a new thread I am getting error

The error which I am getting is Calling this from Your main thread can lead to deadlock, suspend fun uploadFileToGDrive(path:String,context: Context) { mDrive?.let {googleDriveService-> ...
0
votes
0answers
15 views

Android Studio throws "unresolved reference" error, but no error in code

So, the question in the title. I updated the project from GitHub, started on AVD, it works - no errors were found. But after I added/modified some code parts, again without errors, whenever I try to ...
0
votes
0answers
11 views

Cannot find symbol class ActivityEngageBindingImpl

I'm using rxjava2 + mvvvmhabit library. How to fix this issue? Cannot find symbol class ActivityEngageBindingImpl [databinding] {"msg":"Cannot resolve type \u0027LayoutManagers\u0027&...
0
votes
1answer
8 views

React native web view Android back button not exit the app

React native web view Android back button not exit the app. When i pressed back button it will not exixt the app. The following are my sample code. import React, { useEffect, useRef } from 'react'; ...
0
votes
1answer
19 views

Where can I get a moderately small community of flutter developers

I am a junior mobile developer specialized in flutter but, I encounter bugs and problems a lot and don't usually have anybody to ask, I ask on stackoverflow here and don't get answer for days , that's ...
0
votes
1answer
8 views

Kotlin: Subscribe to Firebase Cloud Messaging(FCM) Topic

I've used the Android (Java) way of doing things before for subscribing to a topic FirebaseMessaging.getInstance().subscribeToTopic("weather")... But was looking at the Kotlin example ...
0
votes
1answer
10 views

Throwing exception from okhttp3 Intercepter crashing when using suspended functions in retrofit service

List item I am making a simple network call where I thrown an exception from an Interceptor when network is not available to show appropriate message to the user. When I model the call as a suspended ...
0
votes
0answers
8 views

Lib Gdx what is the error and how to solve it?

When I create a bundle, I get this error. When I create an apk or run directly from Android Studio, there are no errors. # Type of exception: java.lang.RuntimeException \n# Exception message: Class ...
0
votes
3answers
18 views

How do I pass R.drawable.XXX value to a function in kotlin?

Here's my code: private fun roomChange(animation: Int) { val rocketImage = findViewById<ImageView>(R.id.imageView2).apply { setBackgroundResource(R.drawable.animation) ...
0
votes
0answers
6 views

Android multi module project

I'm trying to setup a multi-module project with bottom navigation fragments and hilt. Is there any github project I can use to start my project faster?
0
votes
0answers
5 views

Add AndroidTest build type for all flavors in whitelabel app

I have a whitelabel Android app, that uses flavors to build the different variants. I have setup the application so that all variants are built with fastlane, and everything works correctly except ...
0
votes
0answers
10 views

IOS problem to discover services when using flutter_blue package

I'm working on a project that requires the app I am developing with Flutter to connect to the Raspberry pi via Bluetooth and be able to send and receive data. I used the flutter_blue and ...
0
votes
0answers
6 views

After setting compoundDrawableTintList as null , setTint colour is not working

I have two condition, In first if-> I have to set compoundDrawableTintList=tintList as i have selector colour list . In second -> I have to set compoundDrawableTintList=null and I have to use ...
0
votes
0answers
12 views

Android Compose Textfield collect value two seconds after user stops writing

I have a username textField which shows if the username if available each time the value change by checking into the firebase collection "usernames" if a document with the username already ...
0
votes
1answer
5 views

Image is not selecting from gallery android studio java

I want to select image from phone gallery but when i click on image the app returns to main activity without updating image. currently i created the code in fragment. I wrote the code correctly but it ...
0
votes
0answers
7 views

How can I properly initialize my Android emulator using AVD?

I'm trying to run an Android emulator from command-line because I couldn't run it from Android Studio (it gave the same problem plus some error messages such as "Time out after 300seconds waiting ...
-2
votes
0answers
13 views

ERROR An error occurred while running subprocess npm [closed]

I did make a new application of type sidemenu in Ionic, without modifying anything, I did execute the following command to make the Android compilation • ng build • ionic capacitor add android so, ...
0
votes
0answers
7 views

ViewStubs not visible inside ScrollView

I have 3 ViewStubs inside a ScrollView and none of the content is showing. This is the fragment XML: <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="...
0
votes
0answers
9 views

Render issue in recyclerview

I have the following error I/hes.app.androi: WaitForGcToComplete blocked Instrumentation on ProfileSaver for 16.196ms W/hes.app.androi: Suspending all threads took: 21.233ms D/View: [ANR Warning]...
0
votes
2answers
8 views

Android Studio - RecyclerView with API level 19 (API 19)

I need to use RecyclerView with API 19 (API level 19). I already have tried adding implementation 'com.android.support:recyclerview-v7:+' and implementation 'androidx.recyclerview:recyclerview:1.0.0' ...
0
votes
2answers
13 views

RecyclerView RTL some items not adjusted

I'm using a RecyclerView to show a list of country codes, countries and flags respecively. The app is supporting RTL, so the layout of item is a simple Constraintlayout with 3 elements: <?xml ...
0
votes
0answers
9 views

GMail composer links don't work on Android

I am using GMail links like https://mail.google.com/?view=cm&to=some@email.com or https://mail.google.com/mail/?extsrc=mailto&url=mailto%3A%3Fto%3Dsome%40email.com to simplify writing mails ...
0
votes
2answers
23 views

How to notify the android user if camera permission is denied

I am working with camera permissions. when the user clicks on take photo button, user will be shown with run time permissions menu and lets say user deny's it and then clicks on take photo button, run ...
0
votes
0answers
4 views

junit.framework.AssertionFailedError: Expected<BuildersKt$flowOf$$inlined$unsafeFlow> but was:<kotlinx.coroutines.flow.SafeFlow>

I am trying to write android test cases for Room Dao, my return type is Flow. I am getting the following error which I am not able to understand. To test flow I am using Turbine library which should ...
0
votes
2answers
27 views

Android 12 APK throws invalid package upon install

I have an Azure build pipeline which is producing an APK which installs (via AppCenter) just fine on Android 10 but pops up the error: App not installed as package appears to be invalid on Android ...
0
votes
2answers
18 views

Nested RecyclerView OnclickListener

I have nested RecyclerView (MainRecyclerview and ChildRecyclerview) with two Adapters(MainRecyclerviewAdapter and ChildRecyclerviewAdapter), i create an interface to handle click for childRecyclerview,...
1
vote
0answers
9 views

Getting IMEI number using ADB commands Android 12

For android versions before 11 I was using the below command to get IMEI number from my device: adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '.[:space:]'" or adb shell ...
0
votes
0answers
12 views

Stopping Exoplayer on swiping in viewPager

I am making a reels type app. I have made a ReelsFragment and ReelsAdapter. I have used View Pager 2 to swipe views vertically. I am using Exoplayer to play videos. But my problem is: When i swipe ...
0
votes
1answer
8 views

Weird White lines in Android Launcher?

I'm currently programming and I noticed that there are strange white lines around the app in the Android Launcher. With other apps, everything is normal. Can someone help me how to remove them? ...
0
votes
0answers
16 views

How to return string from interface to setonclicklistener

I'm trying to learn android development and i was learning recyclerView. I want to send a string to the setOnClickListener in onCreateViewHolder method when item is clicked but I dont know how to do ...
0
votes
0answers
10 views

Android, Microsoft Graph API - network unreachable

I have followed the example at https://docs.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=Java#client-credentials-provider in order to connect an android application to Microsoft ...
0
votes
1answer
17 views

Flutter parameters transfering across pages: What about the parameter "key"?

I have made two pages, PersonalPage and InformationPage. I want to transfer some parameters from PersonalPage to InformationPage. Here are my codes. PersonalPage: Navigator.push( context, ...
0
votes
0answers
8 views

ffmpeg trim Unable to find a suitable output format

As stated in this post i try to split a video using mmpeg, slow down one of the parts and merge them back together. I use the SSffmpegVideoOperation libary for convenient ffmpeg interactions. I ...
0
votes
0answers
9 views

Debugging on Android Emulator and Physical Device (Galaxy A10) is crazy slow (MacBook Pro M1)

I've got a MacBook Pro M1 (so no access to GenyMotion yet before 3.3.*), so while developing I use a Galaxy A10 for real device testing and a Pixel Android Emulator. The performance is insanely bad on ...
0
votes
0answers
10 views

Delhi/Android Compile Error: No resource identifier found for attribute 'requestLegacyExternalStorage' in package 'android'

I'm using Embarcadero's Delphi 10.4 and trying to create an app deployed to an Amazon Fire which is using Android's 9 (API level 28) OS. No matter what I try, every time I try and run the project, I ...

1
2 3 4 5
27309