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
-
3
votes1
answer4015
viewsAndroid Gradle - Error:Unsupported method: Baseconfig.getApplicationIdSuffix()
When importing a Github project using the Android Studio 3.0.1 I got the following error in Gradle: Error:Unsupported method: Baseconfig.getApplicationIdSuffix(). The version of Gradle you connect…
-
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
votes1
answer80
viewsRun function in android app when a button on a web page is pressed
I have an app (developed in android studio) that gets data from the accelerometer. Now I need to make a web page with a button, when the button of the web page is clicked, the data of the…
-
3
votes1
answer54
viewsBest practices/correct way to upgrade your local base
Good morning, I got an APP started by a colleague in the company. The problem is that I’m not flying yet with android. I need to make changes to the structure of the local bank (With the APP in…
-
3
votes1
answer355
viewsRun Html5 inside Webview android
I have a page in Html5, where I would like to open it in Webview android, but it seems that Webview does not interpret javascript. There is a better Webview? See my code: Mainactivity package…
android html5 android-studio android-layout android-activityasked 5 years, 6 months ago Tiago 2,377 -
2
votes2
answers994
viewsError 403 when trying to "synchronize project with Gradle"
When I open Android Studio, it fails to synchronize the project with this "Gradle", it returns the following error in "Messages Gradle Sync" Error: Could not GET…
-
2
votes1
answer242
viewscan not find Symbol class Builder
I created a project in Android Studio 1.0, Login Activity. I did the following: No Build.Radle compileSdkVersion 21 buildToolsVersion "21.1.1" dependencies { compile fileTree(include: ['*.jar'],…
-
2
votes2
answers130
viewsVideo view overlaying another Video View on Tabactivity Android
I have a TabActivity with two Tabs, both have a VideoView (Man|Woman). When I start one of the Tabs and then switch to the other, the video of the first still running underneath the other video. How…
-
2
votes2
answers1212
viewsHow to make a Listview "Clickable"?
I have a simple phone book system where there’s Activitys to: Register; Edition of the register; Removal of the register; And one last to see all contacts within one ListView. All records come from…
-
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…
-
2
votes2
answers4746
viewsHow to adapt an Android app to various screen sizes?
For example, for example... I want the app on Android to be presented equally both on screens from 5" to 3"... And how do I apply a "scrolling" layout, how to add a scroll to the Android layout?…
-
2
votes1
answer448
viewsList View - returning more than 1 data in a row
I’m implementing a app and I have to have a list view which shall list ALL previously registered "NOTES" using the listing method implemented in the DAO; Each line of Listview must present the…
-
2
votes1
answer971
viewsLayout alignment between classes - Android Studio
I am implementing a program that uses database and interacts by differentlayouts registration and user editing. I’m working with RelativeLayout on all screens. On one of thelayouts, I insert a…
-
2
votes0
answers127
viewsAndroid Studio Internal Scroll Bar Error
use Debian 8 with KDE and Android Studio latest version, in the first project I noticed when scrolling the bar in the properties window or tool palette the screen is not updated. It can happen by…
android-studioasked 9 years, 6 months ago Meio Passado 21 -
2
votes0
answers4090
viewsDigital signature error when updating APK on Google Play
When migrating to Android Studio, it did not work to import my old project. So, and not being a very complex app, I created another one with the same package and exported using the same Keystore,…
-
2
votes1
answer842
viewsAndroid Studio does not display English characters correctly
My project is not displaying any English characters correctly. When I display a string as "no", it displays "no". The strange thing is, when I call the string straight from the res/string.xml, it…
java android android-studio character-encoding configurationasked 9 years, 6 months ago Diego Fortes 357 -
2
votes0
answers113
viewsUsing the youtube android API
I’m in need of a help here with youtube android player, can anyone help me? It’s the first time I use . For example I think I’ve already added the library but private YouTubePlayerView youtube;…
-
2
votes3
answers464
viewsComponents are not in class R
I’m building an agenda, and for that I’ve created a Activity where would be a list of all contacts: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
2
votes1
answer325
viewsLayout distortion in Bluestack
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"…
android android-studio android-layout responsive-layoutasked 9 years, 5 months ago Gabriel Santana Bonatto 319 -
2
votes0
answers255
viewsDoubt about edittext (write and automatically insert ".")
Good evening friends, I’m wondering how do I insert numbers into an edittext when the user type and pass the number 00,000 come that "." Ex: edittext - insert the mileage of your car user - 90,000…
android-studioasked 9 years, 2 months ago Bruno Marna 41 -
2
votes1
answer1491
viewsChange repository linked with android project in Git
Good morning, I created a project in Android Studio, created a repository in Git, did the Share of my project in my repository. Now, I’d like to switch repositories, take this project of mine that’s…
-
2
votes2
answers6461
viewsError opening emulator in Android Studio
I have an error here in Android Studio when I go debug the App in the emulator, it does not open and the following error appears: "ERROR: x86 emulation Currently requires hardware Acceleration!…
-
2
votes2
answers338
viewsHow to create project installation done on android studio
I created a project in Andoid Studio, run it on the right virtual machine, now I would like to "compile" it to install on a real phone. How do I do it? I create a file and step into the mobile? I…
-
2
votes1
answer238
viewsHow can I make my Gridview images to have different sizes
I’d like gridview to stay that way…
-
2
votes1
answer5160
viewsMake a graphic in android studio
Good afternoon, you guys. I’m starting programming on android and wonder how I can build a chart like this: Is there a widget I can drag or do I have to write code? P.s I use android studio…
-
2
votes1
answer296
viewsHow to create new directories in Android Studio?
I am creating an application in Android Studio that has many screens and many files layout.xml. I wanted to organize them into sub-folders, is possible? I tried to edit the Gradle Script, but many…
-
2
votes1
answer313
viewsFragment:error inflating class Fragment
I’m using Fragment to do the navigation "drawer", ie on topics with options, but I’m found this error, but I’m not sure what it is, follows what it says in logcat: 12-22 20:08:25.774…
-
2
votes2
answers3769
viewsSelect theme in Android Studio
When I select a theme in Android Studio, like this Holo I changed, it changes the preview but when I run the application on my device does not change anything. Anyone can help ?…
-
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
votes3
answers10546
viewsWorking with Navigation Bar (smartphone native) and Action Bar BACK buttons (added via Java)
I am Asking this question/answer to help those who may have/have/have some doubt regarding the buttons BACK that are extremely useful in our applications. I will use 1 and 2 to differentiate Action…
-
2
votes2
answers9143
viewsAndroid Gradle Sync failed
I have an old android project and I intend to give life to it. downloaded android studio 2.0 imported my project and nothing worked error message. 14:22:37 Gradle sync failed: Gradle version 2.2 is…
-
2
votes1
answer403
viewsError installing Android Studio
Guys, I have the following error when installing Android Studio: I have already set the variable, and already installed the JDK Even so, the error persists!…
-
2
votes3
answers852
viewsCache.properties, file not found
Hello, I installed Android Studio on my notebook (OS: Windows 10) and when I managed my basic application "Hello World" I tried to run on my mobile and appeared the following error: Error:Execution…
-
2
votes1
answer291
viewsAndroid error while compiling missing lib - System cannot find specified file
Good evening, I had added some libs to my android application, but then I changed my mind and removed them but when I go to compile the code is giving the following error Error:Execution failed for…
-
2
votes1
answer317
viewsonClick on Android
I made a EditText with the attribute text = 100, but when I use my function onClick(), which aims to make the following calculation text - 50, when I click the button and runs the routine my…
-
2
votes0
answers500
viewsIn Android Studio how to view what comes off the screen?
I’m using text and an image with that they comes off the screen but with ScrollView sailing is possible but in Android Studio on the small screen is the phone to follow the design what comes out…
-
2
votes2
answers642
viewsWhen I install apk it is installing more than once the app
I am using Android Studio, while I run emular to install the apk, during the installation occurs to install more than once the app, getting two icons (two apps). How to solve this?
-
2
votes1
answer277
viewsNavigation Drawer without interaction when clicked
I’m using the default menu Navigation Drawer and complemented the method that already comes in the project to open my activities(Atividades). I have already created the classes and called each of…
-
2
votes2
answers1591
viewsError while selecting emulator in Android Studio
Good afternoon. I’m starting to study Android and use Android Studio. I clicked to run the application and appeared the window requesting a new emulator. I’ve done this before on another computer…
-
2
votes0
answers45
viewsUnknown error in android-studio VDM
I’m having trouble creating a device on android-studio because of much searching on the net I decided to put a question here to see if someone can answer. I use Ubuntu 16.04 and the project in…
-
2
votes0
answers611
viewsHow to save an image in the bank
I want to take the image of imageView save in the bank and make the last saved image back when open the app code to transform the image in byte ByteArrayOutputStream saida = new…
-
2
votes3
answers616
viewsHow to hide the title bar? Crash when changing android:Theme="@style/Apptheme"
I’m breaking my head here to hide the bar that gives the name of the app... I’ve tried everything I’ve seen on the Internet, nothing works... and when I change the android:theme="@style/AppTheme"…
-
2
votes2
answers157
viewsIcon SVG created with Inkscape is not properly imported
With Inkscape app, I’m trying to create my own custom SVG icons and then import them to Android Studio. On import to Android Studio I get the following error message ERROR@ line 29 <defs> is…
-
2
votes1
answer530
viewsScroll View on Android Studio, Basic question
I have a very basic question, how do I see the content that is below the Scrollview visible in the editor itself? Since content exceeding the selected resolution does not appear?
-
2
votes1
answer146
viewsDuplicate but different files
Well, there is an error in my application by Android Studio. And the problem is, the interface says that there are two files that are duplicated, but they are apparently different. I also tried to…
-
2
votes1
answer66
viewsInternalization file, how to create?
Good afternoon, someone knows how to create the internalization file on Android ? I want to create a.xml(en) strings, thank you.
-
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?
-
2
votes1
answer56
viewsOrganizing app photos into folder
I have the following code snippet to define the description of the photos my app will take and where the photos will be saved. private File criarArquivo() throws IOException { String descricao = new…
-
2
votes1
answer328
viewsUpdate Sdk Android Studio, Path profile!
I formatted my pc and installed android Studio and have on a drive specifies the folder of androidSdk separate. When updating Sdk, the following error occurs: An error occurred while Preparing SDK…
-
2
votes1
answer574
viewsAndroid - Error with setContentView(R.layout.Home);
Good afternoon, I’m having trouble with setContent it reports the following error: Cannot solves Symbol 'Main' This is happening in the -> protected void onCreate(Bundle savedInstanceState) {…