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
-
0
votes1
answer241
viewsHow to share audio from raw internal directory?
I have several audios stored in the app’s raw directory and would like to share with other apps, such as Whatsapp, but I found very confusing the documentation on how to set up File Provider…
-
0
votes0
answers390
viewsAndroid: Copying a file from the Assets folder to your mobile memory
I am making an application, which on a button that the user press, will open a PDF file... There is the problem, this file is in Assets folder and I want to put it in the internal memory of…
-
0
votes1
answer40
viewsJsonexception error
My code makes a get via book ISBN : final Button btnBuscarCEP = (Button) findViewById(R.id.btnChamaBuscaCEP); final EditText editTextCep = (EditText) findViewById(R.id.edtCep);…
-
0
votes1
answer242
viewsDisplay problem of a setText
I am creating an application, which starts on one screen, and automatically (within "n" seconds), opens another Activity. I decided to perform some tests with load display (loading), but I came…
androidasked 7 years, 5 months ago Luís Carlos 23 -
0
votes1
answer462
viewsHow to store more than one value using Sharedpreferences?
I’m making an app where I created a checkbox to represent a favorite item. The problem I’m having is that when I put more than one item as a favorite, the last one replaces the first one, that is,…
-
0
votes0
answers70
viewsReplacement for onGetView on the Holder
I’m having trouble with onGetView when I have a large list of items and change for example the amount of one of them, and roll the page it is setting this number for another item. I tried to do…
-
0
votes1
answer230
viewsHow to pass the name of Image Dynamically?
Hello, I’m learning now and I managed to make a Heads or Tails app with Success and decided to create another one based on it. This other app just click on the mainActivity button and it calls a…
-
0
votes0
answers102
viewsmy app stopped working from nothing this giving an error "Unfortunately app has stopped"
M app is working fine, then I turned on the pc and went to run it once more and this giving this error "Unfortunately app has stopped" I do not know what happened I will put the logcat here in case…
-
0
votes1
answer154
viewsApplication closes when I try to log in without filling in the fields
I’m developing an application, and I’m not getting the login screen to check if the fields are being filled in or if they have the wrong username and password. Follow the login code. It logs normal,…
-
0
votes1
answer62
viewsToast with problem
I’m new to android,my question is silly,my Oast was only to appear when the user type the wrong password or email,but it appears even when it is correct, what is wrong with my code? try { JSONObject…
-
0
votes0
answers65
viewsPick up date from Intent Activity
I am setting the information like this in my Home, but I need to recover case back to screen. how to do ? Intent data = new Intent(); data.putExtra("OPCIONAIS", (Serializable) listaOpcionais);…
androidasked 7 years, 5 months ago Renan Rodrigues 3,709 -
0
votes1
answer199
viewsSearchview without any return on Android
I implemented a Searchview and put in a Toast to see if it was working as soon as I typed something in the search. Toast is not displayed, no error appears in Logcat. The search is in an Actionbar.…
-
0
votes1
answer81
viewsList null android
I’m having trouble with the list, the method init() that is triggered as soon as I enter the screen has the following code: listaOpcionais = Globales.getListaOpcionais(); At this point I list what…
-
0
votes1
answer596
viewsWhy doesn’t the app come off the white screen and make no mistakes?
I’m making a very basic app with a screen that simulates a Bingo card. The problem is this, when I run the code, without checking repeated numbers (because in a bingo card there can be no repeated…
-
0
votes1
answer58
viewsRemoving items from a list
The case is as follows, when I remove the data from the list, when the number of the head is greater than the second is all right for example: List<a> 0 - ITEM A 1 - ITEM B (X) Exlui este! 2 -…
-
0
votes1
answer207
viewsChanging label and color of pie chart entries - Android
I have the following code: public class Pontuacaouseractivity extends Appcompatactivity { PieChart graficoUser; int pontosCor, pontosNumero, pontosObjeto; FirebaseUser user; FirebaseAuth auth;…
-
0
votes1
answer78
viewsError running a phone call
The error appears when I click on the CALL PHONE button. Mainactivity class package com.edu.chamada; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import…
-
0
votes2
answers508
viewsHow to check if a String is null and add in an array?
I have a problem, I have several variables (String) with the following names: textTransferd1, textTransferd2 to 73 (textTransferO73). At certain times the variable textTransferd2 for example may…
-
0
votes0
answers475
viewsProblem with Gradle generating
Good afternoon... I have a serious problem, I already searched in forums and groups of Whatsapp and could not solve, I realized that it is only in windows 10... Come on: My problem is this, every…
-
0
votes1
answer88
viewsToast She’s in trouble
Man Toast is being shown even when my Else is not called; it was to be shown only when the user enters wrong password or email, but even when the equals works, the Toast appears: protected void…
-
0
votes0
answers124
viewsI have a problem in Cardview to pull on a layout on Tabsadapter
Hi! I can’t pull my Cardview. I use Tabs to scroll the pages more easily. Instead of just pulling a list of things using Reciclyerview, I pull the Layouts I created. That said, my cardview on the…
-
0
votes1
answer263
viewsShow message on screen if there is no internet connection
I created an android app that consumes data from a webservice Rest made in Php, so far everything working perfectly. What I want now is to show a message on the screen if you do not have Internet…
-
0
votes0
answers69
viewssqlite with android studio
is already solved. I want to add 3 data (date, location, and price) to my database. already solved some errors in database implementation. but now this error appears to me. I am not very good at…
-
0
votes1
answer163
viewsScroll Webview does not appear
I created my first application on android being that it was (Webview) but when I enter the application, my site is fixed inside, no scroll. My code is: package…
-
0
votes0
answers21
viewsCan’t find Google Maps class
I’m trying to carry a FragmentActivity, that loads the map from Google Maps. It was working, and stopped suddenly. I want to open it through a button, but as soon as you press Activity with this…
-
0
votes0
answers142
viewsLogin com instagram em app Android
I have a beginner’s doubt that this is causing me a certain inconvenience. How to log in with an Instagram account and pick up the list of followers and people I follow? I’ve seen several video…
-
0
votes0
answers46
viewsUpdate information received from Arduin
I have made an application that interacts with a robotic head with Arduino and I would like to know how to automatically receive all the data from the robot without having to trigger the sending of…
-
0
votes1
answer94
viewsError while trying to generate signed APK. What may be wrong?
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission…
-
0
votes0
answers62
viewsError in Android Studio 2.3 Integration with Gitlab
I’m learning how to read and following a step by step in Stack Overflow almost worked, but there’s an error that I can’t fix. I’m using the terminal inside the Android Studio I followed all the…
-
0
votes2
answers523
viewsConsume PHP Webservice using Java/Android
I built following the guidance of a friend a webservice using php (actually is a web application that returns to all requests made via post a string in format json). First what I’d like to know is…
-
0
votes1
answer1040
viewsReceive a single data from a Firebase node
I would like to know how to recover from Firebase a single data from Firebase, I used the structure of Eventlistener mounting the object and pulling only one of the data, but when running the error…
-
0
votes2
answers301
viewsNull Object Reference JAVA
The whole problem is happening in a search, when I click and start typing the field it goes filtering the results, when I click on one of these results to open another screen, this error: Attempt to…
-
0
votes1
answer85
viewsEnvironment for Android database testing
I am developing a simple application with Android Studio, using Java as a language. Currently, I am implementing the login and logout routine and I have some doubts. 1° ) Is there a need for me to…
-
0
votes0
answers50
viewsProblem with Tabs and Adapter
I got a problem here. I have that code Home Screen: public class Inicial extends AppCompatActivity { private ImageButton button,button2; protected void onCreate(Bundle savedInstanceState) {…
-
0
votes1
answer93
viewsApplication Stopped Webview
I have an app with a WebView, after inserting a code so that it could return to WebViewWhen pressed the close button of the mobile phone an error was detected, but this error ("The Application ***…
-
0
votes4
answers645
viewsHow do I insert a button after a listview?
Hello, I need to insert a button right after my listview. I mean, when I finish sliding my listview will have a button at the end. I’m trying to do it this way: <LinearLayout…
-
0
votes0
answers36
viewsSharedpreferences receiving Nullpointerexception
I need some help with Sharedpreference. I am developing a phrase APP, where there is a checkbox that marks favorite phrases and plays these phrases in Sharedpreferences where they can be accessed…
-
0
votes1
answer291
viewsAsynctask onPreExecute method problem - Android Studio
I have this Activity that displays the user score of my application. However, when this Activity is called, what should occur is a ProgressDialog being displayed with the message "Buscando Pizza"…
-
0
votes1
answer807
viewsHow to hide keyboard when leaving Edittext?
I have three edittext, I want that when I click out of them or finish filling my keyboard sum. Being that they are a Fragment. How to do this? My XML with editText. <RelativeLayout…
-
0
votes1
answer66
viewsSave Bitmap with Alpha
I have the following class: public class TesteMultiImage extends ActionBarActivity { Uri URI; String ImagePath; Button button; @Override protected void onCreate(Bundle savedInstanceState) {…
-
0
votes1
answer327
viewsAdd items to the top of Recyclerview with Firebaserecycleradapter
How do I add items to the top of a RecyclerView using the FirebaseRecyclerAdapter? By default, whenever I add an item, it goes to the bottom of the Recyclerview list, and I want it to go to the top.…
-
0
votes1
answer68
viewsMethod setEmptyView is not working on my listview
I am setting the setEmptyView method in my listview but when it is empty it does not show the desired view, and also does not give any error in the log. public class ListaNotificacoes extends…
-
0
votes1
answer82
viewsI can’t use Loginbutton from Facebook SDK
Every time I try to insert it the application compiles but does not run, closes automatically with the following exception` java.lang.RuntimeException: Unable to start activity…
-
0
votes1
answer716
viewsOpen Activity if you don’t have internet
I have two Activity one has a webview and another is a page where if there is no internet should be displayed it. The problem is, when there is no connection, there is an error and it says that the…
-
0
votes1
answer2083
viewsHow to create a . txt file on Android and make it available to open on computers?
My question is regarding how I create files and folders that can be viewed and accessed on later computers. In my code in the project I have a method that creates a text file. public void…
androidasked 7 years, 5 months ago Lucas Batista 105 -
0
votes2
answers460
viewsHow to update Listview after deleting item?
I am deleting the Listview item and it works normal, only the notifyDataSetChanged() method is not working in my Listview and the item keeps appearing even after deleting. What can I do in this case…
-
0
votes1
answer379
viewshow to hide a progressBar after given time
I’m using the following code new Thread(new Runnable() { public void run() { while (cont < 100) { cont += 1; try { Thread.sleep(20); } catch (InterruptedException e) { e.printStackTrace(); } }…
-
0
votes0
answers128
viewsAs of Finish in past Activity
Well I am with the following doubt, has to give finish() in fragment who have passed ? The case is as follows: I have a few screens in sequence where I use for the comrade to choose the snack, then…
-
0
votes1
answer95
viewsPass data between fragments and Activitys with radio button
I’m having trouble passing data from an Activity to a Fragment, I would like to use a radio button to define a parameter for a variable, dps pass this value so the Fragment can do the treatment,…
androidasked 7 years, 5 months ago Topazzio App 43 -
0
votes1
answer92
viewsHow can I avoid repeating code?
I have a command that will need to perform several executions, but I have to put 1,2,3... have to use the same name ? btnadd1.setOnClickListener(new OnClickListener() { @Override public void…