Most voted "android-studio" questions
Use only for questions about using Android Studio. DO NOT use for Android programming questions in general, so use the [android] tag. Android Studio is Google’s official IDE for Android application development, based on Intellij IDEA.
Learn more…1,128 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?
-
13
votes1
answer1010
viewsAndroid Studio does not open new project (stay transpatente)
when I installed and tried to open for the first time, it worked perfectly, however, when I tried to open again later, when I click on "Start a new Android Studio project", the window opens, but is…
-
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…
-
10
votes1
answer751
viewsHow to send an audio file from Android phone to computer?
I’m working on an Android app that records the phone call on a mobile device. I just need to send a copy of the audio file to the computer via TCP/IP. I already have a function that sends text to…
-
9
votes1
answer14768
viewsHow to speed up Android Studio + Gradle?
I’m going through the hardest time using Android Studio due to the delay in the project compilation process. What settings improve performance of Android Studio + Gradle?
-
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?…
-
9
votes1
answer610
viewsHow to set up mopub ads?
When you install the plugin mopub in the Android Studio you choose the type of banner ad and it gives you all the code to go pasting in the right place. You perform works right appears in the test…
-
8
votes1
answer16812
viewsHow to change the compiled application name?
How to change the name "app-release" that gets after compiling the android app ?
-
8
votes1
answer723
viewsCreating a Java Interpreter for android?
I am developing an android application where it will be possible to write a java code and run... something similar to the visualg. then I did something different than most tutorials on compilers and…
-
8
votes2
answers964
viewsProblems with importing libraries
I started developing for Android in my work and I was asked to start exchanging some simple things from an existing project, which works and has even been released (the version I’m trying to test).…
-
8
votes1
answer416
viewsCordova + Crosswalk
I created a normal Cordova project: cordova create myApp com.myapp myApp then I entered the project folder cd myApp added the platform: cordova platform add android and added the crosswalk plugin…
-
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
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
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
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…
-
6
votes2
answers13289
viewsHow to indent code in Android Studio?
How do I indent my XML and JAVA code in Android Studio? I would also like to know how to increase the source of the code.
android-studioasked 9 years, 10 months ago Everton Luis 1,499 -
6
votes3
answers1383
viewsLegacy of screens - Android
Wanted to create a screen(Activity) base for the android app I’m developing, so that all other screens inherited from this base. Thus, the screen would have an area reserved for the top of the page,…
-
6
votes1
answer424
viewsEncoding problem in project import to Android Studio
I imported a project via SVN in Android Studio. Previously the project was in Eclipse and who took care of the project ended up committing files like .classpath. From then on I started having an…
-
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 =…
-
6
votes2
answers5827
viewsHow to set up proxy in Android Studio?
Company where I work adhered to the use of proxy and I’m having problems using the gradle. Gradle returns the following error : Error:Connection timed out: connect. If you are Behind an HTTP proxy,…
-
6
votes2
answers2168
viewsCompile and run project via command line
I have an Android application developed in Eclipse. I know it is possible to compile and run a project from the console, but I don’t know how to do it. The basic steps to compile a program JAVA is…
-
6
votes2
answers1375
viewsAndroid Studio - No accent appears
Hello, I have a very strange error in Android Studio, suddenly it stopped accepting the accents in the string and comments, when I try to type for example "is" it shows only "a". I’ve tried…
-
6
votes1
answer2441
viewsApplication does not work after generating . APK
I am facing a problem when trying to generate an app apk developed in Android Studio. After generating the . apk to install the app on other phones, the app is installed but does not open. On mobile…
-
5
votes1
answer312
viewsCode Metrics, Analysis and Clone for Android Studio
Guys, is there something similar to Code Metrics, Analysis and Clone Visual Studio for Android Studio? I know Lint exists, but as far as I know he doesn’t measure code complexity, duplicate code and…
-
5
votes2
answers3895
viewsDrawable or Mipmap?? What’s the difference?
Since version 1.1 of android studio appeared a new folder called mipmap with the same features of drawable. What is the usefulness of this new folder?
-
5
votes2
answers928
viewsBest practices in the interaction between Activities
I’m developing an app just to validate the interaction between activities through intents. I created 5 ImageButton with an image for each one. Each button represents a movie and if the user clicks…
android android-studio android-layout code-reviewasked 9 years, 2 months ago Luiz Henrique Ugliano 651 -
5
votes1
answer6725
viewsAndroid Studio does not find JDK during installation. How to resolve?
Good afternoon, I’m trying to install Android Studio on my Windows 7, however it never finds the folder with jdk installed. Even if I point manually, it does not locate. I have already entered the…
android-studioasked 9 years, 1 month ago Toni Cesar A. Amaral 51 -
5
votes1
answer903
viewsAndroid studio generating two apps the same way
I developed an apk, but from the end of the project here he was always emulating two identical applications on my phone, same functions, icons. The difference between one and the other is that one…
-
5
votes1
answer71
viewsConstantly increasing slowness in emulator and IDE loading
Since the installation of the Android Studio, the emulator constantly gets slower with the course of use, and it is not for lack of delete test apps, etc., also the IDE itself begins to slow down…
android-studioasked 6 years, 9 months ago rbz 9,949 -
5
votes1
answer452
viewsIs it possible to compile an app using Java and Kotlin together?
Can I be part of the code in Java and another part with Kotlin? Can anyone tell me?
-
5
votes2
answers197
viewsGet JSON from the URL properly
I have the following method that gives me one String: public static final String jsonClientes = " {\"clientes\": " + " [" + " { \"idClientesT\": 1," + " \"tipo\":\"s\"," + " \"nome\":\"Carlos\"" + "…
-
4
votes1
answer4823
viewsHow do I export an . apk android in Android Studio?
Every time I export the google app from that message: Even though I changed Androidmanifest.xml: android:versionCode="2" android:versionName="1.0.2" Procedure I’m doing: I’m exporting right?…
-
4
votes2
answers131
viewsProject imported from Eclipse to Androidstudio has no R reference
I imported a project from Eclipse for Android Studio, but he has no reference to the old R.
-
4
votes2
answers5553
viewsWhere to create the Assets folder in an android project?
Where the folder should be created Assets? I want to use it to store my sources.
-
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…
-
4
votes1
answer3345
viewsHow to write the percentage symbol on a string in Java?
How to make the string accept the percentage symbol '%' ?
-
4
votes1
answer3125
viewsHow to set up UTF-8 in Android Studio?
This error appeared in Android Studio. Is there any setup to fix? Error:(85, 69) error: unmappable Character for encoding UTF-8
-
4
votes1
answer391
viewsAndroid SDK Build-tools 22.0.1 inventing folders inside res in generated APK
I’m using the Android Studio 1.2.1.1, with the Gradle 2.2.1, and this is an excerpt (the relevant part) of my resource folder structure: res |- layout |- layout-v21 |- values |- values-v11 |-…
-
4
votes2
answers1183
viewsMy layout does not render
I was watching and copying a code from the first class of Material Design of the Thiengo Calopsita youtube, It turns out that the file xml of activity_main and of toolbar_bottom is not rendering in…
-
4
votes1
answer1665
viewsHow to pass information from listview to a new Activity?
I have an agenda about events where I live I can already receive through my database in Mysql and JSON a list with the titles of events. Now I wanted when I clicked on the event to redirect to an…
-
4
votes1
answer142
viewsIs there any way to import a project into Android Studio by fixing the dependencies automatically?
I have had frequent difficulties in importing projects into Android Studio. Whenever I make a new import, the IDE points out several dependencies that are not satisfied and I have to fix them…
-
4
votes1
answer127
viewsWhy the compiler alerts me Anonymous new Runnable() can be replaced with lambda
Because that code (Thread) shows this message (on the compiler), and how to make it not show more? Code: public void onCreate(Bundle icicle) { ... mVideoView.setOnPreparedListener(new…
-
4
votes1
answer181
viewsManifest error after Android Studio upgrade to version 1.4
I am starting on Android now and had not come across this error before, I have tried to see other projects but even so the error persists, I wonder what is causing the error and how to resolve it.…
-
4
votes1
answer1412
viewsHow to create a new Build.Radle?
Since I imported my project from github, I’m trying this error: Migrate Project to Gradle? This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build…
-
4
votes1
answer923
viewsIdentify connection type 3g, 4g and/or Wifi
Good morning! I need to check the type of connection that the device is for example 2g, 3g, 4g or Wifi. Because after checking the type of connection I need to limit the device to perform some…
android-studioasked 8 years, 10 months ago dnsfirmino 401 -
4
votes1
answer1159
viewsImport sqlite database already populated
I’m making an app requires only queries in a database. Since this is a very large amount of data, I think it would be counterproductive to feed this database using a insertOrThrow for each item of a…
-
4
votes4
answers6012
viewsHow to increase memory of Android Studio IDE?
Lately I’ve been developing for Android, and I’ve noticed that the Android Studio IDE takes a long time to load and start. I would like to know, how to increase the memory of Android Studio IDE? To…
-
4
votes1
answer118
viewsHow to use Google Glass in Android Studio
I’m trying to install Google Glass in my Android Studio, but I’m not getting it. When I create a new project, it does not provide me with the Glass option and informs me that it is not installed. I…
-
4
votes4
answers2661
viewsWhen creating folder inside the folder /res it is not visible in the left panel
When I put the name of the new folder and press Enter, that same folder does not appear on the left side of the Project nor can I reference its path. The strange thing is that if I put the folder…
-
4
votes1
answer878
viewsAndroid Studio Installation: Path to JDK
A few weeks ago I installed Android Studio and was developing the project and "accidentally" I deleted some folders that I shouldn’t have (careless on my part). I couldn’t find solution to repair…