Most viewed "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
-
22
votes1
answer68862
viewsHow to generate a . apk file in Android Studio?
If it is already generated in which folder it is located?
-
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 10 years, 1 month ago Luiz Henrique Ugliano 651 -
9
votes1
answer38768
viewsClick the button and open another Activity
I am developing an application in JAVA , and will have 2 options for the person to choose, I want when she press in 1 of the 2 buttons open a new Activity in the application, Can anyone please tell…
-
24
votes3
answers36150
viewsHow to use Mysql on Android
After some searches, I saw that the only database that Android can use is Sqlite, It is correct this information? Because I have an application that connects to an online database (Mysql) and would…
-
3
votes2
answers35944
viewsTaking time in format: HOUR:MINUTE:SECOND
I currently use this code: // Pega a hora Date hora = new Date(); hora.getTime(); He returns it to me: Thu Aug 28 21:55:42 BRT 2014 I would like a way to get only hour, minute and second. How to do…
-
11
votes2
answers35240
viewsHow to develop programs for Android through Python?
To develop programs for Android in Python it is necessary to build a framework in such a way that the application is executable on Android phones? I am new as Android programmer, I am studying and I…
-
4
votes3
answers29445
viewsHow to check if the String is null or blank in Java / Android
I went through this problem implementing a simple library of database queries sqlite in android and would like to share the solution with the community, I believe it will be useful since I have…
-
4
votes1
answer27672
viewsIs it possible to replace my car alarm control with an app?
I’m starting a personal vehicle automation project. At first I will use the native features of my Smartphone, not to need to implement any circuit in the car a priori. I got a Galaxy S4, and a car…
-
11
votes1
answer25900
viewsIs it possible to create Android apps using HTML5?
I really wanted to start developing applications for Android phones, but I have almost no knowledge about the operating system SDK, I have more knowledge about HTML, Javascript, CSS. I have in mind…
-
21
votes2
answers22046
viewsWhat is the difference between px, dp, Dip and sp?
What’s the difference between px, dp, dip and sp on Android?
-
0
votes1
answer21877
viewsHow to wake up the screen only by touching the android screen
It would be possible to wake up a device with Android Operating System just by touching your screen, without pressing any physical button like Power or Home, such as on Nexus 5 and LG G2, where a…
-
2
votes1
answer20811
viewsForced cancellation of an existing connection by the remote host
So guys, I’ve been breaking my head with this problem in Android Studio: 1 - I’ve already started adb:…
-
2
votes1
answer20804
viewsHow and where to add image by Android Studio?
Which folder to put the images I want to add to my app? In drawable? And how to add via Android Studio?
-
156
votes7
answers20768
viewsHow to protect source code?
I am thinking of making an application to sell, I would like to know how to protect my source code to keep my software safe. I saw the Java bytecodes, stored in the file .class are easily converted…
-
4
votes4
answers20361
viewsAndroid Studio emulator with AMD processor
I’m trying to start developing apps for Android, but unfortunately I’m having some problems using the Android Studio emulator when it comes to testing the app. Basically while trying to run I get…
-
1
votes2
answers20153
viewsHow to disable android home button
I need to disable the use of the physical button of the Android device (preferably versions higher than 4.0). With researches I found some solutions such as removing actionbar, leaving the…
-
4
votes1
answer19780
viewsHow to install . apk apps via adb?
I need help, I would like to understand how to use CMD for this and why they say it is more effective than downloading a file scanning software and installing directly on the device. I basically…
androidasked 10 years, 6 months ago paccamicio 163 -
9
votes6
answers19681
viewsHow to fix this error "Error cannot resolve Symbol R" in Android Studio
I imported a project made on Eclipse to the Android Studio and errors appeared in the code regarding the R with the following message cannot resolve Symbol R How to correct this error?…
-
3
votes2
answers19503
viewsWhat is foreground and background on Android?
I wonder what means first or second plan on Android.
-
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…
-
24
votes2
answers17995
viewsWhat is a context on Android?
What is a context on Android? What’s the difference between getContext(), getApplicationContext(), getBaseContext()? Has some relationship with getActivity?…
-
5
votes2
answers17946
viewsHow to delete apk posted on Googleplay
Hello, I developed a game in Gamemaker and published in Google Play in the category "For the whole family" but this fact caused the Admob advertisement to stop appearing in the game. There was no…
-
10
votes3
answers17841
viewsImporting library in Android Studio
How to import a library into Android Studio? I have a project on Eclipse that uses libraries: zip_file library downloader_library needed to add APK Expansion Files to an application that has more…
-
16
votes9
answers17662
viewsError: R cannot be resolved
I am creating an Android project and am facing the following error in my IDE. package br.com.app; import android.R; public class MinhaApp extends Activity { @Override public void onCreate (Bundle…
-
0
votes2
answers16937
viewsHow to change background color
I wanted to change the background color of an activity, I’ve seen some topics here but without success. When selecting in the spinner the activity color will be changed to black, or white. How do I…
-
1
votes2
answers16877
viewsHow to pass data from one Activity to another
I am creating an app for pizzerias in my city and would like to know if it is possible to send data of a Listactivity that contains pizza names for another Listactivity named favorites, so that…
-
10
votes4
answers16860
viewsHow to get the current location of android device?
I am developing an android application that needs to get the current location of the device (Latitude, Longitude) and use this data in google maps...how can I do this? If you help me get only the…
-
8
votes1
answer16812
viewsHow to change the compiled application name?
How to change the name "app-release" that gets after compiling the android app ?
-
12
votes3
answers16185
viewsCalculate difference between dates
I need to calculate the difference between the registration date and the current date, if it is greater than 6 months, return boolean. I am registering at the bank the registration date as follows:…
-
20
votes1
answer15905
viewsHow to rescue the GPS location in coordinates, from all users of the application?
Explanation/Scenario: I am developing an application that must redeem in real time the location of users of the same, and these users aware of this, will also, access the location of other users, in…
-
3
votes1
answer15733
viewsHow to change the name in the android app package?
The current name of my package is com.newapp.nomedopacote. Well, in case I want to change it to com.newapp.novopacote, without damage to the application. I tried to simply make a refactor and it…
-
7
votes1
answer15634
viewsOpen Facebook app by a web link on Android
I have a mobile site that the user can only access by logging in with Facebook. O SDK Facebook para Web (Javascript) works well, but the user always has to log in, because he is not always logged in…
-
10
votes4
answers14893
viewsAdvantage and advantage between onClick and setOnClickListener
I have a certain situation where we see that it is possible to create in the XML file a property called onClick: onClick: XML: <Button android:layout_height="@dimen/edittext_min_height"…
-
16
votes6
answers14835
viewsAndroid app development: what are the tools and language to start a project?
I would like to venture into creating apps for Android. At first I would make one just for own use. What tools would I need to build my development environment? My application would use database,…
-
1
votes1
answer14680
viewsCentralize a textview
I have this layout in my app: And I’m raising him like this: TextView txtCategoria = (TextView)LayoutInflater.from(this).inflate(R.layout.text, null); txtCategoria.setText(listenerCategoria.nome);…
androidasked 9 years, 11 months ago Ilgner de Oliveira 1,098 -
6
votes1
answer14394
viewsDecrypt db.crypt files
I wonder if there is any way to decrypt files with the extension db.crypt in general, on the Android platform and there is some API that does this work?
-
6
votes2
answers14324
viewsCheck whether the string is null or empty
How do I check if my variable is empty or null? // Inserção Nome = tf_Nome.getText().toString(); Tipo = tf_Tipo.getText().toString(); Estoque = Integer.valueOf(tf_Estoque.getText().toString());…
-
2
votes1
answer14245
viewsHow to change the application version in android studio?
I’m about to launch an app and know that at some point I will make updates, but I did not find in the tool the location to change the app version, since it is different from Eclipse ADT, which was…
-
1
votes1
answer13964
viewsIF condition inside an Oracle SELECT
There are other questions in this context, but I am a layman and do not understand. With this, I need help. I have a SELECT for searching data in a database ORACLE, but I must make a condition IF…
-
2
votes1
answer13850
viewsWorking with Radiobutton and Radiogroup
I’m trying to make a screen where the user would have to choose between the options on <RadioButton and if he chooses the right one counts for the right one and otherwise for the wrong one,…
-
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
-
15
votes2
answers13776
viewsWhat’s the difference between Apache Cordova and Ionic?
I have some questions regarding Apache Cordova and Ionic. Both, to me, seem the same thing with the same purpose, allow the creation of hybrid applications for mobile devices. See that in the ionic…
-
5
votes5
answers13518
viewsHide the keyboard
As soon as the user clicks on one of EditText from my Android app, the keyboard appears, however, it does not disappear when you finish typing and click off it. I would like to know which method…
-
2
votes2
answers13385
viewsAndroid Studio - non-ASCII Characters
I bought a project for android studio. when opening appears the following error. Error:(14, 0) Your project path contains non-ASCII characters. This will Most likely cause the build to fail on…
-
2
votes1
answer13343
viewsANDROID_HOME Linux Environment Variable
I am having problem with the environment variable ANDROID_HOME, whenever I try to run the command to run an app in the emulator (or mobile connected), this error message appears Error: Failed to…
-
29
votes3
answers13164
viewsWhat are the default sizes of android images?
I’m creating my first app on the Android platform and as far as I know one of the negatives of this platform is that existing devices on the market have different screen sizes. I created a project…
-
14
votes1
answer13158
viewsDeveloping Android apps using Python
Is it possible to create Android apps with the Python language? If yes, how does it work?
-
14
votes2
answers13123
viewsIdentify if set of coordinates is within a radius on Android
I want to delimit a radius from a central coordinate (the red marker in the figure) and, from a set of coordinates (the green markers), check that these are within the area bounded by this radius.…
android mysql google-maps google-maps-android-api-2asked 9 years, 10 months ago Geison Santos 4,428 -
1
votes3
answers12679
viewsHow to change the color of the boot via code on android?
How to change the color of the button via the code, because when touching the button I want it to change the color, the color is inside the drawable.
-
6
votes2
answers12679
viewsWhere to find the android database path?
SQLiteDatabase BancoDados = null; String NomeBanco = "Cadastro"; CriaBanco(); public void CriaBanco(){ try{ BancoDados = openOrCreateDatabase(NomeBanco, MODE_WORLD_READABLE, null); String SQL =…