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

How can we apply Filters in particular Coordinates or area with CameraX + Media-pipe Android AAR

I’m trying to create a iris filter app. I created aar from the help of thier docs and i can able to get the coordinates of iris I’m using CameraX + Mediapipe AAR file. How or what are the ...
  • 135
0 votes
0 answers
11 views

How to set values for Progressbar in Android

In my application I should set 2 value for linear progressbar. Such as below image: I write below codes in XML: <com.google.android.material.progressindicator.LinearProgressIndicator ...
  • 464
0 votes
2 answers
13 views

How to initialize lateinit property in kotlin. error "kotlin.UninitializedPropertyAccessException: lateinit property student has not been initialized"

I get the following error "kotlin.UninitializedPropertyAccessException: lateinit property student has not been initialized" My code: package com.example.a7_simpleroomapp import android.os....
0 votes
0 answers
11 views

How to add dynamically values in AndroidManifest.xml fetched from an API using flutter

I want to make the values of a metadata dynamic or to fetch it from my API <meta-data android:name="com.google.android.geo.API_KEY" android:value="KEY_FROM_API"/> is it ...
  • 151
0 votes
0 answers
8 views

Push content inside SingleChildScrollView up

I have a login form which has 2 input fields (username and password) and has a button at the bottom of the screen (with expanded). I have the functionality of when the keyboard is visible, the button ...
0 votes
0 answers
16 views

CMake cannot find OpenSSL

This seems like a frequent issue but I can't figure it out... I'm trying to compile some libraries which use OpenSSL. They use CMake and are unable to find OpenSSL, even though I made a local build of ...
0 votes
0 answers
6 views

How to retrieve a document from Firestore and assign it to a variable? [ANDROID] [KOTLIN]

So I want to retrieve a particular Document from a Collection in Firestore and assign the document to a variable so that i can use it in other activity. Collection contains Users as documents. **...
0 votes
0 answers
12 views

Main Activity overlay with fragment

I have a problem where when I call my fragment by pushing a button in main activity, its overlay with the main activity. It make both of them on top of each other. I would want the fragment to cover a ...
0 votes
1 answer
14 views

Single letter or emojis are not inserting in Database with a post request API from android App

I am developing an app where user can post text,img or video.Everything working fine .But sometimes its giving me the error "Unprocessable Content", when I want to post a single letter or ...
  • 9
0 votes
1 answer
25 views

Formatting a date String/Integer number from shared preferrences

I do not know what I am doing wrong? But what I am trying to do is format my dateDue String from SharedPreferences to the format of MM/dd/yyyy from MMddyyyy. But my code below returns all dates with ...
0 votes
0 answers
22 views

How can i getting Class<T> classType = T.class;

public interface CallBack<T> { void onComplete(boolean IsSuccess, T response); } public class Response { public Boolean IsSuccess; public Object Data; public String Message; } ...
  • 51
0 votes
1 answer
15 views

Is there a function in android which enable user to login only at specified time intervals?

I am working on attendance app as a part of my college project. I want to include a function such that the user can login only at specific time period. lets say from 9:30 a.m to 9:40 a.m. After that ...
0 votes
0 answers
12 views

Android Server Socket Chat App Java.net.BindException: bind failed: EADDRINUSE

It is single activity app, user is given 2 options "server" or "client" if user selects server then screen gives 2 fields port and username and then when clicked connect it waits ...
0 votes
0 answers
16 views

While making a Weather app in Android Studio using Java. Its not fetching data from API, it always execute 'onErrorResponse(VolleyError error)' method

