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
-
3
votes1
answer77
viewsWhy do the app files remain after uninstallation?
I was reading about storage on Android, I realized that there is the internal app (/data/data/package/files) and the external (that needs permission). On the outside, we have the public and private…
androidasked 6 years, 9 months ago underfilho 600 -
3
votes0
answers124
viewsHow to return a specific field of a SOAP WEB SERVICE
I need to return a specific field of this web service: mainactivity class: package com.example.paulogabriel.test_app; import android.app.Activity; import android.os.Bundle; import android.view.View;…
-
3
votes2
answers360
viewsAndroid, how to do security in JSON?
Use Volley to make POST request to a url that returns user data... But you can see this data, creating a simple html form with action set to the url 192.168.0.101/project/user.php . Ai shows all the…
-
3
votes2
answers324
viewsWhen to call super.nameAll when override(override) a method?
In one class we have several methods superimposed with the @Override, and in some, for example onPreExecute of an extended class of AsyncTask, comes with the super.onPreExecute(). @Override…
-
3
votes2
answers224
viewsLoading the web version of a website and not the mobile version into a Webview
How to press the WebView do Xamarin.Android a full site? It is bringing the mobile version. Example: I’m talking to WebView go to https://www.meusite.com.br And it’s bringing:…
-
3
votes1
answer1726
viewsChange color of radio button
I have an application that has black background. In one of the screens of the application I have a RadioButton. I need to change the color of this Radiobuttom so that it appears on the screen.…
-
3
votes1
answer2198
viewsandroid QRCODE reader
Guys, I need to put a qrcode reader in my android app, can someone give me a hint? I don’t want it to open another app, I want it to be within the app itself
-
3
votes2
answers340
viewsDifference between Java Arrays
What is the problem in Android of not setting the size of the array? I’ve seen in several places that it should be started with a default value. What’s the internal difference of doing this:…
-
3
votes2
answers4128
viewsHow do I search (SELECT and WHERE) in the firebase database?
I have a database like this: { "message" : "Hello, World!", "reserva" : [ null, { "codreserva" : 123, "email" : "[email protected]", "status" : "check in" }, { "codreserva" : 124, "email" :…
-
3
votes1
answer177
viewsHow to remove a Custom Dialog title?
I have this Custom Dialog And I’d like to know how to take that part of the title because in this case, it’s unnecessary. Code private void acertou() { final Dialog certo = new Dialog(this);…
-
3
votes1
answer1717
viewsAndroid studio does not display the devices to emulate
Android Studio not displaying the emulator that is on the pc nor by usb device on mobile how to fix it. follows an image to assist, as you can see no devices appears.…
-
3
votes1
answer173
viewsEvent by clicking on a Google Maps marker
I wonder if there is a way to put event in Google Maps markers to open a custom information window, such as a Fragment, for example.
-
3
votes1
answer1397
viewsOpen camera/file by Webview
I made an application to open my responsive site using Webview from Android Studio. Wheel ok, but when I need to send some file through the site, take a photo and save, do not open the camera!…
-
3
votes1
answer109
viewsOpen a directory
I’m developing an application that when I click on a button it exports my entire database to an excel file, this file gets inside a folder created by the application itself, this folder created gets…
-
3
votes1
answer40
viewsHow to limit Drag and Drop to certain views only?
I wonder if I can control what goes into my layout (DROP) Because of the image view below I wish only "imgu" could enter my layout, the rest not: findViewById(R.id.imga).setOnLongClickListener(new…
-
3
votes1
answer162
viewsError while switching Activity
Good evening, I have an app with two Activity that loads external data, and I’m having trouble changing Activity before it loads all the data.When I call Activity Category, it loads external data,…
-
3
votes1
answer732
viewsSelecting a Radiobutton from a Radiogroup, according to one condition
I have a radiogroup and according to one condition should be selected one or the other. How to make it go up to the screen as described below? Code: private RadioGroup mSwitchButtonGroup; private…
-
3
votes1
answer2946
viewsHow to transform this Json into an object Arraylist?
I am working on a project where I am doing a database query and need to return a list of users from the database to be listed in my application. I have the following Json line (returned by the…
-
3
votes2
answers3831
viewsHow to use vectors/arrays in Java?
Hello, I am very layy in Java and need to use a variable storing several others. How can I do this? I have the following: LatLng ponto1 = new LatLng(-19.924312,-43.931762); LatLng ponto2 = new…
-
3
votes1
answer689
viewsHow do I make my app appear in the android menu (share via)?
How do my app appear on this screen?…
-
3
votes1
answer32
viewsReplace or process obsolete method
I am updating an Android application and I came across the following situation: I have a minimum sdk of 21 and target of 27. A method that has been deprecated version 24. My question is this: what…
androidasked 6 years, 4 months ago Felipe Martins 39 -
3
votes1
answer1313
viewsCreating custom Toolbar, action bar
Guys I’m creating a separate Toolbar to facilitate the development I’m looking to make a very simple Toolbar but I can’t how I want to do: http://prntscr.com/cuipex my code: <?xml version="1.0"…
-
3
votes1
answer731
viewsReturn data obtained in Onresponse
How do I make the return of this String rest? If I give the Return there it does not accept... and if and at the end of the method and use an auxiliary variable runs the risk of returning a null.…
-
3
votes1
answer48
viewsPublish applications in Stores that differ by small details
I see some applications that are very similar I will say until identical but with a different mark or a small detail. Let me give you an example: Globosat has multi-channel apps, but it’s all the…
-
3
votes1
answer116
viewsHow to change the background color of Popupmenu?
To change the background color of the Popupmenu and set the height of the shadow. The only result I had was setting the popupBackgound in Styles.xml the problem is that it loses the shadow.…
-
3
votes1
answer979
viewsHow to change the color of the icon in drawable layout on android
Hello, I need to change the color of the icon q triggers the Drawablelayout menu, but I can’t find the property or where I can customize this icon. How do I change the color of that icon? Where do I…
-
3
votes3
answers1120
viewsAlign visual components
I’m having trouble aligning the buttons/icons on my Active. I’m using relative layout to position the buttons, but when compiling it gets out of order. Follows the code: <?xml version="1.0"…
-
3
votes0
answers67
viewsHow to use a two-dimensional array to pick up the values of radioButtons?
I’m developing a quiz game in Android Studio with 10 activities. For each question I have only two alternatives where there would be 1 for the chosen alternative and 0 for not chosen. I would like…
-
3
votes2
answers604
viewsCommand prompt with React-Native
People progamo em React - Native and every time I access the CMD to run the React I have to do a series of procedures that I will write below Does anyone know any way to create a bat that already…
-
3
votes1
answer298
viewsHow to set SELECT values in Textview?
I have the following class for bank appointments: package com.example.tais.books.Dados; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase;…
-
3
votes1
answer585
viewsHow do I get Timepickerdialog to start with the current time?
I made a TimePickerDialog, but I can’t get him to start the current time, always calls 00:00. I’d like to know where I’m going wrong. Code: private void chamarTimePickerDialog() {…
androidasked 8 years ago Lari Souza 39 -
3
votes2
answers129
viewsKotlin for Creation and Apis: Only for Android?
I saw some features offered by the Kotlin tool, especially when it comes to saving lines of code and verbosity generated in Java. How is the tool to generate services and be consumed by web…
-
3
votes0
answers131
viewsloadUrl finishes (crash) the app on Android
When using WebView.loadUrl(url); on Android or in some versions of Android the application finishes alone ("crash"), in case the failure occurred in versions 6 and 7 of Android. Notes: The Host GPU…
-
3
votes2
answers118
viewsWhat is the difference between getRating() and getProgress()?
According to the documentation getProgress returns the level of progress of the rating bar, while getRating returns the number of stars of the rating bar. So in general terms getProgress returns a…
-
3
votes0
answers193
viewsHow do I save a Google Maps map for offline use?
I am making an application that uses the Google Maps API for Android. The problem is that it only displays the map if it is connected to the Internet. How can I download the map of a certain region…
-
3
votes1
answer98
viewsHow to remove this shadow that appears when it reaches the "end" of the screen?
How do you remove this shadow using Android Studio? It appears when you finish scrolling the page.…
-
3
votes0
answers108
viewsError when connecting external database
The following error appears E/MYSQL: Erro: java.lang.ClassNotFoundException: org.sqlite.JDBC.Driver E/MYSQL: Erro: java.sql.SQLException: No suitable driver E/MYSQL: Erro:…
-
3
votes1
answer131
viewsJSON with value - Null App List
I am creating an App, where it will present some information from an external database using a JSON file so that I can present this information in the App. However when I run the code, the list in…
-
3
votes1
answer40
viewsButton does not call web service method
I’m having trouble calling a method from my webservice,this method I send the boleto by email to the user, for some reason it’s not working. I have a listview with all the boletos and the user…
-
3
votes1
answer69
viewsError while adding Progressidialog
I’m having trouble adding a dialog in this listview method, there is another way to make it work? listDebitosPendentes.setOnItemClickListener(new AdapterView.OnItemClickListener() { dialog =…
-
3
votes1
answer573
viewsHow to open a URL directly from the notification
I want to clear an application to open Urls that redirect to the Play Store and I want you to just load the direct URL in the notification without Bir any layout, and appear in the android intent…
-
3
votes3
answers62
viewsError with "Method"
I am trying to run a button and it accuses of the following error: java.lang.Illegalstateexception: Could not find method java.view.Tools (call_Desligar)(View) in a Parent or Ancestor Context for…
-
3
votes2
answers62
viewsMisaligned images
I’m using the following .xml as a main screen: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent"…
-
3
votes1
answer50
viewsOpen new screen with clicked user options
I have a listview and in it I put all the users of the bank, I use a adapterView to get the position and the id, but I do not know how I will open a new screen for the advanced options for each…
-
3
votes0
answers117
viewsError Webservice PHP + Android
I have a webservice in php: <?php// incluyendo la librería de nusopa require_once('./nusoap-0.9.5/lib/nusoap.php'); // Configurando el web service $server = new soap_server();…
-
3
votes0
answers83
viewsXamarin Android - Create a line where your finger goes
Hello, I would like to create a straight or rectangular, where my finger goes. Actually, it doesn’t have to be exactly where you go, but on top of every button I pass the finger it will increase the…
-
3
votes2
answers162
viewsHow to make an object in Listview have an absolute position?
I have a listview with several items, I also have right up a searchView to perform a filter on these items, being they "clickable", starting another Activity. The problem is that the numbering of…
-
3
votes1
answer1371
viewsHow to uncheck a Checkbox when dialing another?
I wish that couldn’t happen. The user clicking on the other CheckBox, disable the one previously marked. Mainactivity.java package genesysgeneration.umouoto; import…
-
3
votes1
answer328
viewsHow do Admob banner fill full width?
Hello zeroes padding of XML and put wrap_content, but the banner of AdMob does not fill all width is spaces as solve? Code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout…
-
3
votes2
answers1315
viewsHow to remove specific markers from a Googlemap
So, this app works like this: the user inserts a journey that goes from point C (collection) to point E (delivery). These points are shown on the map, in the form of markers, as in the figure below.…