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
votes2
answers53
viewsDoubt Listview
I have the following code below where I am with doubt as I do to display the list on the screen, I have tried several ways and I have done several examples of the internet I could not get a correct…
-
2
votes1
answer448
viewsError of Mismatchsenderid
I had several projects on my console. I was able to receive push notification (PN). So I dropped all the projects and created just one. I made an app based on the step by step that a colleague…
-
2
votes1
answer683
viewsHow to make a button record data from a form with click events
I have a form and wish to save it when the button is pressed salvage, the solution I made is not working. public class SalvarFormulario extends AppCompatActivity { EditText Nome; EditText…
androidasked 7 years, 1 month ago Junior Machado 49 -
2
votes0
answers53
viewsScreen updates only once when using multiple socket connections
I’m creating an android application where I trade data with a java socket server on the pc. And in the same application I will open some threads that run servers for a direct connection with…
-
2
votes1
answer56
viewsShared Preferences Android Stidop
I had to watch a tuturial on youtube and copied this code to save and delete entered values, my doubt is that always appears that "0" as below and I would like to know how I can takeit without…
-
2
votes2
answers261
viewsWarning:(40, 5) Do not place Android context classes in Static Fields; this is a memory Leak (and also breaks Instant Run)
I’m coming across this warning from Android Studio. Warning:(40, 5) Do not place Android context classes in Static Fields; this is a memory Leak (and also breaks Instant Run) I have a button that…
-
2
votes0
answers136
viewsDialog Progress Opaque White Background
I’ve been trying for a few days to reach a transparent Progress dialog with an opaque white background equal to the images below but only get to black background opaque in the android pattern I’ve…
-
2
votes2
answers4736
viewsAndroid Studio 3.0 Update Error
Good today appeared an update to Android Studio and as always put to update normally. When I finished updating I asked to download some versions of Radle and things like that, I just installed it to…
-
2
votes0
answers113
viewsEdittext does not open the keyboard inside the listview
A listView within a dialog and put in front of each information one EditText, but when I click on EditText to change the information it puts the cursor inside the EditText, but does not open the…
-
2
votes0
answers84
viewsPick time and notify user
I created this code in Android Studio to inform the hours of the buses here in my city but I wanted the app to inform what the next bus the person could get as soon as she accessed the list view and…
-
2
votes0
answers100
viewsError: Variables debug info not available
Whenever I try to "debug" with Android Studio this error appears: "variables debug info not available". Code in the Gradle: apply plugin: 'com.android.application' apply plugin: 'kotlin-android'…
-
2
votes1
answer54
viewsAndroid/Firebase - Nullpointerexception when setting Query object
Hello, I have a problem while reading the data in Firebase. I use Android Studio 3.0 and Java. I can connect to the database, get the instance, the logged in user, but I’m not able to read the…
-
2
votes1
answer1291
viewsInitializecomponent does not exist in the current context
I have this code, where I have the error [XamlCompilation(XamlCompilationOptions.Compile)] public partial class AprovarPopup : PopupPage { public AprovarPopup() { InitializeComponent(); } protected…
-
2
votes1
answer785
viewsChange the color of a Button that already has an assigned Background
Hello, in my application there is a table (Alert Dialog) that will be used to select the color of a component. In this table there are several equal buttons with the background already set so that…
-
2
votes1
answer518
viewsAttach File to Gmail via Intent
I have a problem... When I try to open Gmail via Intent to attach a file, it pops up the part of writing a new email, but it doesn’t attach my file. The PDF is inside a folder of the app itself with…
-
2
votes3
answers1206
viewsPreview Android stopped working after update
I work on an android project and, after updating to Android Studio 3.0, my project started to give problem. Preview of my activities has stopped working, although the app is built and I can install…
-
2
votes0
answers34
viewsLottie - toggle switch
I’m trying to set up a toggle switch in android studio using Lottie documentation. I got it, but this making a mistake, I need a little help guys. final boolean[] oontrole = {false}; final…
-
2
votes1
answer1331
viewsHow to order a list in alphabetical order?
I own a List<ListaUsuarios> and I want to sort it alphabetically by name My code is like this User class: public class Usuario{ private String nome; private String empresa; private int idade;…
-
2
votes1
answer29
viewsHow to insert a data in your respective Acitivity via Sqlite
Guys I’m making an app on android and inside it has a listiView fixed sent by a string array for example String[] servicos = {"Eletricista", "Pedreiro", "Pintor", "Encanador", "Arquiteto",…
-
2
votes1
answer85
viewsAndroid take data from Imagebutton to send in a post
I have a view type Fragment with a form, in this form I have an imagebutton in which I load images from the Android gallery when I save this form I need to take this image and post in Base64. public…
-
2
votes1
answer81
viewsAutoincremet on Sqlite is not working on Android
Autoincrement is not working on my Sqlite tables. Table: db.execSQL("create table usuario(_idUsuario integer primary key autoincrement, nome text not null, email text not null, senha text not…
-
2
votes1
answer129
viewsData disappears while moving Recyclerview scroll with Firebase
Hello folks I am creating a chat with Firebase and listing with Recyclerview, to list the messages but I am with a problem is that when moving or scrolling Recyclerview some messages disappear,…
-
2
votes1
answer50
viewsProblems with Firebase Insertion
I am developing a native application on Android that uses maps, the insertion is normally happening through the code below. Local is a variable of type LatLng.…
-
2
votes2
answers1102
viewsHow to add an icon at each end of an Edittext?
I want to add two icons to Edittext from android according to the image below. This is the code I’ve used to add the image to the right side. <RelativeLayout…
-
2
votes1
answer3507
viewsHow and where to create files on Android with Delphi
In my application in Delphi I am creating a simple text file on Android, using the following code: var lst: TStringList; begin lst := TStringList.Create; lst.Clear; lst.Add('a'); lst.Add('b');…
-
2
votes2
answers155
viewsChange visibility of xml layout with the change of orientation of the device
I need to change the visibility of an xml layout when the device orientation is from Portrait (standing) to Landscape (lying down). I intend to add 2 columns when performing this action. I used the…
-
2
votes4
answers168
views -
2
votes2
answers162
viewsI can only solve dependencies by using'+' in Library versions
22 Dec 2017 Error that occurred when with Offlinework After switching to Online Work ORIGINAL: I’ve been trying to avoid doing it that way: dependencies { compile fileTree(include: ['*.jar'], dir:…
-
2
votes0
answers122
viewsHow to insert Runtime permission into a webview that gets the user’s location?
So.. I’m starting to create a webview and the site I’m basing on has an option to get the coordinates from a certain location, on the site this works perfectly, but when I put on APP he opens the…
-
2
votes1
answer876
viewsDelay on application startup
I created a cross-platform application using Ionic 2 + Angular 2 according to the Get Started of ionic documentation. The basic command to create a project with side menu is this way below: $ionic…
-
2
votes0
answers1249
viewsGet redirected link internally in android app
Aloha I’m developing an Android app to log in to the wifi network, but I found a barrier. In the application, when the user clicks on the "Log in" button, I need to internally access some address…
-
2
votes1
answer120
viewsRecyclerview scroll position with Firebase
I am listing data from Firebase in a RecyclerView, but when adding or removing data, the data is repeated in the list. I used the clear(); or lista.removeAll(lista); to clear before filling only the…
-
2
votes1
answer38
viewsHttpurlconnection Android + Msyql
The Code works perfectly more I need it without using Asynctask because I call several times in my code every time I finish running(onPostExecute) I call different methods or functions... I need…
-
2
votes1
answer1348
viewsGoogle API - Autocomplete does not bring ZIP
I’m trying to use Google services to get addressing. The idea is to inform the address or zip code and upload the data street, neighborhood, zip code, city and state. I was able to obtain most of…
-
2
votes0
answers398
viewsHow to modify the Navigation Drawer to call an Activity
People I created a navigation Drawer by google gallery (Navigation Drawee Activity) and would like to modify it for when I click the menu instead of calling a file extent Fragment call a normal…
android android-layout android-fragment android-activityasked 6 years, 11 months ago Maria Eduarda 63 -
2
votes2
answers681
viewsError in String to Double conversion
Setting: public void metodoX(Double valor) { DecimalFormat df = new DecimalFormat("0.00"); String valorRound = df.format(valor); Double valorRound2 = Double.parseDouble(valorRound); ... } Error:…
-
2
votes1
answer70
viewsChange of themes through Java
Hello! I have a java code where I would like to change the Androidmanifest themes according to the return of a certain function. Example: Having a boolean function that checks the internet…
-
2
votes1
answer791
views -
2
votes1
answer51
viewsHow to use Shape as drawable in imagespan
I have a Pan image, but it only works with images, when I try to use a Hape the location of the image is as if n has no image, but also does not present any error. String text =…
androidasked 6 years, 10 months ago Igor Oliveira 1,110 -
2
votes1
answer48
viewsAndroid Dagger 2.10 or higher - void inject X @Bindsinstance?
I have a big question about the correct use of Dagger 2.10 or higher for android implementing according to the specifications of the Dagger documentation for Android. Example code: @Singleton…
-
2
votes1
answer539
viewshow to know the latest version of a Google library (dependency) for Android Studio
Generally, when we use features in Android Studio, you need to include libraries, example of a file build.Gradle (Module: app): dependencies { implementation fileTree(dir: 'libs', include:…
-
2
votes1
answer3394
viewsCenter image in the middle of Android screen
How do I align an image in the center of the screen on Android? I’m using the code below, but it’s centered at the top of the screen: <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
2
votes1
answer126
viewsFixed background, no resizing on keyboard
I have the following layout for color, set in background of LinearLayout: background.xml <?xml version="1.0" encoding="utf-8"?> <shape…
-
2
votes1
answer865
viewsChanging the bar color of a Navigation page
I have it: public void Login_Clicked(object sender, EventArgs e) { LoginService svc = new LoginService(); LoginRS res = svc.Login(txtUsuario.Text, txtSenha.Text); if (res != null &&…
-
2
votes1
answer153
viewsEnable navigationbar or create a panel on top of the Xamarin.form tabpage
I have this page (Tabbedpage) that creates two tabs: <?xml version="1.0" encoding="utf-8" ?> <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"…
-
2
votes1
answer585
viewsFirebase data reading always returns null
I’m trying to read data from users who are saved in Firebase, through an Android application. I’m always having null in Textviews, but I see the value in Android Studio’s Logcat. I’ve checked my…
-
2
votes1
answer103
viewsCenter a label on a badge
I’m not able to center a label inside a badge. It seems that the label is outside the badge. See the code: <Grid xmlns="http://xamarin.com/schemas/2014/forms"…
-
2
votes0
answers86
viewsPrecision Radius - Googlemaps
It is possible to identify when the radius of precision is small? In the examples below when I open the application it is very far from my location, with a very large radius, in the next the radius…
-
2
votes1
answer82
viewsAlarmmanager does not run on configured interval
In a method that records a AlarmManager to run every 30 seconds BroadcastReceiver: public void play(View view) { Log.i("lgg", "Botão: broadPlay"); Calendar calendar = Calendar.getInstance();…
-
2
votes1
answer69
viewsError: "Could not find Bookmarkcolumns symbol"
I have a project 3 years ago and I need to make it come back to life, however it is full of complications with updates, I came across an impace that Browser Bookmark Changes was removed. Does anyone…
androidasked 6 years, 8 months ago Marcius Leandro 462