I am trying to fetch weather details from weatherapi using Volley for JSON parsing but my code isn't fetching weather details instead it's executing the below code : new Response.ErrorListener() { ...
0 votes
0 answers
16 views

Android Stripe Payment :open "PaymentSheetActivity" ERROR(Java)

When I started using stripe payments, I followed the code of the stripe documentation. But when running here it directly causes a crash, the same every time. paymentSheet paymentSheet....
  • 1
0 votes
0 answers
14 views

How To Solve Failed host lookup: 'firebasestorage.googleapis.com' (OS Error: No address associated with hostname, errno = 7)

I don't Know The Problem enter image description here
0 votes
0 answers
17 views

How to fix accesses denied with Android for a Flutter app?

I am getting this series of access denied for Android 33 when I run my Flutter app to a mobile in debug mode: W/isarworker(15996): type=1400 audit(0.0:3316): avc: denied { search } for name="...
  • 8,260
1 vote
0 answers
20 views

Android Kotlin Generic ViewModelFactory

I have two classes that inhereit from ViewModelProvider.Factory. The hing is, I have multiple ViewModel and I want to be able to have a generic factory instead of rewriting everything. My code look ...
  • 86
0 votes
0 answers
16 views

intent.getAction() is always null inside onNewIntent() when NFC tag scan

I tagged nfc after running the app I made. After the tag, newIntent is executed, but getAction() always return null. I have attached java code and xml code. Please. Please tell me the solution. bellow ...
  • 17
-1 votes
0 answers
18 views

How to store generated random numbers in Firebase (android studio)

I connected my app to Firebase (realtime database and Firestore) and I'm trying to store random numbers which will be used to create a game lobby (new activity) in realtime database. But when the ...
  • 1
0 votes
0 answers
15 views

Making the bottom navigation bar not move when transitioning to new activity

I have a bottom navigation bar on 3 activities and I have a few slide animations to transition between them. My problem is when the transition happens the navigation bar also moves. I'd like it to ...
0 votes
0 answers
14 views

How do Services slot in with the Repository Pattern in Android Development?

I am a relatively new android developer and am currently in the early stages of a new project. I am using Compose and have a solid idea of what my application will do. Based on my research I have ...
0 votes
0 answers
10 views

webview html video tag don't render video's frame?

how to fix webview video tag render frame when rotate? i have LinearLayout contains webView, in the webView has video tag that load src local file video mp4. play it then pause, it works fine.(render ...
0 votes
0 answers
14 views

play audio file in the background using a service

I tried playing the sound in the background service, but when I press the "play" button, the sound plays for a moment, and then the application terminates directly, this is my code : public ...
0 votes
2 answers
23 views

Flutter : How to make a row fixed while scrolling horizondally?

I am trying to create a Draft Page Screen for a blog app ,which has a Textfield and a close icon for closing it and a Publish Text for publishing it .I have given the Publish a Close icon in a row so ...
0 votes
1 answer
21 views

Login button and inputs fields aren't work in android studio

First of all, I wanna say sorry about my English. I am trying to build my first android application using android studio. I created the main page containing two taps one for login activity and the ...
  • 134
0 votes
0 answers
11 views

Protect a Ndef tag with password

(Disclaimer: I new in NFC and I'm trying to create test apps to learn) As far as I know, Ndef can only be protected from being written. I investigated it and, apparently, this is only posible with ...
  • 3
0 votes
0 answers
14 views

How to download and install the watch face on the clock programmatically?

I found a great example that works on the phone, but this code does not work on the clock, maybe there is a problem with the paths and on the clock they are different than on the phone? When testing ...
0 votes
0 answers
18 views

Is it possible to make a Composable appear with animation?

I want to make some parts of my UI that are added in the setContent part appear with an animation. For example, if my activity's onCreate looks like: override fun onCreate(savedInstanceState: Bundle?) ...
0 votes
0 answers
28 views

app not run on higher android version but will work on old version

my app run on android 8_7 but when i run app on android 11 app be crushed i want my app run on android 4.4 to android 12.i want a help android:minSdkVersion="21" android:targetSdkVersion=&...
  • 1
0 votes
0 answers
23 views

Firebase Realtime Database data change

I've never faced this type of weird problem. When I wanted to update the data of two, it worked fine but when I wanted to update for total, it changes to my desired value first and then automatically ...
0 votes
0 answers
21 views

Set AlarmManager notifications to be triggered with variable intervals

I am developing an Android app using Xamarin. I am trying to figure out how to have it send notifications using AlarmManager with a variable interval. I have figured out how to trigger a ...
  • 395
0 votes
0 answers
22 views

How to restrict the scrolling of RecyclerView while the BottomSheet is expanding?

I am using Recyclerview with CoordinatorLayout but when I expand the BottomSheet upward more often the Recyclerview starts scrolling at half-expanded BottomSheet. <?xml version="1.0" ...
0 votes
0 answers
13 views

realm database query to find all objects with a string property contained in a list of strings

using realm for kotlin in android 'io.realm.kotlin:library-base:1.4.0'. I have the following class: class MyClazz : RealmObject { @PrimaryKey var title: String = "" var ids: ...
0 votes
0 answers
16 views

Uploading multiple files with Retrofit 2 to Spring Webflux backend

I get the following error when I try to upload multiple files with retrofit 2: org.springframework.core.codec.DecodingException: Could not find first boundary When I upload multiple files with ...
  • 3,000
0 votes
0 answers
15 views

android.content.res.Resources$NotFoundException: String resource ID #0x7f Jetpack Compose

I want to implement search functionality among lists of banks in my app. So somehow I need to use stringResId() but you can't call it without composable func(). Also by using Resources.getSystem()....
0 votes
0 answers
17 views

ActivityNotFoundException when trying to display Google Play Achievements

I am developing an app with Xamarin Android and successfully managed to sign in to Google Play. Now I am trying to display the list of achievements from my Main Activity. I am following the official ...
  • 2,290
0 votes
1 answer
25 views

I get the error: websocket connection closed

I try to make an app, that i can ask questions and the ai will automaticly awnsers those questions but i do not see any responds from the ai. So looked into it. I made some code to see what was wrong ...
0 votes
2 answers
32 views

Problems with image picker

I am trying to use the image picker dependency, but I am running into a. a bit of a problem. Here is the function I created for the image picker: pickImage(ImageSource source)async{ final ...
  • 15
0 votes
0 answers
18 views

Function not returning the desired value in the Flutter, firebase application

I have a code below where I am trying to display a value returned by the totalAmount() function. The totalAmount() function is mentioned below. The code is working and I can print the value of amt ...
0 votes
1 answer
22 views

Window leaked error causing crash on boot

My app should display a dialog box the first time its open, asking if the user wants a tutorial. I keep getting the following error tho. android.view.WindowLeaked: Activity com.example.mypackage has ...
  • 15
1 vote
1 answer
26 views

How to implement onClick event individual child on gridview

Firstly, I have seen a bunch of resources regarding this, but none of them helpful because they are using viewholder. But I'm using only adapter class. That's for, I want to know how to implement ...
0 votes
0 answers
14 views

Flutter problem: Lost connection to device

This error keeps coming up don't know why or how to solve it. Other times it just says: Error connecting to service protocol or fatal exception: java.lang.NoSuchMethodError: No static method ...
0 votes
0 answers
18 views

How can i get my args.field from my activity to my viewmodel

I want to use my args.breweryName from my reviewActivity in my reviewViewModel but i don't know what's the best way to do it. I have tried using savestatehandle but i'm not experienced with that. I'm ...
0 votes
0 answers
11 views

React native RN Camera crachs onTextRecognized

I am trying to get(read) text in image. Fot this I am using "react-native-camera": "^4.2.1", Whenever I open camera it works fine. But when I add this line into code App craches ...
0 votes
1 answer
15 views

Best way to change the default bundle id and Rename the React Native app (Android and iOS)

How to change the default Bundle ID and the App name of my React-Native app? Previously I use the "react-native-rename" package but Now it's deprecated, for reference please check the below ...
  • 2,497
-1 votes
0 answers
28 views

When I use Entry with .NET MAUI, the underscore appears. How do I remove it?

<Entry Placeholder="Username" /> Underscore appears when using entry. What I want is an entry without underlines. enter image description here The photo I took is the structure I don't ...
0 votes
0 answers
22 views

Is there a way to customize google play services Leaderboard on Android?

I'm wondering if there is a way to customize the default leaderboard UI of google play. Can we for example get a list of users and all attributs (Score, id, name, icon etc...) and make our own ui with ...
-3 votes
0 answers
26 views

Hiding xml layout over C++ [closed]

In the source code of the sump there is ImGui, as I understand it, this is a graphics engine. I need java itself to be under the keyboard made in C ++ imgui, and not above the keyboard. In general, ...
0 votes
1 answer
35 views

Create list with custom text jetpack compose

I'm trying to create a list with customized text views, like the image bellow. I tried to do that with a lazy column, but it does not work properly. The problem is that row does not grow with the ...

1
2 3 4 5
27894