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
-
7
votes1
answer1317
viewsJava encryption with AES, how does it work?
I have found several examples by Google, but none that explains how a java encryption works with AES... How it works? In an example of the net, the guy quotes that he has to use a key, but it…
-
7
votes2
answers4442
viewsHow to delete a specific Listview item?
I would like to ask a question: I have one ListView, in which his Adapter is clarified in the same Activity and the content of Adapter (as strings) are in another class, in another package. How do I…
-
7
votes2
answers1074
viewsIs it efficient to check file modifications by Hash?
Setting I need to implement a file change check between 2 points in my application. *¹ Point 1 - Server - I have a folder where are some product images; Point 2 - Mobile Device - I have a catalog…
-
7
votes3
answers3288
viewsWorking with delay’s on Android. Best approach?
Doubt I recently needed the use of a delay in my application to run certain code, after some time. Searching "over the internet", I found some "Gambi’s", and I found a somewhat new approach for me,…
-
7
votes2
answers1160
viewsHow to develop a private Restfull API?
I need to develop a Restfull HTTP API in PHP to serve as authentication for users of an Android application, the problem is that as it is a public distribution application I can not define any key…
-
7
votes2
answers3969
viewsMy App does not appear on Google Play on tablets
I developed an application, after I published it on Google Play, I stopped by mobile and installed correctly. However, when access by tablet, the application does not appear listed, if access by PC,…
-
7
votes2
answers2322
viewsHow to save/recover image in memory on android?
Hi, I have a Array of Bytes which is a image, from it, how can I save in the external memory and if there is no save in the internal memory android? and then how can I be recovering this image? I…
-
7
votes1
answer5620
viewsHow to make an expandable Listview?
I want to make a ListView only that customized, clicking on it will open a tab below to show more information and the next item of ListView will automatically descend a little to the open tab,…
-
7
votes2
answers56744
viewsRun apps in Android Studio through mobile by USB
Does anyone know how I can set up Android Studio to run apps on the connected USB on mobile? I’m currently using Genymotion and I was wondering if there are any compatibility issues. I tried to…
androidasked 9 years, 10 months ago Luiz Henrique Ugliano 651 -
7
votes4
answers10421
viewsHow can I get a date (day, month, year, time, minute, and second) converted into milliseconds in Java?
How can I get a date in milliseconds? Example: 24, Sat, Jan, 17:39:50 2015
-
7
votes2
answers579
viewsIs it possible to use stylesheet in an app?
I’m starting a development in Eclipse, however the style is very ugly, borders, letters etc. You can use CSS on Android?
-
7
votes1
answer9427
viewsI can’t update my app on google play?
I know it is necessary to change the version number, but when I make the change and try to generate an apk gives error and shows me a message... Error:XML version "2.0" not supported; only XML 1.0…
-
7
votes1
answer3466
viewsHow to use include other Android Layout?
Hello I would like to know how to use the Include Other Layout and what it’s for.
-
7
votes4
answers1152
viewsIs it possible to build an HTML5 app for Android with Material Design?
I wonder if it is possible to develop an html/css/js app for android using material design. If not, is there any framework that has the look?
-
7
votes2
answers8611
viewsHow to justify the text in a Textview?
It is possible to justify (align) the text of a TextView? Besides justifying, I want to apply other types of formatting.
-
7
votes1
answer4382
viewsSplit the app screen into two layouts
I’m looking to split the screen of the phone in half. I have two LinearLayout the same size, but it seems that the only way to do this, is to put the size on the property…
-
7
votes1
answer578
viewsZoom with fingers on app
I saw that there is zoombutton and zoomcontrols in Android Studio but I analyzed none zoom with fingers. How can I zoom in with my fingers on an Android app?
androidasked 9 years, 4 months ago Tiago Coelho 739 -
7
votes3
answers1559
viewsMap show current location
I would like to know how to make the map show the current location of the user. I created this code that apparently was working, only sometimes it fails to catch the location and application of the…
-
7
votes6
answers8471
viewsDo not open keyboard automatically when on screen with Edittext
I have a screen with a EditText ai whenever I enter it already opens the keyboard. I wanted you to only open the keyboard when I clicked on it. I tried that but the keyboard is not opening at all:…
androidasked 9 years, 3 months ago Ilgner de Oliveira 1,098 -
7
votes2
answers7090
viewsHow to definitely remove a project in Android Studio?
I would like to definitely remove a project from Android Studio, I notice that on the homepage below, if you have a selected project and press Delete, the project is removed from the list, but I…
-
7
votes2
answers13793
viewsBlock android rotation
I developed an android app but I need it to just stand up can not lie down... What would be the best way to block the rotation ? Thank you
-
7
votes1
answer609
viewsHow to compare "set" images in Imagebuttons?
Personal how do I compare whether the drawable image "set" in an Imagebutton is equal to null for example, or the other Image contained in another Imagebutton? ImageButton q1 = (ImageButton)…
-
7
votes1
answer3041
viewsCheck if an application is installed on the device
I need help to check if an application is installed on the user’s device. Situation 1: I need to perform a search on the user’s mobile and check if there are any installed applications. If you find…
androidasked 8 years, 10 months ago dnsfirmino 401 -
7
votes2
answers5978
viewsBest practices when presenting Android loading screen
The best known and widespread approach to show the user that a request to the network is happening and make it wait until the end of this, has been through the use of the component ProgressDialog.…
-
7
votes3
answers1117
viewsHow to use Gesturedetector?
I would like a practical example for this method, because I want you to detect left motion run a command and if you go right run another command. Searching the net I found this code seems to be…
-
7
votes1
answer183
viewsHow to move an enlarged image with finger in Imageview?
Based in that answer to the question when zooming in, how to move the image with your finger to see the other part of the image.…
-
7
votes3
answers617
viewsCreate temporary lock on the app
In the app I’m developing there is a usage policy, and if this policy is scammed I want to suspend the use of the app for 30 mins, how can I do this?
androidasked 8 years, 6 months ago Mateus Carvalho 1,494 -
7
votes2
answers6247
viewsHow to get the current date/time, independent of the device?
Well, I know that when you create an object like Date: new Date(), the time and date of the device is returned, so if I arrive at settings and change these values, then the time returned will be…
-
7
votes1
answer792
viewsHow to change the shape of the button with an animation
I need to make a login screen and on the login button I have to change the format like this image I would like to know how it is done, thanks in advance.…
-
7
votes6
answers18836
viewsRemoving Titlebar from the android app
I’m starting on android, and know very little! I’m developing slowly and with each change I save the apk and see it running on my phone. I noticed that there is a bar in the app with the name of the…
-
7
votes3
answers121
viewsHow to avoid connection from stopping the application?
I have an Android app that sends data to a server via wireless, by sending changes from Activity B to A. It turns out that when the connection is weak the application stops and gives the error…
-
7
votes2
answers927
viewsReturn reading in JSON
I can read the return of json in the format [{"celular":"123456","_id":"1"}] The code that works with the json above is this: public static void MakeJsonArrayReq() { JsonArrayRequest jreq = new…
-
7
votes3
answers3385
viewsWhat are asynchronous processing and synchronous processing?
I’m having this doubt while I’m studying about the class Handler. In the book it says that when a Thread is being used to perform some asynchronous processing and need to update the graphical…
-
7
votes2
answers1075
viewsSend camera image to server by Retrofit
I learned how to send a picture of the folder drawable to my network server using lib Retrofit, but I’m not getting it from a ImageView, received from camera capture. I create a class that converts…
-
7
votes1
answer11268
viewsWhat is the programming language for creating Android apps?
What programming language is used to create most Android mobile apps? For example, guide applications, questions etc...
-
7
votes1
answer782
viewsNotification at 0h00 without starting application
I would like to notify the user that he has an expense that expires the next day, but without the need for the application to be running, currently I have a code that notifies from the moment I…
-
7
votes1
answer1916
viewsHow does Firemonkey(Delphi) compile for Android?
I did some research but did not get good results, the project folder looks like a common Delphi or C project++! VCL - Delphi FMX - Firemonkey Observe: With the exception of the folder Android, where…
-
7
votes1
answer6022
viewsHow to crop a gallery image or photo taken by the camera, save and upload to an imageView
I would like to know how to cut an image from the gallery or photo taken by the camera, save and upload to a imageView, to be able to do that for the gallery option of intent, but for the camera…
-
7
votes2
answers4969
viewsAndroid: read JSON data
I have a url that gives me the data in this format: {"to": "DKK", "rate": 7.4417, "from": "EUR"} I’m trying to read them this way: JSONObject obj = new JSONObject(); JSONObject obj2 =…
-
7
votes1
answer181
viewsIs the "Row ID" equal to the primary key?
The function Insert of Android returns a row ID according to the documentation, the Row ID of the Newly inserted Row, or -1 if an error occurred To row ID corresponds to the primary key, ID, if…
-
7
votes1
answer171
viewsAndroid - What is the difference between String and Editable?
When using the Edittext view, I saw that it returns an Editable data type and not a String. And it has different methods like getEditableText(). What is the main difference between String and this…
-
7
votes1
answer953
viewsHow to uninstall an app automatically before installing again?
I am using Android Studio to test and debug my application with the librarys, but the application is not overlapped properly, so I need that, before installing it, it be removed. I tested with the…
-
7
votes3
answers525
viewsStandardization of "String Resources" nomenclature
To support internationalization, the Android has "features" files called resource in XML, containing the texts to be displayed in the application. By default, the file /res/values/strings.xml has…
-
7
votes1
answer4956
viewsHow do I open the android camera and take the photo and upload the photo to the server?
I have a problem in the application it opens the camera but does not upload hold can see where I am missing follows the code public class MainActivity extends Activity{ //chamar quando a atividade é…
-
7
votes2
answers151
viewsHow to remove Progressbar margins?
I added a ProgressBar simple to a LinearLayout, however I noticed that it generates a margin above and another below, such as this in the image: These two white tracks, I tried to remove anyway, the…
-
7
votes2
answers6930
viewsWhy doesn’t my image appear when running the app?
I have the following xml code in Android Studio: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:app =…
-
7
votes1
answer740
viewsSqlite and Mysql synchronization
I have an application in which I have a database using Sqlite and an external service using Mysql. Basically it’s a task application, where I can create a task in mode offline. When the user has…
-
7
votes1
answer1682
viewsInput type file does not work in webview
I have an HTML page that has a form of upload imaging in Chrome on pc or any browser works but in my app that has a WebView that opens this page then click on Choose file he does nothing. It is…
-
7
votes1
answer1549
viewsDaily notifications at a specific user-defined time
I created a method to send a notification to the user with the name sendNotification() using NotificationCompat.Builder and NotificationManager. I need this notification launched every day at…
-
7
votes2
answers88
viewsHow do I detect that the headset has been plugged in?
I’ve been watching that every time I "plug" the headset in my smarphone, a notification from Deezer (a stream music) already telling to click and to open the application. According to the…