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
votes1
answer969
viewsConsume Rest webservice on Android
I’m trying to consume a Rest webservice on Android. I’ve done all the steps of the tutorial, but keeps falling into onFailure and presenting the error message. I have already checked all the code,…
-
1
votes1
answer59
viewsThe app crashes every time I click the calculate button
It is an application to calculate IMC, save the data and display them in another interface. However, when I click the button to perform the calculation and display, the program crasha. Other classes…
-
1
votes0
answers575
viewsButton in action bar to open navigation Drawer
Good, I’m making an application that uses the navigation Drawer. From the android 5.1 the button "hamburguer" in the bar action works, and when you click on it the navigation drawer Drawer opens.…
-
1
votes0
answers51
viewsMenu/submenu using get
I have a submenu menu very similar to the image. I also have a database storing categories/subcategories. I’d like to make a Get at the bank, so it would appear on my menu. Code I’m using : private…
-
1
votes1
answer160
viewsPass Firebaserecycleradapter values
How do I pass an object by clicking on a Recycler view item while using a FirebaseRecyclerAdapter? The way I’m doing it is working, I create a list, and in the method populateViewHolder i add the…
-
1
votes1
answer499
viewsProgramming with sounds for android
I want to program sounds on Android but I’m not getting it. I tried the java sound API but Android studio doesn’t recognize it. I want to use MIDI as well. I know you have the package…
-
1
votes2
answers255
viewsError while receiving Firebase data
I’m having problems with my TCC, I’m not getting the data from Firebase and display them in a listview, it presents error, I’m using the ValueEventListener to try to get the data... to listview this…
-
1
votes2
answers180
viewsScrollview does not roll on 320x240 screen
I have a shaman page with a Scrollview and a Listview that work normally on popular smartphones. The problem is that the scroll bar does not work on the Samsung Pocket Duos device, which has a…
-
1
votes1
answer145
viewsHow to fix the buttons in Alertdialog?
I’m having a problem with the buttons created in Alertdialog. I am making a phrase APP and at certain times the sentences are very large and causes the buttons in Alertdialog to drop. Is it possible…
-
1
votes2
answers203
viewsExit warning on Webview
I’m very beginner on android, so I made my application by Android Studio using Webview, but I’m having a question, when I press the back button of Android it already leaves the app, I would like to…
-
1
votes1
answer576
viewsBack to Webview
I have an application with webview and I wish that when I click the back button of the mobile phone it goes back to previous page, I do not know how I do, someone helps me? Below follows my code.…
-
1
votes0
answers136
viewsGeolocation and HTTP requests in the background with Ionic 2
I’m creating an app with Ionic 2 in this application I need to take the geolocation of the device and make HTTP requests to a web service that I have published. I used Sqlite to store the…
-
1
votes1
answer41
viewsWhy some actions give error if I do not specify the View as parameter in Android?
I’m creating a test app with the basic knowledge I acquired on android since I was a java programmer before. All the tutorials I researched people put the class View as a standard parameter in your…
-
1
votes1
answer77
viewsSwitching Fragements without loading the whole screen
I have a problem with my studies, when I change Fragement and then I go back to the source Fragment the data is loaded all over again. And since data comes from the web, it takes time and precious…
-
1
votes0
answers402
viewsHow to save files in Android external storage (like san disk card)?
So the problem I’m facing is that I’m wanting to save a file. txt on the Android memory card, it turns out that when I try to run Fileoutputstream.Write() it gives the following message:…
androidasked 7 years, 5 months ago Lucas Batista 105 -
1
votes0
answers32
viewsEmpty ksoap object arrives on server
My problem is similar the other previous question, but that there was no response marked as correct, only inspection suggestions. I’m working on a web-based project. Everything is working but I am…
-
1
votes1
answer116
viewsProblems with Alert Dialog
I have a problem capturing a text input in a dialog box on Androidstudio. I want to receive the quantity of a product and add in a ArrayList, but the function does not wait for the insertion in…
-
1
votes0
answers411
viewsHow to load image in Imageview with quality?
Hello, I’m beginner in android programming I am developing an app that loads images from the user’s gallery or camera. After selecting the image I use a Cropintent to cut the image. The problem is…
-
1
votes1
answer204
viewsListview inside a Tabview with Firebase data
I’m trying to input firebase data into a listview q is already inside a Tabview, but when I try to load firebase data nothing comes. I started Listview inside the onCreateView method, like this:…
-
1
votes0
answers187
viewsPagination with GSON (ANDROID)
Staff need to load when arriving at the end of the list, example I have 20 items, when arriving at the end of it, need to be loaded 20 more. Currently my Fragment loading the ads is as follows…
-
1
votes1
answer396
viewsScreen and Keyboard Settings
Well, I have a certain difficulty: I created a form in android studio to insert some information, as in figure 1. In all fields, I can enter the information smoothly. However, when I enter the last…
-
1
votes2
answers123
viewsProblem with If Logic with GPS on Android
How It Works: User’s GPS latitude must be between -22.899529 and -22.899922 so that if brood one perimeter. The app will only work some features if you are within this perimeter . Observing: 1) I…
androidasked 7 years, 5 months ago Thiago Saad 1 -
1
votes0
answers79
viewsI cannot install the System.Objectmodel reference in the Android Project
I picked up a reference error in my project The referenced component 'System.ObjectModel' could not be found.. Well, I searched and installed the reference to that path:C:\Program Files…
-
1
votes2
answers415
viewsAccess Sqlite database in another Activity
I’m starting in java android, I’m quite layy yet, I’m picking up the concept of POO gradually. My problem is this, I have a Criabanco class and another Bancocontroller where I have some methods to…
-
1
votes2
answers64
viewsI don’t understand why the app closes
package com.pedrogouveia.teste1; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import…
-
1
votes1
answer94
viewsHow do I have my app listed by the Whatsapp insert button
I need my app to appear in the list of apps with sounds to share, qd we click on that clips from WhatsApp, knows that button of whatsApp to insert an image, a sound, etc... as in the image below I…
-
1
votes1
answer1142
viewsHow to view images in Listview from Firebase?
Well I am receiving numerous information from firebase, and displaying them, however I would like to receive also images, without last storege, I already saved some urls in the database and when I…
-
1
votes2
answers58
viewsHow do I make an operation run moments after I have clicked a button?
I created a simple android app that starts a service soon when I click a button I put, just click the button it starts the service immediately. What I want now is that clicking the service button…
-
1
votes2
answers259
viewsHow to take Sqlite Database Date on Android and format in dd-mm-yyyy using viewHolder?
public class ContatoArrayAdapter extends ArrayAdapter<Contato> { private int resource = 0; private LayoutInflater inflater; private Context context; public ContatoArrayAdapter(Context context,…
-
1
votes1
answer300
viewsSpinner does not display the selected value
I retrieve data from Firebase and when I select one in the spinner, it does not identify the selected one. This is the Fragment spinner = (Spinner) view.findViewById(R.id.spn_l_estados); try {…
-
1
votes1
answer93
viewsToolbar disappears when I add another widget to Activity
I created a Toolbar for Mainactivity, as shown below: However, when I add any other widget in the same Activity, Toolbar disappears when running the emulator: Has anyone ever had the same problem or…
-
1
votes2
answers237
viewsRadiogroup in Listview does not maintain selection after scroll
I have a Listview with some information and within it I have a Radiogroup, but when I scroll the screen all my checkbox are unchecked because the listview is creating this checkbox again. I need my…
-
1
votes2
answers1196
viewsConsuming Json[Array & Object] on Android
According to the comments from some users of this forum, I read some articles talking about more or less what I wanted to do. Read article: consuming JSON From of this I I tried to create my own…
-
1
votes1
answer571
viewsHow to get Firebase notifications received in the background?
I implemented the notification service in my app, working, even receives notification in the background, however I wanted to save the notification message, searched a little and created a service (…
-
1
votes0
answers119
viewsPUT method via JSON
I have a user "update" screen that would update data in my database .. How to do this update in my bank in Android Studio ? My code is like this : @Override protected void onCreate(Bundle…
-
1
votes2
answers245
viewsCannot Resolve Method isChecked()
I am trying to use the isChecked() method but is giving the message "Cannot Resolve Method Ischeked(). Can anyone help me? @Override public View getView(int position, View convertView, ViewGroup…
-
1
votes1
answer2354
viewsSend e-mail direct from App
can send an email with a suggestion directly from the App, without opening an external application, like Gmail? Example: A field where one puts the email and another field it by the suggestion and a…
-
1
votes1
answer64
viewsSwitching screens with the same XML file
I am developing an educational application (with various exercises about java and explanations) for Android, but I have a question: the application becomes very heavy if I create a Activity (with an…
-
1
votes0
answers660
views -
1
votes1
answer241
viewsupdate listview automatically when a new data is inserted in the database
I created a webservice and the application and all this worked right, however I would like my application to update the listview as soon as a new data is entered in the database (this data may come…
-
1
votes0
answers21
viewsCamera Intent returning error
Old phone : Samsung S4 ANDROID - 4.2.2 -- New phone : MOTO G4 - 6.0.1 My application was working until yesterday, I switched to a new phone today ,I do not know if you have something to see ,is…
-
1
votes1
answer562
viewsIonic Cordova run android Error
I’m having the following error while running "Ionic cordovan run android command" Error: Failed to execute shell command "getprop,dev.bootcomplete"" on device: Error: adb: Command failed with Exit…
-
1
votes2
answers46
viewsError in Sqlite class
What am I doing wrong in this class of Sqlite ? I’m getting this error: java.lang.RuntimeException: Unable to start activity…
-
1
votes0
answers61
viewsBuy App Functionality (In Billing)
I would like to make my app have the option to buy functionality. Like I made two apps, one paid (full) and one free (with advertisement). I would like the person clicking to buy to remove the…
-
1
votes1
answer1983
viewsCreate folder in Android directory
I made an APP that monitors events, and finally generates a PDF report with the data of this event. But when creating the file, if the device is with Android Nougat, nothing is generated. I’ve tried…
androidasked 7 years, 4 months ago Everson D. Ferreira 45 -
1
votes0
answers316
viewsError sending data to Firebase
Good afternoon, I am developing an application and I am having problems sending the data to Firebase... I created a Registration screen where you have the email field, password and name. I imported…
-
1
votes2
answers124
viewsJava (Android) - Mathematical Equations
I need a little help. To get to the point, I was trying to create a small system of equations that would allow me to get a set of numbers with a few small particularities. Basically what I intended,…
-
1
votes0
answers30
viewsProblem accessing SQL database without error
I have a code that uses SQL , and in this database , I have a column of dates, then I have a code that what it does is return the maxID (number of Rows, ie number of dates) and I have another code…
-
1
votes1
answer67
viewsItem Selected in Spinner does not appear in Toast
When clicking on the item in Spinner, Toast is not called, nothing appears. public class RegistrarActivity extends AppCompatActivity { private ImageView botaoVoltar; private EditText textoCPF,…
-
1
votes0
answers163
viewsHow Can I Record an Audio with Android API Audiorecorder In Delphi Pascal
I have a small project where I need to record an audio by the android API through Delphi with Pascal, but I haven’t had much success in my codes. Could someone help me in this dilemma? what I have…