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
votes0
answers79
viewsHandle data between enumerated variables and "set of" in Delphi
I have two variables of different types, but dependent, one type being a set of of the other kind which is a Enumerated Types. How do I extract the value from the type variable set of (Y in my case…
-
0
votes1
answer90
viewsInstalling Android Studio on Windows 10
I’m having problems trying to install Android Studio on Windows 10. Upon completion of the installation the information on the screen appears in English (on the buttons) and in a language disfigured…
-
0
votes1
answer429
viewsAndroid emulator loads but gives error
This is the mistake you make after a few minutes of loading Emulator: Error: Missing initial data Partition file: C: Users Reinaldo.android Avd 3.7_WVGA_Nexus_One_API_25.Avd/userdata.img…
-
0
votes1
answer1042
viewsHow to create an automatic click (tap) on your Android screen?
I am a beginner and I am trying to make a game and wish that automatically, during the execution of the app occurs a click on specific area of the screen, as if the user had done. 1 - I can simulate…
-
0
votes1
answer58
viewsgettext() returns null when trying to read the typed value in an Edittext
I have an Edittext field and want to save the Text contained in it by pressing a button i tried to do it using the following code but the string remains null public void Botao (View view) {…
-
0
votes1
answer54
viewsAndroid - Custom Arrayadapter problems with content
I’m trying to make a ListView with a ArrayAdapter customized. When I use the ArrayList original all functional well but when I update the ArrayList and use notifyDataSetChanged() to update the…
-
0
votes1
answer105
viewsInstall Restsharp in PCL projects Xamarin.Forms
How do I install Restsharp in a PCL project (Xamarin.Forms). You are giving this error when installing: Unable to install 'Restsharp 106.3.0-alpha0002' package. You are trying to install this…
-
0
votes1
answer99
viewsFirebase charset error
I created the database in Firebase and added some records, but it is giving error in relation to the words with special characters in Recyclerview Android and also in the Firebase site itself. The…
-
0
votes1
answer317
viewsError while compiling Android
When compiling, the following error occurs: :app:transformClassesWithDexForDebug FAILED Error:1 error; aborting Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code.…
-
0
votes0
answers141
viewsRun youtube videos in a web view
Youtube videos do not play in A web view on Android 4.0, but in 6.0 videos run normally. I’ve done a lot of research on this topic, but I haven’t found any practical answers to my very low knowledge…
-
0
votes0
answers28
viewsHow to print a custom Arrayadapter in a Ragment?
I am using a Drawer menu in my Android application and I need to print a list in Ragment by clicking on the side menu item, how I create a custom Arrayadapter and how I invoke it in Ragment?
-
0
votes1
answer402
viewsRequest application/x-www-form-urlencoded using Volley
Good morning guys, I’m trying to make an integration with web_services of a partner, by php everything worked correctly now I want to implement directly on Android using Volley but I’m getting…
-
0
votes0
answers130
viewsHow to remove the onesignal icon?
Galera has an app on Android Studio and it has notifications from One Signal, is working normal, I managed to change the default icon to one of my choice, but it is my icon and another small icon…
-
0
votes0
answers21
viewsHow to remove the small icon in onesignal?
Guys I asked a question here earlier but they said it wasn’t clear. I want to remove the small icon from the Onesignal for Android. Look: In the notification appears 2 icons and I wanted to remove…
-
0
votes1
answer46
viewsHow to capture the last 5 characters of a URI
Hello guys I would like to know how I can capture the last 5 characters of a link, for example in this link below I would like to capture the characters ". m3u8"…
-
0
votes2
answers813
viewsStart an app with a screen that isn’t Main?
Hello, I wonder if it is possible to start an application with an Activity that is not the main Activity, and from it call the main, as a kind of login to access the main menu, or even a…
-
0
votes0
answers319
viewsProblems with Scroll View, how to solve?
Good morning, I’m new with Android programming and I’m trying to develop an application in which, depending on the subject that the user choose will open a certain screen, but every time the…
-
0
votes2
answers888
viewsmy virtual device in android studio does not open my application
I was creating an application, and soon after adding strings to some textviews I tried to do a test, I selected my virtual device, however, when the device started a white screen with the google…
-
0
votes1
answer220
viewsProblems with 2 different versions of v7 library
My app is presenting the following error: as if I had used two versions of the compatibility library, the 25 and the 27, however I already reviewed the whole project and I can’t find where the 25…
-
0
votes1
answer35
viewsNavigation in Android Mobile Apps
Fala galera. I have an app posted on Windows Phone where I navigate between pages without having to worry about the history, that is, if the user presses the Windows Phone Back button, it…
-
0
votes0
answers39
viewsAndroid mode twelve does not return app in background
I have a problem that is this: My application sends the coordinates from time to time (I get this interval from Webservice). But the biggest problem is when the phone is turned off or even restarted…
-
0
votes1
answer28
viewsWhich view was used in this layout
Guys I’m creating an app that the person makes a registration,and in this registration has name,photos and various information and I wanted to list this information and photos like this,someone…
-
0
votes1
answer807
viewsUser permissions in firebase
Good morning, I’m having a question, I’m assembling an app where the person accesses it, login and password and then appears the home screen of the same. If the person has no record she will…
android firebase firebase-cloud-functionsasked 6 years, 10 months ago sender rodrigues dos santos 19 -
0
votes1
answer25
viewsHow is it possible to declare an object without first instantiating it?
I came across a question in android programming, when we declare the views in the java class, as in the example: (Textview txt = (Textview) findViewById (R.id.txt), this View is being used by the…
androidasked 6 years, 10 months ago use3265498465 95 -
0
votes1
answer402
viewsIs it possible to edit a project name?
It is possible to change the name of an application after already created the project in Android Studio, by Manifest or something like this?
-
0
votes1
answer57
viewsApplication Installation Failed
After using for the first time Android Studio on a mobile phone, I could not use the emulator normally. The message appears below. Somebody please help me? "Installation failed with message Failed…
-
0
votes1
answer148
viewsLoad Empty Spinner
By generating a Spinner, it brings the first value of ArrayList generated already selected. How do I bring it "empty" ? The best option would be to populate it with a function onClick instead of…
-
0
votes1
answer12496
viewsChange the Android App icon
I’m developing an app in Android Studio and when running the app on the smartphone, the icon that appears is the Android itself. How do I change this icon for one I have on my computer?
-
0
votes1
answer242
viewsLose value in getIntent()
My problem is this... I have a routine of notifications that the user click on the notification screen, open a new Activity. In this new Activity I show some information that I search in the…
android android-activity intent broadcastreceiver android-alarmmanagerasked 8 years, 3 months ago Joel Messias Do Nascimento 103 -
0
votes0
answers35
viewsDoes Viewpager change the way a method works?
I created an app that gives the value of X and Y in a two-variable linear system. Using these (https://www.youtube.com/watch?v=CnlwBwMiFQw and https://www.youtube.com/watch?v=faegDgN7wX4) tutorials,…
-
0
votes0
answers290
viewsAndroid Studio Error - compile app direct to handset
I’m trying to run the command to compile a direct app cmd for mobile, however I’m falling in an expection, need help: Code I’m running is react-native run-android Note: I plug my phone (I have left…
-
0
votes0
answers44
viewsLand and Portrait
What would the image code look like to keep the aspect ratios between views in both Landscape and Portrait? The image below is only prototype has no code yet.…
-
0
votes0
answers54
viewsAndroid studio gallery effect
I have a little problem that I am not finding the answer, I wanted to make a gallery with this effect: but I’m not getting anyone would have a hint of how I can achieve such an effect?…
-
0
votes0
answers541
viewsHow can I make an Oauth2 authentication from a native android app with a site developed with wordpress?
I have a site developed with wordpress, and not on the wordpress platform.com . Lately I have been doing tests to use restfull and consume the data via json by native android application. Only that…
-
0
votes1
answer139
viewsNullpointerexception error when calling a method
public void addFormaPagamento() { btnAdd.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { boolean isInsertForma = dbApp.insertFormaPagamento(…
-
0
votes1
answer117
viewsBest dimension to put in the background Android app?
I developed a splash for an android app and included a background image via the command: android:background="@drawable/bg16" The image appeared, but due to its dimensions, it was somewhat flattened.…
-
0
votes0
answers130
viewsSearch Firebase for several fields
I can search the searchview by taking the data from Firebase only by the item nameOrganization as I do to search for any field at the same time. Ex: I can search Sao Paulo, Machines, SENAI, etc and…
-
0
votes1
answer176
viewsCardview with multiple images
Could someone help me as I do for each card of that ai exchange the images using the library ?…
androidasked 6 years, 9 months ago Artur Mafezzoli Júnior 441 -
0
votes1
answer999
viewsWhere are the files of projects developed in Android Studio on Linux?
I am developing an App for Android using Android Studio, but as I have not yet published, it is my custom to make a backup at the end of the working day. I’m using Linux and I can’t find where the…
-
0
votes1
answer89
viewsMAINTAIN ACTIVITY BY MINIMIZING
How do I keep my app current when I minimize and maximize the window? I noticed that every app I do, if I minimize and maximize it goes back to initial acitivity, especially in apps that need to…
-
0
votes0
answers59
viewsIdentify product by barcode
Good Afternoon, I’m at the beginning of a project. This consists of reading the barcode and identifying at least the main features of the product, such as name, brand and photo illustrative. In some…
androidasked 6 years, 9 months ago user86375 -
0
votes1
answer56
viewsInfiniti Scroll with firebase and Ionic
Guys I’m here in a pinch, I’m using firebase v3.2.1 and I’m trying to implement an Infinity Scroll with Ionic, the point is that I don’t know how to do, I googled and found a firebaseUtils library…
-
0
votes1
answer679
viewsjava.lang.Nullpointerexception error on android application
In this code occurs the cited error, pointing to the method CarregarTelaPrincipal(). Why is it happening? package com.example.usuario.myapp; import android.app.Activity; import…
-
0
votes1
answer64
viewsDoubt Return API Json Android
I recently read a lot about getting data through an API on Android, but I can’t get what’s being returned in Json from a specific API shown below. { "Sumario": { "Termo": "teste", "Tipo": "teste",…
-
0
votes0
answers133
viewsAndroid Studio Design Gray mode
I bought an app on codecanyon and I’m slowly editing everything and fixing, but there’s one thing I’m wondering, maybe it’s some silly problem but I can’t solve the same.…
-
0
votes1
answer188
viewsHow to compare name of two images in Android Studio
Having a imagem = (ImageView) findViewById(R.id.imageViewId); How do I know if the current image has the name x or y? I tried some ways with the equals and stuff, but it didn’t work.... if…
-
0
votes1
answer119
viewsError java.lang.Nosuchmethoderogate: Mainactivity.checkSelfPermission
I am making several attempts, but I cannot get the current location of a user using the Location API. I am running the following example: public class MainActivity extends AppCompatActivity…
-
0
votes1
answer2696
viewsBackend with mysql database and frontend in javascript(React-Native)
I am developing an application in javascript(for android)e I would like to use mysql as database for this application, however I could not use mysql in the same code so I did some searches that…
-
0
votes2
answers435
viewsHow to focus position using Recyclerview?
Hello, I’m having a problem saving the last user view position, e.g.: The user goes sweeping the list and when clicking on a position the app opens a new Activity and when returning to the list it…
-
0
votes0
answers354
viewsHow to handle 400 error messages
I work with an application made in Xamarin that sends several requests to the api. Eventually, a user action receives a BAD REQUEST because the user tried to like a photo that she had already liked…