Svoboda | Graniru | BBC Russia | Golosameriki | Facebook

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

Make a ScrollView take all space available

I have a ConstraintLayout in which I have an image at the top as well as a an action bar at the bottom that should both stay fixed. Between both of them I have a ScrollView, and I want it to take all ...
user avatar
-1 votes
1 answer
22 views

Why does App crashes when enableing obfuscate?

What happens App crashes when I set minifyEnabled true shrinkResources true Stacktrace [IMPORTANT] java.lang.NoClassDefFoundError: Failed resolution of: Landroid/app/Application$...
user avatar
0 votes
1 answer
17 views

Button that sets imageView from the gallery, within fragment

I have tried many different solutions that I have found, this seems to be the closest i've been to getting this section to work. When debugging the bundle is shows as null. onActivityResult Launcher ...
user avatar
  • 3
0 votes
0 answers
8 views

After some latest update of Android Studio Emulator stop working. For now it shows some useless window

I have not used Emulator for almost a year. Now I need to check push notifications on Android 12 so I decide to run my app on Emulator. But looks like Android Studio developers decide to break even ...
user avatar
0 votes
1 answer
19 views

Nested async functions in Android

I have asynchronous functions with firebase and others apis that depends on each other. So, to start task B has to finish task A. The async functions are retuning MyResult that can be success or ...
user avatar
0 votes
1 answer
20 views

Cant open phone in Android app through call button

I have a c# website that has a button in it that uses the html button to open the phone. However when I click it within my android app which just shows this website in an android webview it shows the ...
user avatar
  • 1
0 votes
1 answer
20 views

How to make a popup take all screen size

I'm creating an mobile app on Android Studio, and I have a list of shows where, if I click on one of them, it displays a popup with all informations on the clicked show. I'm creating my popup like ...
user avatar
-1 votes
0 answers
18 views

Is it possible to have a Shared Dependency in all my android studio projects?

Every time I create an android project, I have to add for example "navigation library" or some other ones,Is it possible to make it such the desired dependency is already included in my ...
user avatar
  • 1
0 votes
3 answers
29 views

Saving radio group checkedId with SharedPreferences to make the radio button selection to be the same when resuming Kotlin

I'm trying to program an android app with android studio that counts steps taken by the user. I'm trying to make a settings/options activity where the user can both set their height and preferred ...
user avatar
  • 3
1 vote
1 answer
23 views

Android Compose: Place an element in the center and other elements above it

