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
answer392
viewsAndroid does not resolve Firebase dependencies
I am having error in solving the dependencies of Gradle: I try to compile and get the following error: Error:FAILURE: Build failed with an exception. * What went wrong: A problem occurred…
-
0
votes1
answer2503
viewsjava.lang.Runtimeexception: Unable to instantiate Activity Componentinfo
I am running the project on my mobile phone, however it presents the following exception error: java.lang.Runtimeexception: Unable to instantiate Activity Componentinfo Mainactivity: public class…
-
0
votes1
answer157
viewsHow to allow one device to be logged in at a time
I have an app that when installed and logged in by firebase, the user will not be able to use your account on another device. In case, if you need to change the device the user will have to ask for…
-
0
votes1
answer460
viewsHow to change the color of the button when pressed?
I need to change the color of a button when it is pressed, as it could be done?
-
0
votes2
answers896
viewsCustom android camera
I would like to make a custom Android camera in which it was possible to add an extra layer at the time of viewing and later put in the photo when taking the photo, however, I confess that I do not…
-
0
votes0
answers36
viewsCreate Mask in Framelayout
Fala galera, I have an image, and I’d like to create a mask, but I’m having a hard time. 1- I have this image 2- I would like to not touch the original size of the image, and present only a piece of…
-
0
votes1
answer28
viewsI cannot open a message sent by firebase
I can send a firebase notification to my App but I can’t Open that same notification within the actidity responsible for the arrival of that notification
-
0
votes1
answer29
viewsRemove gradient
In my side_nav_bar the staining is defined as gradient: <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:angle="135"…
-
0
votes1
answer38
viewsHow to exchange data between a web page with App using Firebase
I have a web page where I want to receive information from an App or exchange information between them but using Firebase, the App sends the information to the web page and the user responds with a…
-
0
votes2
answers81
viewsHow to Capture UTC with an Android App
Good afternoon to all! I need to capture, through an android app, which UTC used in the client device to make internal validations. Thank you in advance!
-
0
votes1
answer101
viewsIllegalargumentexception error when displaying data in the application
I’m trying to present everything that was recorded in my app while running, however it presents the error below: Unable to start Activity Componentinfo{com.projecto.... }:…
-
0
votes1
answer1042
viewsJavascript works on Desktop but does not work on Android
I have a page in ASP.NET and on this screen has a Javascript function to only allow the typing of numbers in some fields. When I run on the Desktop (any browser) this function works correctly, but…
-
0
votes1
answer112
viewsFirebase: App rebooting alone
I’m developing an android app, and I’m using Firebase’s Realtime Database to store the data. There I have a user node, with all the users I have registered through my App. When I make a change to…
-
0
votes2
answers268
viewsHow to make a list from a GET request in Retrofit 2?
My question is how to take the request JSON and put it in an Arraylist so I can inflate the Recyclerview. Thanks in advance.
-
0
votes2
answers174
viewsCall the Textwatcher method
Good afternoon! I’m starting my studies in Java and I’ve come to this topic. What I call the method insert on the side of Activity, past the field EditText defendant? public static TextWatcher…
-
0
votes1
answer858
viewsHow to print a webview to a bluetooth printer?
I’m making an application that needs to print the contents of a webview , but the printer is bluetooth , could help me?
-
0
votes1
answer117
viewsArray of numbers with variable amount Java Android
I am making a program for Android and I want to make an array of integers, but I need to define the quandity of numbers with a variable that has 3 options of values: 20, 50 and 100. I tried to use…
-
0
votes1
answer260
viewsDebug app emulating on mobile
I’m having a problem with a conversion string para double, in that in the emulador o APP está funcionando perfectly, but no celular ele trava and closes. I’d like to know how to debugar se quando…
-
0
votes2
answers72
viewsTablelayout Android does not beat
This is the layout I currently have: And this is the code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer22
viewsDonwgrade from API 23 to 21
I have an app already posted on Google play that was designed on API 23. But now a little problem has arisen, as it has some customers who use Android 5.0. My app is simple and uses no more advanced…
androidasked 6 years, 11 months ago Rafael Silva 944 -
0
votes2
answers46
viewsNullpointerexception on button inside include
I have a button that advances a viewpager, but I did it inside a include, because I use on several screen, but when I try to click on it it me error Nullpointerexception, I have checked the ids, if…
androidasked 6 years, 11 months ago Igor Oliveira 1,110 -
0
votes0
answers85
viewsBecause my app is slow in transitioning from Fragment
My app gets slow ( and comes crashing, but without crashing ) after I click a button that transitions from Fragment, was working normal, I went to tinker with another area of the app and when I…
androidasked 6 years, 11 months ago Igor Oliveira 1,110 -
0
votes1
answer193
viewsMagic square in android
I wanted to make a magic square, where I put 9 numbers, and the sum of them has to result 15 (diagonals, horizontal and vertical) I’m doing in android studio . I only have this until then: import…
-
0
votes1
answer152
viewsI can’t Post app to Google Play
Everything is already correct, but the launch button is not active! follow prints! already tried to send several versions, change text, everything, nothing else works!…
-
0
votes0
answers29
viewsonResume method is undoing Sharedpreferences from a Checkbox
I happen to want to leave the Checkbox except as agreed the user marks or not. Then I called a method to make the internet check in case the Checkbox is marked, and soon after the Checkbox was…
-
0
votes0
answers56
viewsI cannot read the first url line
Good night. Although I can’t figure out which error I can’t get the first line of the file that is in the url when this application is used by versions higher than api 10 because api 10 works well.…
-
0
votes2
answers475
viewsHide / Show Menu
I have the following menu: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/action_delete"…
androidasked 8 years, 4 months ago Thiago Luiz Domacoski 7,310 -
0
votes0
answers39
viewsAndroid Listview - item selection/unselection
I have an application that has a custom Listview. When you click on an item in this Listview, the background color changes to indicate that it is selected. In the same Activity I also have an…
-
0
votes0
answers48
viewsImproper space in the layout! how to solve?
Appeared an improper space in the android project... How can I solve? <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"…
-
0
votes1
answer36
viewsRemove title bar Android - Cordova
I’m creating an Android app by Cordova. When opening the APP it appears a title bar, in some devices in blue, in others in black with the title. as follows: I changed the title and disfigured the…
-
0
votes1
answer37
viewsError while consuming service using Volley
I am developing an application in Android Studio in which consumes a service I created in Play Framework. This is my service route: GET…
-
0
votes1
answer69
viewsActivity closes when calling Oncreate method to create Spinner
I have a Spinner that if I invoke his creative method on Oncreate, the program shuts down abruptly. I think q must be something null or some variable of another scope, because if I call the method…
-
0
votes1
answer167
viewsjQuery in Phonegap does not work after it generates APK
I tested jQuery only command iniciar_cadastro: function(){ window.location = 'cadastro.html'; } }; Pressing a button, it works on when I put Phonegap serves testing on mobile, but when Gero APK test…
android apache-cordova cordova-plugin phonegap-buillderasked 6 years, 11 months ago Hyuri Miranda 1 -
0
votes1
answer1418
viewsINSTALL_FAILED_UPDATE_INCOMPATIBLE when trying to install apk
I am having this problem when installing on my mobile a new version of an Android application that I am building and, from what I already researched, can be easily solved by uninstalling the old…
-
0
votes1
answer731
viewsReact Native build app
When creating a React project activate and I try to run it by the *React-Native run-android* command this error appears, no matter if it is direct on the physical device or AVD. I have created…
-
0
votes0
answers1456
viewsUpdate APK Google Play - APK not upgradable
I am trying to update an App and am not getting it. The following error message is shown: None of the users who have this APK installed will be able to do upgrade to one of the Apks added in this…
-
0
votes1
answer448
viewsDownload files to Webview on android 6.0
I am using the following code to download files in web view: @SuppressLint("InlinedApi")public void onDownloadStart(String url,String userAgent,String contentDisposition,String mimetype,long…
-
0
votes0
answers56
viewsCreate xml elements inside the activity_controller
I have a program that has a dropdown with 3 options. (Option 1 has value 1, Option 2 value 2 and option 3 value 3). Depending on the selected option, I need to create Textedits below this dropdown.…
-
0
votes1
answer330
viewsBuild failed with an Exception
When I try to run on my mobile phone, the following message appears: I managed to run via Android Studio, but the app is very slow…
-
0
votes0
answers28
viewsWhat is (View view) on Android?
I usually find this in some parameter of an Activity. For example: public void onClick(View view){ //código } I would like to know better what you are referring to.…
-
0
votes2
answers92
viewsHelp with Android Studio app
I made an application, and now I changed the minSdkVersion to run in previous versions of android. Only when installing the same in the emulator works normally, but when installing on the phone it…
androidasked 8 years, 3 months ago Ronaldo Santos 99 -
0
votes1
answer351
viewsError Running App on Mobile
I’m in trouble because I’m creating 1 app and running a good one on the emulator. And when I run on cellular of this error below... Note: in the cell it opens and closes. Obs2: in the emulator runs…
androidasked 6 years, 10 months ago Thales Monteiro 11 -
0
votes1
answer40
viewsWeb service for web/android
I have the following web service $app->get('/alunos', function(){ require_once('db/config.php'); foreach ($db->alunos() ->order("nome") as $row){ $data[]=$row; } echo json_encode($data,…
-
0
votes1
answer170
viewsError "Element linear layout must be declared"
I would like a guidance for kindness am beginner in Android Studio. I searched many forums and many searches and found no solution days ago. When I create a file inside the folder drawable following…
-
0
votes1
answer333
viewsERROR : Cursorindexoutofboundsexception
public boolean insertData(int id_pedido, int id_item, String nome, int quantidade) { SQLiteDatabase db = this.getWritableDatabase(); ContentValues contentValues = new ContentValues();…
-
0
votes1
answer2046
viewsKotlin vs java performance and is it worth trading java for Kotlin?
The running performance on android (I refer to the speed of the application and not the build speed, because benchmarks on powerful machines showed the slower Kotlin than java in terms of…
-
0
votes0
answers52
viewsError in code Fragments
Some Solution to: My dear funnel all right when I run 1 simple line of Fragments code from the error below... I already tested... what is strange because I only went from one project to another and…
androidasked 6 years, 10 months ago Thales Monteiro 11 -
0
votes1
answer200
viewsLife Cycle of an Activity. Doubts
The methods that make up the life cycle of an Activity (onCreate, onStart, onResume, onPause, onStop and onDestroy), except the onCreate method that is already inserted at the beginning of the…
androidasked 6 years, 10 months ago use3265498465 95 -
0
votes1
answer1711
viewsAndroid - How to call a method from another class from onCreate()?
I am very new on Android. So if you can explain the logic behind the problem I would appreciate it. It would help me understand the problem and see how I could solve it if it happens again. In…
-
0
votes2
answers51
viewsAndroid storage
I am starting in the universe of Android, and I have the following question: In a login system, which type of storage should I use to persist the data of the user who logged in to that session, and…