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
viewsThread inside an Adapter (music player list)
Have Recyclerview that has a list of audios, each line has an audio. When I run, I need seekbar to start the progress that refers to the specific line. For that I understand that I need a thread to…
-
1
votes0
answers56
viewsPick up current location after connecting GPS - android
I am new to Android and am in need of any help. I’m making an app that when opening, I want to be displayed the map with the current location of the user. The problem is that when the GPS is turned…
-
1
votes0
answers495
viewsHow to find the server address in an Android application
Good night! I have an app here, and I need to find the data of the server to which the entries are being sent. It’s mysql (url/phpmyadmin). The problem is I can’t find it anywhere. I got closer…
androidasked 5 years, 8 months ago Daniela Martins 21 -
1
votes1
answer1191
viewsGet the phone chip number
I’d like to return the cell phone chip number. TelephonyManager telephonyManager = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE); String number =…
-
1
votes1
answer75
viewsTransform View into Bitmap without using buildDrawingCache()
I have a function that takes a view and creates a bitmap. follow the code: public static Bitmap getBitmapFromView(Context context, View view) { DisplayMetrics displayMetrics = new DisplayMetrics();…
-
1
votes3
answers45
viewsCiclo Activity android
My app has 4 Activitys. When I get to the Activity number 4 user has option to return to Activity number 2 that this in onStop(). The problem is that when I go back to Activity number 2 she runs…
android android-studio android-layout android-activity android-fragmentasked 5 years, 8 months ago Paulo Castelo 71 -
1
votes1
answer57
viewsSend gps location to a server
I have a service to get the user’s location, but I need to pass the latitude and longitude via request to a server, however I tried to make this request within the method onLocationChanged() using…
-
1
votes1
answer42
viewsUsing variables within the onPostExecute method
I am using Asynctask in my project and ended up generating a doubt in the passage of variables, in the method doInBackground i return a cursor variable that is passed by Return. I wanted to know…
androidasked 5 years, 8 months ago Stênio Barroso de Moraes 312 -
1
votes1
answer39
viewsTransmission error socket c#
I have the following code: public void StartListening() { try { btEngine = new Engine(true); IPAddress ip = IPAddress.Parse(txtServer.Text); IPEndPoint localEndPoint = new IPEndPoint(ip, 5000);…
-
1
votes1
answer948
viewsReact Native: Remove goBack() function from Android’s physical button?
I need to remove the Back Screen Action from the physical button of Android at any given time. Basically, I have a method that shows my Searchbar, while the Searchbar is visible, I need the action…
-
1
votes2
answers160
viewsHow to change the size of an Edittext contained in a Alertdialog?
I have a problem, inside a Alertdialog there is an Edittext, but it always gets very big and very close to the margins, I want to make it smaller and centered in the middle of Alertdialog, I tried…
-
1
votes1
answer32
viewsHow to randomly rearrange a list of Strings and select one element at a time without repeating the value contained in the list?
I am developing an application in Android studio in Java language and need to know how to solve my problem. I have a list of String: List<String> valores = new ArrayList<>(); Then I…
-
1
votes1
answer49
viewsDatabase and Listview do not work
I’m trying to create an app that records data and displays it in a Listview, and then gradually sophisticate the app, but when it comes to saving the data in the database, it doesn’t save. In Debug…
-
1
votes0
answers30
viewsCast problem in onAttach method
I am making an application that creates graphs, I am creating the implementing of the nodes via Dialog where the usurious selects us and creates a arrest but this giving Cast error. public class…
-
1
votes1
answer272
viewsOpen a calendar in a Alertdialog and save the chosen date
I’m creating an app and I need that in one component EditText, when I click on it, a calendar appears (I thought to put in a AlertDialog because of the add and cancel buttons, but if anyone has a…
-
1
votes0
answers35
viewsAutofocus on an input causing the keyboard and first mauíscula to appear
I’m using Cordova to develop my app using HTML, CSS and Javascript. When I use the command "Prompt" for the operator to insert an item in my app, Android brings the text box correctly, but does not…
-
1
votes1
answer62
viewsSet time variable on Back button
You guys, good night. I need a little help, I have the following code. Because I need to stop Thread when the back button is clicked. private void timeGame() { t = new Timer();…
-
1
votes0
answers60
viewsHow do I save this image in the gallery and access it again?
I have this Xamarin Android App (not Forms) that just opens the camera and allows me to take a photo and go with it or resume. After I say I want to keep it, it appears in the app in an Imageview…
-
1
votes1
answer114
viewsInsert method does not save data
I have an application where the goal (at the moment) is to take the data typed in a form and save in the Database. And the Insert method of my Datasource always returns me false I do not understand…
-
1
votes0
answers203
viewscloud firestore - Query with Data type fields
In the android application that I’m trying to mount, I have a filter screen by registration date and I need to perform the query in the firestore cloud using this field, in the database it is the…
-
1
votes1
answer878
viewsInternal Storage - open failed: ENOENT (No such file or directory)
I have a problem that I haven’t been able to solve for a few days. I have a list of files that are saved in Internal Storage and what you need to do is zip those files when users leave the activity.…
-
1
votes1
answer17
viewsRun call in retrofit 2
I am having trouble creating the call with retrofit 2 to the following url: https://api.themoviedb.org/3/movie/2310?api_key=MINHA_API_KEY&language=pt-BR On android, the call I’m making is…
-
1
votes1
answer125
viewsNumberformatexception: Invalid int: "1" I CAN’T CONVERT STRING TO INTEGER
I have a String = "1" and I can’t convert it to int, I think it might have something to do with the way it was built, the class that reads the TXT file from the web and saves it in the database is…
-
1
votes0
answers239
viewsunit test with mocked Json
I am trying to create a test from a json file that I have with the mocks of the Api response. But when I run the unit test the variable stream the return is null, ie it can’t read the file resulting…
-
1
votes1
answer489
viewsBiometrics on Android
Hello, everyone from Stackoverflow. I’m a beginner in Android development, and I just developed an application, now I want to improve it, putting as input into the same biometric system, so that has…
-
1
votes1
answer47
viewsError when taking photo with android camera - Glideexception - Onloadfailed
I’m trying to implement the function of taking the photo with the camera in my app, but without I’m falling into the treatment of failure in Glide onLoadFailed. I have tested other logics and can…
-
1
votes1
answer311
viewsError implementing Room Persistence Library + Kotlin
When trying to run an application developed in Kotlin with ROOM Persistence Library I have the following return: java.lang.Runtimeexception: cannot find implementation for…
-
1
votes0
answers49
viewsEqual text field from facebook
Does anyone know how to let the field insert text equal to facebook ? I need my text to look the same. When I copy and paste the song’s cipher on facebook, it looks the same as the site. But if I…
-
1
votes1
answer387
viewsHow do I filter a search using Searchview?
I’m building an app where in a particular app a list of registered users will appear in a ListView. This Activity also has a SearchView which serves to filter data from ListView according to the…
-
1
votes1
answer247
viewsCould not find method connectionBanco(View) in a Parent or Ancestor Context for android:onClick attribute defined on view class
package com.projeto.comandapack; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText;…
-
1
votes1
answer33
viewsSave values and make a comparison
I’m having a hard time making a comparison logic or something better that you can point out to me. I’m developing an app that contains several buttons in mega sena game format. I need to make sure…
-
1
votes0
answers114
viewsSelect Google Maps Location, similar Uber/99
Talk people, all good? I’m making an app where I need to select where the user is, very similar to Uber and 99. However I do not want to rely only on Geolocation, I wanted to set directly on the…
-
1
votes1
answer427
viewsHow to send data between Activitys without opening another window? Android Studio
Good afternoon gentlemen, I have a question in my code, I need to pass the data from one Activity to another but when I put the value it opens the same screen twice, it is working but when a value…
-
1
votes2
answers236
viewsFind out if Activity has been closed
Good night! I’m a beginner on android and I’m developing a chat app where two users connect through a queue based on their chosen preferences. When one of the users disconnects from the chat (end…
-
1
votes1
answer320
viewsDestroy fragment on return
I have a NavigationDrawer with many menus on Navigation all open as fragment, when I open a fragment and return it returns to the home screen and if it comes back again close, blz ta correct. But if…
-
1
votes0
answers14
viewsNavigation bar is transparent when the keyboard is opened in Immersive mode
I am developing an application in Immersive mode, my problem is when the user will insert some text, when the keyboard opens the navigation bar and notificaton bar are transparent. This is the code…
-
1
votes1
answer525
viewsCreate a fullscreem and untitled splash
Hi, I’m initiating on Android Studio, and I’m having a question. How to make my splash stay with the image in full screen and without the title bar? My image PNG has 750 x 1334. Follows my code:…
-
1
votes1
answer37
viewsEmail body in utf-8
I have a class that sends email, only it’s not sending with the accented characters. Send class public boolean send() throws Exception { Properties props = _setProperties(); if (!_user.equals("")…
-
1
votes1
answer35
viewsCorrect use of the onChildRemoved method in Childeventlistener
Good evening! I’m making a chat app and I list the conversations in a recyclerview. I chose to use the addChildEventListener method, because (I think) it will consume less resources since the data…
-
1
votes2
answers19
viewsbutton opening a new problem Activity in a class
package com.ftc; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class…
-
1
votes0
answers69
viewsFind out if App has been terminated
Hi, I’m a beginner in android and I’m developing an app. I can find out if my Activity was closed using the onStop method using isFinishing() and isDestroyed() and that went very well. But I would…
-
1
votes1
answer72
viewsConvert JSON String to an Object - Java Android
Hello, I’m getting the JSON string below, but I can’t put the values in the Class I created, all values are null. Any hint? JSON {"USDT":{"code":"USD", "codein":"BRLT", "name":"Dólar Turismo",…
-
1
votes1
answer54
viewsThe app I made cancels the sound of other apps
I made an app for android, which in short is a feed of videos and images. When I open my app and some video is paused or executed, the sound of other apps is also paused (Music, radio). I’ve looked…
-
1
votes1
answer9
viewsWhen running the application on the mobile phone the imageView is not visible
<?xml version="1.0" encoding="utf-8"?> <EditText android:id="@+id/editTextEmailEntry" android:layout_width="wrap_content" android:layout_height="wrap_content"…
-
1
votes1
answer254
viewsAndroid app does not access API on the latest SDK(28) - Android Studio
Good morning, I developed an app using android studio that does not access web service in a version of the android SDK, more specifically the SDK 28. I already declared on android manifest the…
-
1
votes0
answers39
viewsonPostExecute is not receiving the result value (Android)
Good night, I am accessing via Asynctask JSON, only on onPostExecute, to String result is not receiving the result value. Follow Home access code.class String login =…
-
1
votes1
answer80
viewsListview returns only one Cursor item
Good afternoon guys, I have a problem with my project. I have a Listview that receives information from Cursor and then sends it to the Adapter, but it is only pulling a record from my database, you…
-
1
votes0
answers39
viewsAdd multiple Documents to the Firestore via a Map
Hello. I have a firestore with the following structure: bd: students: license plate dado1 dado2 dado3 Students is a collection, and each enrollment is a document. I have a hashmap of , where the…
-
1
votes1
answer71
viewsHow to hide part of a view?
I have the Stickerbtn.java with the following code: public class StickerBtn extends View { private Bitmap mControllerBitmap private void init() { mControllerBitmap =…
-
1
votes1
answer368
viewsUpdate Listview with notifyDataSetChanged()
Good afternoon guys, I’m not getting the use notifyDataSetChanged() to update my Listview. My application takes the data entered in the database and lists in the registration page, soon after, if…