I need to insert a Text element Text("text center") in the center of the screen (both horizontally and vertically). Also, I want to insert the Text("text") element above Text("...
user avatar
  • 103
1 vote
1 answer
32 views

Android Studio Cannot Install Any SDK (Im Beginner)

Im starting Android Programming so Im installing Android Studio. When Im trying to run the wizard, I get an error: "Missing SDK" I didn't download any SDK and I know that Android Studio can ...
user avatar
0 votes
0 answers
19 views

How to set up React native with andriod studio?

I am very new to react native and mobile dev . I am trying to setup react native to work on my andriod studio emulator nand wheni do it does not load up the phone emulator as it is supposed to do . ...
user avatar
0 votes
0 answers
12 views

show statusBar when scrolling from the top [duplicate]

Is there is a way to show the statusBar when scrolling from the top and hide it if the user isn't scrolling. Just like some android games.
user avatar
0 votes
1 answer
24 views

kotlin coroutines trying to build recipes app based on recipessdb with kotlin +coroutines and mvvm but i have an error that i don't know

here is my api sevice interface GetDataServices { @GET("categories.php") suspend fun getCategoryList(): Category here is my Repositor class Repository( var ...
user avatar
0 votes
0 answers
15 views

Blank response in PHP using FCM for push notification to mobile app. Local it is working fine, on Centos server it is returning blank response

getting blank response on Centos server and local it is working fine. I tried to disable the firewall on centos also and try again but still getting blank response. $api_key = 'api_key'; $fields = ...
user avatar
-2 votes
0 answers
25 views

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference(Firebase) [duplicate]

I am creating an application that uses firebase database, but when I test the app, when I try to access a fragment that contains a recyclerview that shows the firebase data, the app closes, and when I ...
user avatar
0 votes
1 answer
24 views

How can I use dynamic colors in SplashScreen api an android 12?

I'm trying to make the background of an android 12 splash screen use @android:color/system_neutral1_900 as the background, but as I can see, the color loads only after the splash screen. Is there any ...
user avatar
  • 1
0 votes
1 answer
21 views

What is wrong with my code. I am unable to draw on the screen

I have checked my code several times and don't know where is it going wrong. i am trying to build a drawing app and after doing all this code I am unable to get any output. Not able to draw on the ...
user avatar
0 votes
0 answers
4 views

I have used clustering to manage Google Map's idle, what else can I do to monitor idle changes?

Using a cluster will definitely use mMap.setOnCameraIdleListener(clusterManager) to control it. Then how do I go to the idle state of the listener google map again? Because sometimes the map is ...
user avatar
  • 182
-1 votes
0 answers
14 views

custom cardview android like image [closed]

i am in need of custom cardview like in the picture, can anyone who has done this help me. Thank you enter image description here
user avatar
  • 1
0 votes
0 answers
9 views

Problem using react-native-track-player with a custom dev client

I get this error when I try to use react-native-track-player in expo TypeError: null is not an object (evaluating ‘TrackPlayer.RATING_HEART’) Invariant Violation: “main” has not been registered. This ...
user avatar
0 votes
1 answer
25 views

onClick() in LazyColumn

I am trying to set onClick() in IconButton like this IconButton(onClick = { navController?.navigate(NavigationScreen.Search.route) }) { Icon( ...
user avatar
0 votes
1 answer
19 views

How do I allow only one specific fragment to have both portrait and landscape orientations in Android?

In my Android application, I have added android:screenOrientation="portrait" to all activities in my Android.manifest and android:orientation="vertical" to every activity's/...
user avatar
0 votes
0 answers
10 views

click gesture detection on part of edittext android

I am working on a text editor for a programming language, it has two parts, the line number box (2) and the code box (1) like in the figure below .................. . . . . . ...
user avatar
  • 86
0 votes
0 answers
13 views

Bad state: Stream has already been listened to. : Error when using WebSocket with Stream builder

I am using a web socket to get the response. I create a stream using it and assign it to the StreamBuilder stream property (refer code below) for getting data snapshots. Problem: When I "re-...
user avatar
0 votes
0 answers
20 views

How to have multiple custom themes in jetpack compose?

My current code is as follows: @Composable fun AppTheme(darkTheme: Boolean = false, content: @Composable() () -> Unit) { val colors = if (darkTheme) DarkThemeColors else ...
user avatar
  • 13
1 vote
1 answer
12 views

How to get File object from assets?

I have a markdown file in my assets folder. I am using a markdown viewer which takes java.io.File Object as an argument to parse the file on screen. But i don't know how to get a File Object from a ...
user avatar
  • 107
0 votes
0 answers
16 views

Disable ads after in-app product purchase with in-app billing 5

I have set up in-app billing 5 in my application which is mainly about disabling Admob ads after the user makes a purchases , after the user pays for the in-app product , I would like to know what are ...
user avatar
  • 2,634
0 votes
0 answers
20 views

How to fix two API requests with flow coroutines

I have problems to execute two flows with efficient way. Sometimes I have to trigger this method(click on button) twice to have different result it seems that sometimes flow is not triggered well. ...
user avatar
-2 votes
0 answers
15 views

Change profile picture using method pickcamera() or pickgallery() in app android not work

I'm trying to change the profile picture for the user registered on my app. Initially it worked now going forward with the project it not work now, once I click the two options "camera" or &...
user avatar
  • 1
-2 votes
0 answers
17 views

Take data from the multiple dialog box and put them in the window marker

I should take all the information that was put in the dialog and put it in the window marker in google maps as a description of the person who put the marker like a mini profile, must be from the same ...
user avatar
-3 votes
0 answers
22 views

Firebase data retrieved but Arraylist is Empty

In This MainActivity.Java file the questionsList is empty when data retrieve from Firebase. But another way, when i am set argument manually in this questionsList. the questionsList is not empty and ...
user avatar
0 votes
0 answers
12 views

A failure occurred while executing com.android.build.gradle.internal.transforms.ShrinkAppBundleResourcesAction

I am trying to create an appbundle for my Flutter app. It's been working nice until now, but for some reason it's giving an error now. I just went to the project's folder and ran flutter clean and ...
user avatar
0 votes
0 answers
3 views

How to get default Carrier APN on android devices

A few years back I was able to get default APN using the Core Telephony API mentioned in Android developers guide. Now I am not able to get the APN. I see a new documentation, APN Settings, but I am ...
user avatar
0 votes
4 answers
54 views

What context should I pass to the AdapterItem from InformationFragment?

AdapterItem class AdapterItem(val context: Context, val userList: List): RecyclerView.Adapter<AdapterItem.ViewHolder>() { class ViewHolder(itemView:View):RecyclerView.ViewHolder(itemView){ var ...
user avatar
1 vote
0 answers
17 views

When i install my flutter app on Android devices, the onBackgroundMessage() doesn't work. Someone knows how to solve?

I'm using onBackgroundMessage() and FirebaseMessaging.onMessage.listen() to receive notifications both in Background and Foreground mode, but i only get the notifications in Foreground. Here's a ...
user avatar
0 votes
0 answers
22 views

Proper service implementation with Vue and WebView Application

How would you properly build and implement a web application which can be used in embedded applications with WebView on Android? My question is directed to the basics, technical requirements and how ...
user avatar
-1 votes
0 answers
14 views

How to delete row item data from list as well as firebase firestore using adapter class in android

CourseRVAdapter.java public class CourseRVAdapter extends RecyclerView.Adapter<CourseRVAdapter.ViewHolder> { // creating variables for our ArrayList and context private ArrayList<...
user avatar
0 votes
0 answers
6 views

input type="date" doesn't work with android browser

Input type="date" doesn't work with with android browser but work on chrome inspector with mobile device simulator for all android mobile . It is impossible to modify the year directly, I ...
user avatar
  • 43
1 vote
1 answer
33 views

Wait for first Flow emit and update second Flow whenever there is a change on first one

I implemented an API call and I would like to allow the user to choose the sort order, keeping the choice saved in Datastore Preferences. But I couldn't implement this idea, since both are returning ...
user avatar
  • 25
0 votes
0 answers
19 views

Multiple Repeating Alarm using Alarm Manager

I'm working on a small project, which is a pill reminder app. in my Setting Preference i have code like this SettingsPreference.kt ..... override fun onCreatePreferences(savedInstanceState: Bundle?, ...
user avatar
-2 votes
0 answers
18 views

Use onInfoWindowClick() to go to another part of the app

I'm trying to use the method onInfoWindowClick to be able to go to a specific part of the app. More precisely when I click on the marker I should start the conversation between me and that person who ...
user avatar
  • 1
-1 votes
1 answer
15 views

How to stay on current fragment after progressdialog dismiss android

Since we knew that progressdialog need a parameter context or get the activity of fragment but after dismissig the dialog it went to the other fragment which i set the the mainactivity default ...
user avatar
0 votes
0 answers
18 views

How to ask permissions from multiple user in flutter [closed]

I want to develop app for hall booking for college were it needs to be approved by multiple users can i get some reference materials for this
user avatar
0 votes
0 answers
15 views

Problem querying mysql database online in Android 11 [closed]

I have created a simple android application, in the start activity it asks the user to enter the username and password and it verifies the information entered by querying the online mysql database ...
user avatar
  • 1
0 votes
0 answers
18 views

How to use opencv to consume the UI of an android emulator/device

I want to use opencv to analysis the UI and send different commands to the device or emulator. Now I am use adb screenrecord to record the video and use opencv to analysis offline, just wondering is ...
user avatar
  • 137
0 votes
0 answers
20 views

Xamarin Android Library Binding - Class does not contain a definition

Xamarin Play Core (the package for reviews & tasks needed to launch reviews) split for v2.0.0 into individual packages, so I'm trying to create a Xamarin Android bindings library for the review ...
user avatar
  • 4,529
0 votes
0 answers
15 views

Android layout edit challenges

I just wanted the AR camera mode in google translate to just display the camera, no overlays just the camera footage. I tried to delete some lines in layout camera with apk editor but the app crashes ...
user avatar
2 votes
1 answer
23 views

How to achieve layout with jetpack compose where icon is position absolute on column layout

I have comment box and need to put icon on specific position ( bottom right ). I need to make something like position absolute where my icon button need to be bottom right inside comment box. Here is ...
user avatar
0 votes
0 answers
17 views

Do not give users a choice to open a deeplink in chrome

I have a deeplink set on my Android app in Cordova: <universal-links> <host scheme="https" name="example.com"> <path url="/google-log-in" /> ...
user avatar
  • 1,779

1
2 3 4 5
27645