Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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

Firebase ML Kit and cameraview

I am trying to write a real-time QR code scanner using ML kit and camera view. However, neither success nor failure are ever triggering. I have tried changing the image format (even though the ...
0
votes
0answers
3 views

Is there a most efficient way of structuring a Xamarin.Forms project?

I am building an app using Xamarin.Forms to deploy to both Android and iOS devices, and it will have two released variants per platform. I created the solution and added two projects, 'Test.Free' and '...
0
votes
0answers
5 views

Android - How to Deep Link into App with some URL and then open the same URL in-app native browser without using WebView?

I want to click on a URL I received in my email and have that open my app, then open a browser within my app (ChromeCustomTabs would be nice). I do NOT have the ability to customize the URL sent out ...
0
votes
0answers
6 views

Android how to request action or approval from another user - concept

I'm trying to add a feature on my android/firebase(cloud firestore) app that requires another user's approval/denial. For example, when a user on Air&BnB wants to book a place and the owner has to ...
0
votes
0answers
8 views

Fix button position on different screens

How can I make the 0-9 buttons not moved on different screens? I want it in a fix position on different screens.
0
votes
0answers
6 views

How to convert content like “/document/image:7196” to a real path

I want to convert the string like /document/image:7196 to the real path like document/image/picture1.png. how to make it this bellow what i've done intent = new Intent(Intent.ACTION_GET_CONTENT); ...
0
votes
0answers
6 views

Seamless GPS location data transmit between Mobile apps

I know we can store the first mobile GPS data in Database and retrieve from the second device. But doing this every single move seems not efficient. Is there any better way to transfer this data ...
0
votes
0answers
8 views

How to create a collapsible/expandable view/activity android?

I uploaded video on YouTube so that you can see exactly what I intend to achieve: https://youtu.be/Z8ga296UqtM I am pretty sure that this is a View. But I have no idea how can I implement ...
0
votes
0answers
7 views

Can Android Native App Install be considered as iOS Smart App Banners?

I see conflicting information regarding Android's 'Native App Install' feature. I still have the following questions. Can someone help to clarify ? Can we say it is Android's equivalent of iOS Smart ...
0
votes
0answers
10 views

Android studio ERROR: Cause: unable to find valid certification path to requested target

Always prompt this error,ERROR: Cause: unable to find valid certification path to requested target. My Android Studio 3.5, I reported this error after upgrading to 3.5.1. I tried various methods on ...
0
votes
1answer
10 views

delete selected item in listview and sqllite database and modify the selected item

my app gets name and address and type(sitdown,take away,phone order) of a restaurant and adds it to a sqlite and then to a listview im trying to have a delete option when one of the items of the ...
0
votes
1answer
13 views

Accessing a hardcoded fragment within the activity layout through findById

I was able to access the hardcoded pre-instantiated fragment but the cast fails. Trying to call setArguments or call specific methods on the class. to be able to call Fragment.setArguments on ...
0
votes
0answers
5 views

GeoAPIContext Crashes

I am new to android programming. I am creating a project that needs to calculate the route between two geo points. I have both points and my google map correctly but when I call GeoApiContext my ...
0
votes
0answers
7 views

Read and write ROOM database SYNCHRONICALLY everywhere

I have been analyzing the way of reading and writing a ROOM database SYNCHRONICALLY without the need of a Content Provider or BroadcastReceiver. Obviously the database access must be asynchronous. I ...
0
votes
0answers
9 views

how to save a list of objects in Realm Android?

I want to save an object that has a list, the problem is that when I add the list it shows me an error this is the object: public class SaveRealm extends RealmObject { private String id; ...
0
votes
0answers
10 views

Bare React Native Up and Running (Expo), Expo-web-browser:compileDebugJavaWithJavac

I was trying to follow Expo documentation to bare react native (link). I am running on android emulator in Linux Manjaro. After installing expo init --template bare-minimum, react-native run-...
0
votes
0answers
6 views

Tensorflow lite vs Deeplearning4j on Android Machine

Which one is better for Android machine learning between TensorFlow Lite and Deeplearning4j?
0
votes
0answers
10 views

Dismissed DialogFragment visible for some ms between activity changes

I have an app with a lot of AppCompat activities, in some of them I'm displaying a DialogFragment using this code: new PauseDialog().show(getSupportFragmentManager(), "dialog"); The dialog only is a ...
0
votes
0answers
6 views

Tell me about VLAN creation with the same ID [Android]

Why can't I create two links with the same VLAN ID? ip link add link eth0 name eth0.v1 type vlan id 11 ip link add link eth0 name eth0.v2 type vlan id 11 RTNETLINK answers: File exists
0
votes
2answers
30 views

Adding a fragment to a frame layout

Is it possible to add a fragment to a FrameLayout, or how do you add one programmatically. My following attempt is causing a crash. Note: I did use <Fragment> in place before but since I had ...
0
votes
0answers
12 views

Monogame for Android (ExceptionMicrosoft.Xna.Framework.Content.ContentLoadException: The content file was not found.)

I can´t load Images in Monogame for android Using Xamarin I´ve Changed the files to "Copy if newer" & "Android Asset" and also I added them to both assets & content, I also verified that when ...
0
votes
0answers
8 views

Android: how to clear Spannable color in Recyclerview with ViewModel?

The Adapter code below for the RecyclerView successfully highlights user entered text (using an EditText line linked to a SearchView) to the color Green. public void onBindViewHolder(final ...
0
votes
1answer
9 views

Transfer Data between Activities with Android Parcelable

I'm trying to trasnfer data between activities with parcelable I'm having a bit of an issue. I'm getting the error Expression expected on the putExtraData portion of the code. The debugger says error: ...
0
votes
0answers
10 views

How to load image from API and save it into sqlite database?

I'm already get images into my recycle view. All the other details were saved into sqlite database. But there is a problem with saving image. this is my database table and method for save details ...
0
votes
1answer
17 views

How to make number result without decimal

I have problem with code. I will copy simplified code, with two editext and one textview and button. With this code if value in editext1 is "100" and other editext2 is"60" I get result answer "40.0" ...
-1
votes
0answers
8 views

Any alternative to FileStack Android SDK? [on hold]

I am looking for an alternative to Android FileStack SDK that can be found here: https://github.com/filestack/filestack-android/ I did my research and I know there are a lot of file picker libraries ...
0
votes
0answers
6 views

How do I implement tracking a text to speech so it shows the line it's reading from

I'm building a book app for kids and I just added the text to speech feature. I want to write a code that shows ( more like underline or change the color) the word the TTS is saying. Like those ...
0
votes
0answers
7 views

How to ask for pin before locking the screen when the device is in Screen Pinning

I want to put my app into Kiosk mode, and it seems Screen Pinning is a good solution, but its security mechanism is so weird. It will lock the screen and ask for a pin to unlock when a user holds the ...
0
votes
0answers
10 views

Send multiple requests using retrofit in Android

I have stored in my internal Sqlite database data from two tables that is Administrator and Vendors. I want to synchronize this data on my server in the cloud. I have the following advances: ...
0
votes
0answers
6 views

How to test Android App on Chromebook in kiosk mode

I'm testing Android App on Chromebook Acer CB3-431 I can run the app in a regular session without any problem. But the customers are complaining about the App running in Kiosk mode. They are using ...
0
votes
1answer
23 views

App stops working before launches, no exceptions (adb device)

i wrote a code for a simple "calculator" on android with Android Studio | Kotlin. it has several methods, like plus, minus, div, mult. when i try to build the app (on a VM or even in adb device) there ...
0
votes
0answers
17 views

How to render OpenGL in Flutter for Android?

if (call.method.equals("createVideoRenderer")) { TextureRegistry.SurfaceTextureEntry entry = textures.createSurfaceTexture(); SurfaceTexture surfaceTexture = entry....
0
votes
1answer
19 views

How to fix 'Attempt to invoke virtual method' error in recycleview project? [duplicate]

i programming a code that its goal is set the arraylist items to a recycleview. but when i run the project, the app will crashing. d. i check dependecies. they be ok. and i check the codes and i ...
0
votes
0answers
5 views

Floating VideoView Popup (Setting correct Height)

so I am trying to make a videoview popup. I have the problem that the height of the popup gets only wrapped to the video after a few seconds when the video is actually loaded. This results in a huge ...
0
votes
1answer
15 views

Keyboard opens when start the fragment and scroll

I have a scrollview in my fragment and when the fragment opens the keyboard appears automatically and focuses on the first edittext of the layout, and the screen scroll and I cannot see all the fields ...
0
votes
2answers
20 views

Invalid value entry in Sharedpreferences

I get user values ​​from webview via @JavascriptInterface, there is no problem with this. Next I record the obtained values ​​in preferences, for their further use. However, as Logs shows, values ​​...
0
votes
0answers
10 views

How to lazy load tons of comments and images in realtime

I have noticed this many social applications like (YouTube, tiktok) loads tons of comments very quickly and when we add a new comment it will update instantly. How does this works realtime in android ...
-2
votes
0answers
21 views

What's happened in Android-Land since 2015? [on hold]

Haven't spent any time with Android development for a good four years. What happened in the meantime? Dagger 5? RxJava 3? Hexagonally designed Client-Side Microservices with whip cream and a cherry on ...
0
votes
0answers
8 views

How to forward Request Code to other Fragments/Activies

Suppose I have 3 Fragments: A B C Fragment A calls Fragment B by using startActivityForResult and returns result to Fragment A which is perfect. Now my problem is with Fragment C when it calls ...
0
votes
0answers
23 views

How to make a SharedPreference string null?

When I perform: sharedPref.putString("id", null) it comes up in my sharedPrefs file like this: <?xml version='1.0' encoding='utf-8' standalone='yes' ?> <map> <boolean name="...
0
votes
0answers
12 views

How to support the classical libs on a newly developed JavaScript virtual machine

Currently, I and my team are working on the implementation of the JavaScript virtual machine for Android devices. We want to allow our users to administrate the device via passing and executing the JS ...
0
votes
0answers
14 views

Activity layout doesn't leave the screen when trying to switch activities with animation

I'm having trouble implementing an animation between two activities in my application. I'm following the official guide: https://developer.android.com/training/transitions/start-activity These are ...
0
votes
0answers
5 views

admob ads failed to load 3

i try admob banner interstitial and rewards but it always ad failed to load 3. i think it's because of mediation so i put some photos of the mediation for banner and rewards if someone can help me i ...
0
votes
1answer
12 views

Google Play Developer API: get Subscription: what is subscriptionId?

In documentation for the Get API https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get It states: subscriptionId string The purchased subscription ID (for example, ...
-2
votes
0answers
30 views

Why am I getting "Attempt to invoke virtual method setOnClickListener on a null object reference [duplicate]

I'm new to programming and I'm having a hard time to solve this error. This is my class: public class AdActivity extends AppCompatActivity This is the code that is generating the error: final ...
0
votes
0answers
14 views

Use DiffUtil when data doesn't start at index 0

My items in my RecyclerView are structured as follows: Index | Item 0. Header Item 1. 0. Data 2. 1. Data 3. 2. Data 4. 3. Data [....] My database automatically dispatches ...
-1
votes
1answer
26 views

How do I add a value from database to the button

I wanted to make a pos, I want to insert a data to the button coming from Sqlite Database. So that when I clicked the button the data name and price showed. public class DatabaseHelper extends ...
-1
votes
1answer
21 views

Add range of numbers

what i am trying to do is making an adding program in wich add all the previous numbers to num, say num is four, so 1+2+3+4=10 an then return num. Any help on how the function SumNum(num) would be ...
0
votes
1answer
8 views

How to set letter spacing in hint text in android

I have an edit text field, i am able to set letter spacing in edittext normal text, but that letter spacing is not effecting hint text. <android.support.design.widget.TextInputLayout ...
0
votes
0answers
12 views

Problems using “.backup” command on ionic. Returning syntax error

I'm trying to create a local backup of a database from my application. In order to accomplish this, I created the following function in javascript: $rootScope.CriarBackupDoBanco = function () { ...