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
-
0
votes1
answer6798
viewsView database in Sqlite
Is there any way I can view the Sqlite Database without having to write the command in the application? I would like to see the records inserted in a table, but I do not know if on Android only…
-
0
votes2
answers1663
viewsYoutube video for a video view
I need to pass a video through the link to inside my android app , I tried this code : String video="http://www.youtube.com/embed/76JpysFZ2VM"; Uri uri= Uri.parse(video); vid1.setVideoURI(uri);…
-
0
votes0
answers2228
viewsjava.lang.Runtimeexception: Can’t create Handler Inside thread that has not called Looper.prepare();
What I must do to solve this problem ? private void callServer(final String method, final String data){ new Thread(){ public void run(){ asw =…
-
0
votes1
answer36
viewsElaboration of an application for publishing events
I’m wanting to make an application for events it’s in development more as I will post the posts of the events in the application type will have an event in such a corner I want this event to appear…
-
0
votes0
answers63
viewsProblem with Android SDK Manager
Hello I’m having trouble downloading the extensions from Android Studio…
android-studioasked 9 years, 3 months ago Asafe Gois 7 -
0
votes3
answers958
viewsANDROID: How to identify user screen density?
I want the application to just download the images that are adaptable to the user screen, such as: if the user device supports xxhdpi images, it will not be necessary to store the images of xxxhdpi,…
-
0
votes0
answers58
viewsAndroid Studio - Error trying to open my old projects
I often get this error while trying to open some of my old projects that do not yet belong to Android Studio! Does anyone know the solution to this problem? Thank you. My Android SDK Manager:…
-
0
votes0
answers318
viewsDirectory error in Android Studio
I deleted the folder where the projects were and I couldn’t create any more projects.…
-
0
votes2
answers5089
viewsFind the Sqlite database folder in android studio
How to find the database folder in android studio ? Already tried tools -> Android -> Android device Monitor, the data folder is empty.
-
0
votes2
answers3513
viewsHow to run an application with Database on Android?
I’m starting my activities in the mobile world, and would like to build an application that uses Database for Android platform, an example application so I can move forward, I looked on the internet…
-
0
votes0
answers540
viewsCommunication between Android Studio and Arduino
Good afternoon! I’m making an application in Android Studio and trying to communicate with Arduino through the Apache library, such as "org.apache.http.Httpresponse" and I’m not succeeding. All the…
-
0
votes1
answer154
viewsError adding image to URI - "cannot find Symbol class fromFile"
Guys, I can’t find the reason why Android Studio does not recognize the method Uri.fromFile(). I searched several places but nothing. My code is like this: foto.setOnClickListener(new…
-
0
votes1
answer72
viewsExtract apk to put in playstore
I’m having problems with XML of my colors. When I try to finish the extraction, is giving error, but the application runs on my phone, I’ve done clean and build and that’s okay, but on the other…
-
0
votes0
answers637
viewsHow to read txt files and put your data into a vector
I’m trying to make a code that reads latitudes and longitudes that are in a txt file. I mean, put what’s in the file in a vector and make a loop for to call everyone inside the Polyline. try { File…
-
0
votes0
answers1073
viewsLoad an Activity inside a Fragment with tabHost
I’m starting with the android studio reading some things and watching some videos on youtube, basically what I intend to do is a calculation program to make my life easier in my service, some simple…
java android android-studio android-fragment android-activityasked 9 years, 4 months ago Túlio Barata 11 -
0
votes2
answers60
viewsIntegration of TSF with Android Studio
I wonder if someone has already done or knows how to accomplish the integration of Android studio with TSF. So far only found forms of integras with Intellij.
-
0
votes1
answer47
viewsI can’t create second activity
I can not create a new activity in Android Studio, appears the message "Package name is not a Valid package name"…
-
0
votes1
answer1558
viewsBUG in Android Studio
This error appeared out of nowhere and now I can’t emulate the app on mobile as in the simulator follows the error. Error:C: Users Rodolfo.Gradle caches 2.8 scripts…
android-studioasked 8 years, 10 months ago Vale 2,919 -
0
votes1
answer488
viewsHow to implement a github file in Android Studio?
I would like to implement that file in the Android Studio just go in the import or have to import a specific file.…
-
0
votes1
answer93
viewsListview is not updating, Android
Guys, I have the code below. I created a FloatingActionButton who takes pictures of all the items that are on ListView, but the method list.getChildAt(i). isEnable is returning nullpointer. Some…
-
0
votes1
answer158
viewsHow to remove automatic items from an Activity
In Android Studio, when it comes to creating an Activity, the IDE already places some items inside it, such as that circle with an envelope inside (image). How do I remove it after created the…
-
0
votes0
answers69
viewsRendering problem in Android Studio 1.5
Hey there, guys. How to solve the problem Rendering problem in Android Studio 1.5? I am several days trying and nothing to achieve, since I learned that there are several factors that make occur…
-
0
votes2
answers107
viewsAuthenticate PHP page through the application is not working
I’m trying to make a connection to the MYSQL database to login the user in the android application, I already have some users registered in the database but I’m not able to login with the user data.…
-
0
votes1
answer374
viewsproblems while running android usb in android studio
Does anyone know why this error is happening I can’t run the application on my smartphone with debugging mode enabled and even with the emulator? someone knows, I am new to android and wanted to…
-
0
votes1
answer379
viewsInflate a warning in the view from a Broadcastreceiver
I have an application where it is necessary to monitor, and warn the user when he is not available with the internet. To solve this, I created a Broadcastreceiver and show a Toast when this…
-
0
votes0
answers46
viewsHow to customize Showcaseview?
Hello, I’m having some difficulties to use the following library https://github.com/JesusM/ShowcaseViewLibrary already searched in guides, videos including the proposed documentation. But I can not…
-
0
votes1
answer185
viewsMethod onAttach Android
Guys, I’m having trouble using the onattach. I have a view that is set Visible when a button is triggered. I would like this View to disappear at the end of an operation of a Fragment. Look at the…
-
0
votes0
answers211
viewsInvalid APK on package name posting
I’m trying to generate an apk so I can publish my app in the store, but when I sent a message saying that the package name was invalid, because the name ". android" is restricted. Then I changed the…
-
0
votes0
answers58
viewsOpen android studio app in phonegap? t
I developed an application in Android Studio and would like to export it to phonegap in order to be able to use it for cross-platform. How can I enjoy my project in android studio in phonegap ja…
-
0
votes2
answers300
viewsI am not able to store the correct information of a Radio Button in the database
I’m having trouble storing the correct information of a radio button in the database. When I select the Public option it stores Public, when I select the Private option it stores Public. Can anyone…
-
0
votes0
answers77
viewsError while opening android studio
When I open my android studio it loads the Gradle and then shows the message: `Error:Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing from…
-
0
votes1
answer1616
viewsHow to use the power button on your phone?
I wonder if it is possible to use the power button (on and off) of the phone in an application. Example: Performing some function if pressed the button three times in a row. If possible I would like…
-
0
votes1
answer486
viewsSeveral errors when compiling in Android Studio
I created a project in Android Studio (yes, the Rootear device). I finished the main screen and created the action for the Root button. Pórem, after I created a screen of "Welcome" came up several…
-
0
votes0
answers247
viewsError in app emulation in Android Studio
when I will emulate the application by AVD in android studio, it appears this message, as soon as I click on the button to "Initialize the Virtual device" "Cannot Launch AVD in Emulator. Output:…
android-studioasked 8 years, 6 months ago Gabriel Souza 133 -
0
votes0
answers162
views"more than one device/Emulator" when trying to use the mobile phone in Android Studio
Good morning, I started studying game development for Android and I felt the need to use the smartphone instead of the emulator, I set the adb, the same recognized, but nothing appears in Avd. what…
android-studioasked 8 years, 6 months ago Ronaldo Lopes 453 -
0
votes1
answer388
viewsError synchronizing: Could not reserve enough space for 1048576KB Object heap
This error appears when I try to synchronize my project in Android Studio, how to solve it? Error:Unable to start the daemon process. This problem Might be caused by incorrect Configuration of the…
-
0
votes2
answers266
viewsError adding appcompat-v7 api level 22
I’m trying to add appcompat-v7 to my project, but when I sync with gradle the following error occurs:…
-
0
votes1
answer906
viewsHow to create backups of a project in Android Studio?
I did not find an option to save as and tried to copy the entire folder but as the project generates files with very big name ends up giving error in windows at the time I copy by Ctrl C Ctrl V of…
-
0
votes1
answer149
viewsAndroid studio error 2.2 osx
I recently installed android studio 2.1.1 on my mac. I performed all the necessary settings, only when I start AVD it returns this error: Emulator: WARNING: Increasing RAM size to 1024MB Emulator:…
android-studioasked 8 years, 6 months ago Rodrigo Genu 1 -
0
votes1
answer120
viewsError classse R, Android Studio
After creating a project in Android Studio, the following error appears on the console: /home/nayron/AndroidStudioProjects/MyApplication2 /app/build…
-
0
votes3
answers1127
viewsHow to add Toolbar in Activity without inheriting Appcompatactivity - Android Studio 1.4
Good night. I updated my Android Studio for version 1.4 and by default, any activity used as an inheritance to AppCompatActivity (public class MainActivity extends AppCompatActivity). I developed an…
android android-studio android-layout inheritanceasked 9 years, 1 month ago Luiz Henrique Ugliano 651 -
0
votes1
answer97
viewsI cannot save a query in the Database. Shows error Unfortunately
I’m almost two weeks with this problem in my android code, I already searched in some forums and nothing, so I’m kind of desperate looking for help. I’m new dealing with android, if anyone can help…
-
0
votes0
answers682
viewsAndroid Studio app with Sqlite Java database
I’m developing an app that takes photos and saves it along with a text written by the user himself in the SQL database. For now I can make him take the photo and open the text box for the user to…
-
0
votes2
answers243
viewsGoogle Play Services generating errors
Hello. To add the Google Play Services the dependencies, the image error is shown. I have no idea why, or how to fix it. The error is only shown in the file values-21.xml After remove the Google…
-
0
votes0
answers401
viewsExecution failure in Android Studio (Error:Execution failed for task ':app:preDexDebug'.)
In the execution of my project is occurring the error below and I have already searched in several places, but none fixed for my problem. I hope someone can help me. I’ve restarted Android Studio…
-
0
votes1
answer124
viewslibpng error: Not a PNG file
After I edited the icon of my application and I went around the emulator it appears to me with the following error: I’ve searched for images in another format, I’ve reviewed my code and nothing,…
-
0
votes1
answer876
viewsHow to activate Logcat ?
Hello, I’m making an app where I use Alarmmanager, I need to use Logcat but I don’t know how to make it appear in Android Studio.
-
0
votes0
answers309
viewsRead sqlite table and insert content in listview
I’m trying to insert the contents of a table into sqlite within a listview. The table in Sqlite is already filled, the listview was being filled with result of webservice, which also works ok, but…
-
0
votes0
answers39
viewsProblem assigning an Arrayadapter inside an Onclick container
Method: spnCondPagamento.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { List listaCondPagamento = new ArrayList<>(); for (int i = 0; i <…
-
0
votes2
answers455
viewsgetView() method is not called in the Array Adapter
I am developing an android app and I am facing the following problem, I created an Adapter to fill my Listview but fills only the header and not be entering the getView() method to fill the items in…