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
-
-2
votes1
answer288
viewsHow to add navigation Drawer
I’ve already added Drawer navigation to my project, only I need to add menu button in the action bar, how can I solve this problem?
-
-2
votes1
answer72
viewsAndroid Studio App
I am developing an application that is a dictionary of chords for guitar. And as there are numerous chords, consequently I have numerous activities. The problem is that the application will be very,…
-
-2
votes1
answer224
viewsHow to implement the method onBackPressed() in a class it inherits from Fragment, Causing it to return to the previous Fragment?
Segue um trecho de código para exemplificar meu problema: public class DashboardFragment extends Fragment{ ... } @Override public void onBackPressed(){ //Aqui volta para o Fragment anterior... }…
-
-2
votes1
answer168
viewsadd a listener to editText
how do I make an action be executed, every time the user type some letter in editText, I searched but did not find what wanted, if someone knows at least a hint of how to search already help
-
-2
votes1
answer116
viewsHow to run html on an Activity?
How do I have my application run an html file saved to a folder within the application?
-
-2
votes1
answer202
viewsconnection from a mysql to android database
I am looking for a free host, where I can save my mysql database and connect it to the android application using the program "Android Studio", can help?
-
-2
votes1
answer76
viewsHow to pick an item from a list and move with your finger to another position on Android?
I have a list and would like to move her first item to the last position dragging with your finger, someone could give some suggestion on how to do this on Android?
-
-2
votes1
answer33
viewsLibrary that performs Google searches
People have a question here I’m beginner on Android, I want to produce an APP that does searches on sites like Casasbahia, Casa&video and etc and show the products in order of prices, someone…
androidasked 7 years, 3 months ago Matheus Muniz 13 -
-2
votes2
answers460
viewsWhat language do you learn?
I was beginning to learn to program, but it was still very slow. Only now I’m starting a systems analysis facul and I already have some startup ideas. As I intend to open some in the future, I will…
-
-2
votes1
answer62
viewsProblem picking up a GSON variable
I’m making an app that uses the google maps Directions api, which returns me a json, for example: { "geocoded_waypoints" : [ { "geocoder_status" : "OK", "place_id" : "ChIJeRLP8gx3GZURImtwaSWGJgY",…
-
-2
votes1
answer46
viewsCapturing plaintext information and storing in variable
I wonder how do I capture numbers from a plaintext and save to a variable.
androidasked 6 years, 12 months ago Júlio Diniz 1 -
-2
votes1
answer150
viewsAndroid device fails httpTransportSE and emulator fails
I have a server with webservices running locally. When I run the android application in the emulator, this can connect to the webservice. When I run the same app on a real device, it doesn’t…
-
-2
votes2
answers116
viewsGuys, does anyone know what call or perform this technique in the studio Android?
I want to make an APP for gym and need to use a smaller screen in front of the main screen as shown in the print of an existing APP that is attached. I want to blur the background and show a smaller…
android android-layout android-studio android-activityasked 6 years, 7 months ago Heverton Kleidson 23 -
-2
votes2
answers910
viewsRedirect users to Google Maps app using Waypoints
I’m building a website (html/php/javascript/css) with integration with google maps using the Javascript API. function initMap() { var directionsService = new google.maps.DirectionsService; var…
-
-2
votes1
answer99
viewsError database.Cursorindexoutofboundsexception: Index 0 requested, with a size of 0
The following error is occurring in my application and I am not able to solve it. Could you help me ? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.sala304b.padariacoimbra, PID: 15159…
-
-2
votes2
answers604
viewsProblems receiving money as input in edittext
I’m building an app in Android Studio that gets a value inserted in a edittext, passes him on to BigDecimal and performs some operations. In the field to enter this value, I marked…
-
-2
votes1
answer280
viewsCheck the app version on Google play
Is there a Web Service that returns the version of my application? Because for example I have version 1.2 (most current) and when the user opens and for example it is version 1.1 do not let him run…
-
-2
votes1
answer100
viewsHow to implement an inputText for "Tags" or "keywords" in Android Studio?
I am creating an android app and need a simple inputText that allows the user to type "tags" very similar to the field of questions here on the site. How do I implement this? Do I need some external…
-
-2
votes1
answer49
viewsCall conversion from Java to Kotlin
I’m creating an app that will have a main Activity and some interspersed Fragments, in this case I’m trying to release a fragment_main but I can’t get this Java code to become Koltin code:…
-
-2
votes1
answer118
viewsApp to show Logcat on android devices
I wonder if there is any application that shows the Logcat of the errors of the android apps. I would like to optimize the company’s QA system and this would help too!
androidasked 6 years ago Filipe Vasques 3 -
-2
votes1
answer116
viewsI need a function to return true or false, depending on the amount of letters
boolean b = mascara.matches("\\D{0,4}"); I need a mask (like for example "GHO-1A23") is verified to contain only 4 letters. If you have 4 type only number and if you have less than 4 let type one…
-
-2
votes1
answer25
viewsDraw between Activities
Good afternoon, I was wondering how do I choose a maximum number in one Activity and the other make a draw with the maximum number being the one chosen in the first Activity
-
-2
votes1
answer173
viewsStart application when unlocking screen - Android Studio -SOLVED
I have an android app that runs in the background. It happens that the lock/unlock the mobile screen, the application stops. I wonder if there is a way to start the application as soon as the user…
-
-2
votes1
answer184
viewsRemove value quotes in Jsonobject on Android
In my Android project I need to generate the following Json result: {"value":164.40} However, how to remove the quotes from the String result? JSONObject json = new JSONObject(); json.put("value",…
-
-2
votes1
answer41
viewsuse programmatically linear Radius corner, modifying circuference only on one side
use Radius corner programmatically in a linear, modifying only the circuference of two sides…
-
-2
votes1
answer34
viewsAndroid Studio and SDK
Every time I install android Studio it comes without the SDK.I’ve checked the most common paths where the installer puts it and nothing. What can I do in this case , how do I install the android SDK…
-
-2
votes3
answers97
viewsNavigation.Popasync() does not work when used as an option to exit the application
I have a one-screen app, a "Contentpage". I can’t get out of the app with "Popasync()". I’m debugging on a Samsung J6 device. // página instanciada MainPage = new NavigationPage(new Inicio()); //…
-
-2
votes1
answer24
viewsError calling com.facebook.login.widget.Loginbutton.registerCallback' method on a null Object Reference
Whenever I start the application this error appears: Attempt to invoke virtual method 'void com.facebook.login.widget.LoginButton.registerCallback(com.facebook.CallbackManager,…
androidasked 4 years, 7 months ago Murillo Rodrigues da Silva 1 -
-2
votes1
answer73
viewsData does not save in Firebase
I’m trying to save data in my Firebase database but the app doesn’t save. I can install, boot the app, and move between pages without an app crash, but I can’t save data. Before implementing the…
-
-2
votes1
answer124
viewsProblems using the Cardview element (Material Design - Android)
I’m trying to use the Cardview element of Material Design in my Android app, but I’m not getting. Could someone help me identify the error of my code? Below is the code used. Log of Android Studio…
-
-2
votes1
answer144
viewsImage loading with the Picasso implementation on android
I am using the Picasso implementation to upload the images in my application. However, I am using the reverie effect of the shimmerfacebook implementation to make the layout more user-friendly. For…
-
-2
votes1
answer48
viewsRecyclerview Does not load on screen
My Recycler view does not appear on the screen if anyone can help I’m a beginner so I’m struggling, but I managed to do two other only that is keeping me awake :/ Thank you very much =] MY ADAPTER…
-
-2
votes1
answer49
viewsHow to Shuffle String Value? (JAVA ANDROID)
The thing is, I’m creating an android app and I prescribe shuffle the value of a string. Example: String name = "Bruno"; Shuffles the string value(name). Output: "ronub"…
-
-2
votes2
answers46
views(Solved) Firebase Google only connects in apps by 4G, no wifi
I’m developing an app that uses Firebase. I had a lot of problems W/System: Ignoring header X-Firebase-Locale because its value was null. Thinking this is the case I’ve invested a lot of time trying…
-
-2
votes1
answer48
viewsGet App version in Play Store
I’m trying to get the APP version from the Play Store to compare with the installed version and be able to force the update if the device is lower than the Store, but I’m not getting the Store…
-
-2
votes2
answers57
viewsRecyclerview does not display data
I have a problem where Recyclerview does not render on Activity. Textviews load normally. In the Emulator I use level 24 or 30 Apis and physical applications. This appearing this way, the Recycler…
java android android-layout android-recyclerviewasked 3 years, 8 months ago Filipe IKOGNYT Andrade 1 -
-2
votes1
answer60
viewsFirebase cloud firestore random query with specific user ID (Flutter)
I’m trying to randomly pull my data from the firestore cloud but I’m not getting it, does anyone know how to do it using ID? getQustoes(String simuladoId) async{ return await…
-
-2
votes1
answer54
viewsWhat’s the bug in the program?
Give me one mistake R appears in red. public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
-2
votes1
answer109
viewsWhy does the program close when I click the button?
Could someone tell me why the program closes after clicking the button? import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import…
-
-2
votes1
answer42
viewsNot deleting from the Database the data I want
I have this code that supposedly erases the date I put in the method from Database. But it’s not deleting from Database and I don’t understand why. Here is the information : public void…
-
-2
votes1
answer52
viewsAdd and display Indtent in another class
Good wondered, how can I add this (Intent) and how to print it at the end of the program in another Class. public class Main2Activity extends AppCompatActivity implements View.OnClickListener{ int…
-
-2
votes1
answer839
viewsLogin with retrofit android
Hi I asked a question and could not help me, I have a webservice who’s making a get that when entered the user name it will allow access to the application and thus will pass the user to the next…
-
-2
votes1
answer59
viewsopen external link in actionBar
How do I open an external link from the Toolbar menu I tried some solutions but n got, I marked the snippet that would put the click to open the link in the browser. public boolean…
-
-2
votes1
answer41
viewserror : while expected /eached end of file while Parsing
Guys I’m having problems with my Bingo app public class MainActivity extends AppCompatActivity { int[] ids = {R.id.button2, R.id.button3, R.id.button4, R.id.button5, R.id.button6, R.id.button7,…
-
-2
votes1
answer73
viewsRepetition of Numbers
Good staff I have the following situation: I have an on-screen account like this: x + 1 = 2, the user has to click on the option that completes the account and I tried to use this code of my…
-
-2
votes1
answer137
viewsWould you like to know how to change the color of selected items, Actionbar?
<!-- styles.xml --> <resources> <!-- Base do tema da aplicação. --> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here.…
-
-2
votes1
answer63
viewsVisual Studio with error in Google Maps API - Android 6.0 and API version 29.0.02
Installation Errors: XA5207 Install package: 'Xamarin.Android.Support.v4' available in the SDK installer. The Java library file 'C: Users vinic Appdata Local Xamarin Xamarin.Android.Support.v4…
android visual-studio google-maps google-maps-api-3 xamarin.androidasked 6 years, 8 months ago Vinicius Dantas 73 -
-2
votes1
answer23
viewsWrong code error in setType " non-static method setType(String) "
android.support.design.widget.FloatingActionButton android:id="@+id/floatingActionButton" android:layout_width="wrap_content" android:layout_height="wrap_content"…
-
-2
votes1
answer188
viewsCan’t Convert error Object of type
This one started to appear out of nowhere, apparently I didn’t change anything in the code and simply by making changes in other parts it appeared. Error: 12-07 07:47:43.652…
-
-2
votes1
answer43
viewsDeserialization Gson X Android
I am unable to pass the value of the JSON string to an entity (OBJECT). I’ve already managed to receive JSON, and code 200 success. But I can’t put that value on the object (Deserialization). if…