Most voted "android" questions
Android is an operating system for mobile devices developed by Google and the Open Handset Alliance. Use this tag to reference questions related to programming for Android and be relevant only to this operating system. Use the [android-subject] tag instead of [subject] alone.
Learn more…8,935 questions
Sort by count of
-
1
votes0
answers39
viewsShow latest chat messages
Well, here’s the problem. I’ve been developing a What’s App-style app for a long time. As simple as it sounds, I can’t get the latest chat messages (sent by the user X received from the user Y) to…
-
1
votes0
answers27
viewsHow to display an Imageview only while the user is "holding" the screen?
I’m making an application and in one of the fragments I have a Recyclerview being used to list some view holders with some textviews and an image view. I implemented a simple Adapter to display a…
-
1
votes1
answer64
viewsHow to use Sharedpreferences from Android in this case?
I am trying to save a display state, where when you press the robot button, a message "True" appears and changes the icon to a person and when I press the person’s icon back to the robot icon and…
-
1
votes1
answer805
viewsError running Ionic Cordova run android --device command
When I run Ionic Cordova run android --device in my project it appears the following message. [ERROR] An error occurred while running subprocess native-run. My Ionic.info: Ionic: Ionic CLI : 5.0.1…
-
1
votes1
answer50
viewsSearching Listview using Edittext and Cursor
Good morning guys, I would need to ask a question. I have an application where I have a ListView that pulls the information from the database, and would like to make a search field in which I am…
-
1
votes1
answer212
viewsHow to Make Dynamic Tablayout in Android Studio
I created a tablayout in my application, I need that by clicking on one of the menu options, it automatically takes the 0 position. Where the house would be would be an icon to return and the others…
-
1
votes1
answer46
viewsWhy is the marker placed at the wrong coordinates?
I want to do a program that puts a marker where the phone is. In the case, I put the latitude and longitude of a city in Greenland, but the value of the final location is (37.42342342342342,…
-
1
votes0
answers408
viewsGrab the firebase download link and save a database string to be displayed in cardview via Picasso or similar
Good evening, you guys. I’m doing a job that I need to get the download URL of the image I sent to Torage, save this URL in the database to be able to display this image in cardview using the…
android android-studio firebase android-recyclerview firebase-databaseasked 5 years, 5 months ago Lucas Gabriel 11 -
1
votes1
answer58
viewsHow to create a class to connect to in Firebase?
I’m trying to create a class where I’ll connect in the Firestore of Firebase, and then I’ll take this class and instantiate it where necessary, I made this part of the code but I don’t know what…
-
1
votes0
answers229
viewsImages for different sizes of android screens
I’m developing an app that uses the camera on android. About the Framelayout where I display the camera I put a Linearlayout with a background according to the image below: The problem is this: I…
-
1
votes1
answer39
viewsMethod returns different data as the architecture of android
I created a library for Android and it has a method that returns the milliseconds of the epoch date. I tested on 2 different architectures to validate if the returns were correct. armeabi-v7a:…
-
1
votes0
answers33
viewsReal-time upgrade firebase
I have a method that I want to check at all times in the database if a field of the child node is modified (in this case, the "status" field), when it is changed, I want the text on the android…
-
1
votes1
answer144
viewsRetrofit Answer returning null with code 406 Not Acceptable
Talk personal, I’m using Retrofit2 with Kotlin and I’m trying to perform a POST request where a Json will be returned. The request is made and the server part works (register the user), however when…
-
1
votes0
answers22
viewsError using startActivity on Fragment
I want the Button (tutorialeme) that is inside the "emergency" Ragment to have a CLICK action, and in this action I want him to call the Activity "tabbed_warning", the error is in Intent,…
android android-activity android-fragment android-xmlasked 5 years, 4 months ago Matheus Vidigal 33 -
1
votes1
answer32
viewsMutablelist<Int> cannot be Invoked as a Function. What do I do?
package com.example.app.views import android.app.DatePickerDialog import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.ArrayAdapter…
-
1
votes1
answer171
viewsHow to change an image dynamically when a button is pressed and save the state of that image
I have a problem where I need to alter an image of a imageView when the Button is pressed and when it is pressed again change to the image that was previously. I even managed to do this through the…
-
1
votes0
answers78
viewsHow to wait for the request to finish to get the data?
I need to take the data that comes inside a Sponse, but when I get a get on the Sponse object it gives error saying it is null. I think it has something to do with my get being done before Sponse…
-
1
votes1
answer160
viewsAutomatic sum of two Edittext to put result in a Textview
I want to take two values out of two EditText and put the result of these two values into one TextView. I made that code but this giving error editPecaBoas = findViewById(R.id.editPecaBoas);…
-
1
votes1
answer137
viewsSave a date value in the firestore
I’m trying to save a data value in the firestore, but I’m having a conversion problem when I take the value of a EditText and send it to become a date type value. The attempt I made was this one.…
-
1
votes2
answers798
viewsGet Imei on Android using Java
I’m needing to get a unique identifier for my app, I’m trying to get the device IMEI and I’m not getting, below follows the code I tried to get the IMEI and it always stops at the first if that has…
-
1
votes2
answers152
viewsHow to reset or reset the app variables?
I’m starting Android development (using JAVA language). I am developing an average calculation app that displays the average and the student’s situation (Approved, In Recovery and Failed). My…
-
1
votes0
answers92
viewsReading an editText - Android Studio
I have a app where a json is read and returned in a list all items in this json. I’m using the ADAPTER to do this, I put a EditText on the screen, this editText is replicated to every json read…
-
1
votes2
answers2509
viewsHow to add 64-bit and 32-bit native codes to an Android app?
I’m having trouble publishing an app version. The Play store is notifying me about the new 32-bit and 64-bit architecture: "This version does not comply with Google Play 64-bit requirement The…
-
1
votes0
answers35
viewsError loading image in application by Json request
I am developing an application that captures pictures sends to the server, the server saved in the database, and when the user wants, he can download these photos again on his mobile phone. Even the…
-
1
votes1
answer243
viewsRelate firebase Authetication to Realtime database
I am creating an application, using firebase, in which the user performs a registration in firebase. I am using firebase authetication to create user by email/password and the Realtime database to…
-
1
votes1
answer194
viewsMy Javascript does not work on Webview, how can I debug?
I have a page and I’m trying to turn it into Webview App. I generated an apk when I got to the javascript section, but the page inside the app is static, locked. When entering the site through the…
-
1
votes2
answers331
viewsWhite screen before splash screen startup
I created a Splash Screen that works normally, but when opening the application instead of directly entering Splash, it runs a white screen. Splash.xml <?xml version="1.0" encoding="utf-8"?>…
-
1
votes1
answer135
viewsError returning objects saved in database between activites - Null object
I’m developing a simple application to fill out a form, display the registrants and edit them. I’m using the one-to-many relationship where a patient can hold multiple photos, photos that are being…
-
1
votes0
answers74
viewsandroidservice notification does not work
I created a multidevice application and added a local androidservice. I need to issue notifications through the service, follow Unit: unit AndroidServiceDMUnt; interface uses System.SysUtils,…
-
1
votes2
answers248
viewsHow to return values of a daughter Activity in Kotlin
Hello, I’m starting to work with Kotlin and I have the following situation: I have the Activity Foo with a button that navigates to Activity Bar. In Bar, I process some information and have a button…
-
1
votes2
answers66
viewsWhy does my "Textappearence" and my "Textcolor" not work on some Android devices?
I am developing an app and obviously it contains many textViews. I noticed that when installing my app on some devices, more specifically on MOTO G2, I noticed that my textViews get weird and does…
-
1
votes1
answer764
viewsHow to create an Android App Bundle on the terminal?
1) Creating and signing android Apks by the terminal has always been relatively easy. But now with the new form "Bundle" I’m catching quite a lot. today I use the following: Cordova build android…
-
1
votes1
answer238
viewsToast exhibition
I’m creating an app Android where I have some Switch which each one is linked to an image. I use a API to bring them and make your shipment with Image Loader. When I have an error loading the images…
-
1
votes1
answer136
viewsSensor values accelerometer to decimal degrees
I need to take the slope and declination value of the cell phone in landscape mode, but the values I need are in decimal degrees, from -90 to 90 degrees. I tried to use the accelerometer, but the…
-
1
votes1
answer92
viewsMagnetometer sensor works only on a few devices
I created an app just to test the tilt of the device’s X, Y and Z axes. In tests, some devices the sensors read the values, while others do not. I noticed that the TYPE_ACCELEROMETER sensor works on…
-
1
votes0
answers38
viewsError while removing Listview item - Android
Well, I am working on a system that puts some items in a list, in sequence, using a Dialogfragment with the list of added items I would give the option to remove these items, the problem is there. I…
-
1
votes1
answer33
viewssetOnClickListener loses the default animation
When setting the setOnClickListener to set the action of an item in my listview, the default animation of the click in the list is lost. I’d like to keep up the excitement and run my routine.…
-
1
votes1
answer70
viewsWrite Json record in variable
Hello, I am consuming a Json and I receive it in my fragment, taken only 2 records and saved in a variable created at the beginning of the class, the 2 of the String type, thus: public void…
-
1
votes1
answer158
viewsBottom Navigation with Navigation Drawer Activity
Hello, I’m having trouble setting up a Bottom Navigation in a Navigation Drawer layout. If you can give any idea, follow the code. Mainactivity.java public class MainActivity extends…
-
1
votes1
answer61
viewsHow to eliminate the pause between animations of an Animationset?
I have the following routine: private void move(float graus1, float graus2, float xx1, float xx2, float yy1, float yy2) { animSet = new AnimationSet(false); rotate = new…
-
1
votes1
answer146
viewsPlacing findViewById on the fragment
I am trying to put a webView inside a fragment that refers to webView that I put inside the xml for the findViewByIdmethod Fragment only works if I extend an Activity class. Is there any way I can…
android android-studio android-fragment webview android-webviewasked 5 years, 1 month ago renan silva das neves 159 -
1
votes1
answer49
viewsSet voice value in an editText
When I press the button I speak the name for example might it put the autofocus in editText, but when it is with Focus in edittext should press the button and say the value to be written in that…
-
1
votes1
answer117
viewsHow to get user order data in Firebase database?
I have an Android app in Kotlin that orders pizza delivery where the company receives the data of the user’s order and I want the user to also receive the data of the order he made, some time ago I…
-
1
votes0
answers73
viewsWorkaround: error Calling Appregistry.runApplication in React-Native
Guys, I use the Linux Mint 19.2. While trying to run an React Native application, via terminal, using the React-Native run-android command, I came across the error Calling…
-
1
votes1
answer174
viewsReturn of async functions
I’m using the AsyncStorage to save the value of some tokens with the following code: Asyncstorage.js: import AsyncStorage from '@react-native-community/async-storage'; setValue = async (key, value)…
-
1
votes1
answer80
viewsFragment closes by clicking on Textview Kotlin
Save list! Next, I have an Activity where I call a Fragment using // ... val manager = supportFragmentManager val transaction = manager.beginTransaction() _Fragment = AcvtFragmentView() val args =…
-
1
votes0
answers38
viewsAndroid only fills product value in version 4.1.1
First of all Good afternoon, everyone. Secondly, I confess that I do not know how to explain, but I will try to talk here what happens. My app searches the data in Sqlite the same way, and returns…
-
1
votes1
answer84
viewsReceive String via Bluetooth and print in a text box
I have a Java code that I adapted to receive a string via bluetooth and when running it in Android Studio does not present errors. However, in the app by clicking the "Start" button to go to…
-
1
votes1
answer373
viewsHow to close app when I press the native back button of android?
I wanted to know how to terminate the application when I press the native back button of android am using this method: @Override public void onBackPressed() { AlertDialog.Builder dialog = new…
androidasked 4 years, 12 months ago Winicius Melo 11 -
1
votes0
answers25
viewsHow to pass an object (instance of a class) from Mainactivity to another activity (Mainactivity2) on Androidstudio
Superherofeatures is a class with all the attributes of a superhero, such as name, birthday, power and many other things. Now the heroSelected instance is working, but I can’t transmit it to the…