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
-
1
votes1
answer315
viewsGoogle Maps does not load registered points (Java)
Good afternoon, everyone. I’m using Google Maps in my app and was working before but stopped working. The app breaks while the map is being loaded. I’ve researched enough on the internet and no…
android android-studio google-maps android-activity localizationasked 4 years, 1 month ago Laura Regina 304 -
1
votes1
answer34
viewsHow do I for my application gets in the options to open a txt file
I would like to know how I do so that my application comes to is in the list which options to open text file, my application is small only to read and edit txt file for me to train programming, user…
-
1
votes1
answer200
viewsError when buildar for android Ionic
I’m getting the following error: BUILD FAILED in 0s /home/Flavio/helloworld/Platforms/android/gradlew: Command failed with Exit code 1 Error output: FAILURE: Build failed with an Exception. Where:…
-
1
votes1
answer3118
viewsBlack screen in android emulator
I’m trying to start the emulator by android studio and genymotion but in both is a black screen in emulator: It may be my graphics card that is terrible, but would have some way to fix it? Or some…
javascript android android-studio react-native emulatorasked 5 years, 11 months ago Célio Júnior 35 -
1
votes2
answers558
viewsHow to save the value of a variable in Android Studio?
I am developing a small game just for friends and do some tests, the problem is that I know virtually nothing of programming and got stuck in the data saving part. I have read several times and seen…
-
1
votes0
answers79
viewsFirebase Crashlytics: How to debug non-fatal errors?
Hello! Good afternoon, sir. I have an application for Android (developed in Android Studio) that uses lib Mpandroid Chart (a lib for Charts). Like any chart that we want to compile, we first need to…
-
1
votes0
answers16
viewsApp using canvas does not emulate in Android Studio
I made an app in Android Studio, according to codes below, however, when emulating inside an emulator of Android Studio itself, does not run. There seems to be some problem in the Activity instance,…
android-studio android-activity canvas instantiate-object emulatorasked 3 years, 10 months ago CarlosProg 11 -
1
votes1
answer199
viewsproblems with Strictmode.Threadpolicy
Hello, I have the link below http://www.hotplateprensas.com.br/ws/clientest.php that delivers me a string json of the kind { "clientes":[ { "idClientesT":"1", "tipo":"s", "nome":"Carlos"}, {…
-
1
votes0
answers29
viewsProblems with localization request
Hello, good afternoon! I am having problems with the return of my location in my code (it is also not asking permission to the user) CODE OF ACTIVITY public class GPSActivity extends…
java android android-studio google-maps android-permissionasked 5 years, 11 months ago Gabriel Júnior de Souza 13 -
1
votes0
answers85
viewsMedia|Player in the notification area
Well, I’m making one app that has a plugin MediaPlayer to play web radio. I would like to add, when the player was clicked, a prediction of it in the notification area (I think that’s the name) also…
-
1
votes0
answers35
viewsplayer.setDataSource(URL); giving error
I have the code below that opens a URL of Streaming of a web radio and plays/pauses her. Got and bugs in this código I don’t think so and I ask for your help. package carcleo.com.player; import…
-
1
votes0
answers25
viewsHow to view data from a TXT in my arrayList - Android Studio
Currently I do so: ArrayList<produtoItem> lista = new ArrayList<produtoItem>(); lista.add(new produtoItem(R.drawable.imagem, "AA", "AA", "AA", "AA")); adapter = new produtoAdapter(this,…
-
1
votes1
answer1060
viewsUsing Seekbar in a simple way
I am, for study purposes, developing a player in the Android Studio. The player is ready. Now I wish to control it. Researching, I discovered the component SeekBar. But I’m not finding a way to tell…
-
1
votes1
answer396
viewsSmarttablayout : How to use icons on tabs instead of text?
Hello, I’m using tabs in my learning app with the Smarttablayout library, I’m going to leave below an image of how they look (the image is from the internet, but it just serves to show the same…
-
1
votes0
answers44
viewsAndroid voice knowledge
I’m making an app in which I ask a question and the phone answers me as the question asked,but the problem is that the phone listens but does not answer me, IE, does not speak. public class…
-
1
votes1
answer94
viewsWhile() loop validation bug?
I’m trying to set the total of some values I capture in the Sqlite database, so far so good because the values passed in my Arrayadpter is set on the screen without major problems. The problem is…
-
1
votes0
answers38
viewsInterstitial ad with delayed loading
I’m trying to implement an interstitial ad, and I would like it to be loaded before, in the app it’s happening to load along with the action which causes delay and makes the ad appear well after. I…
-
1
votes0
answers48
viewsHow to connect images via arrows on androidStudio
Good night. I have a content.xml where I have 3 imageView, I would like to know which command I can use to connect these 3 images by means of arrows as if it were a flowchart. The app starts with…
-
1
votes2
answers58
viewsAndroid + Volley with PHP connector returns error!
I am trying to connect and send a registration, via PHP Nector, from my Android application to SQL Server on the local computer. It’s returning "Error!" because it looks like Volley doesn’t see the…
-
1
votes1
answer68
viewsAndroid + Volley + PHP Connector Does not insert data into SQL Server database
I’m trying to input data from an Android application into the SQL Server database, and I’m using Volley and PHP Nector. The connection is ok, and searches usually appear on the device screen. I need…
-
1
votes0
answers84
viewsHow to uncheck a checkbox after clicking another
How to program and Java (Android Studio) to deselect a checkbox after clicking another checkbox. Example: - Quiz That’s my code and the question that uses the checkbox is identified in that code as…
-
1
votes1
answer1191
viewsGet the phone chip number
I’d like to return the cell phone chip number. TelephonyManager telephonyManager = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE); String number =…
-
1
votes3
answers45
viewsCiclo Activity android
My app has 4 Activitys. When I get to the Activity number 4 user has option to return to Activity number 2 that this in onStop(). The problem is that when I go back to Activity number 2 she runs…
android android-studio android-layout android-activity android-fragmentasked 5 years, 8 months ago Paulo Castelo 71 -
1
votes2
answers114
viewsImageview Visible with onClick becoming invisible again?
Talk to you guys, I have an Image that starts invisible and when clicking the button it becomes visible, but I need it to be invisible again because when clicking the button again, it has to appear…
-
1
votes0
answers36
viewsApp hangs after clicking button
I have to perform validation of the fields and create the calculation method to tell which is the best fuel, however, when pressing the button, the application hangs. I can’t identify where the…
-
1
votes0
answers30
viewsCast problem in onAttach method
I am making an application that creates graphs, I am creating the implementing of the nodes via Dialog where the usurious selects us and creates a arrest but this giving Cast error. public class…
-
1
votes2
answers1042
viewsHow to check if a file already exists in a mobile directory in Flutter?
I have a method to check certain files. pdf exist in the app folder, I used path_provider to get the path, how do I check if the file exists in the directory? Future<void> checkFile() async{…
-
1
votes1
answer62
viewsSet time variable on Back button
You guys, good night. I need a little help, I have the following code. Because I need to stop Thread when the back button is clicked. private void timeGame() { t = new Timer();…
-
1
votes1
answer878
viewsInternal Storage - open failed: ENOENT (No such file or directory)
I have a problem that I haven’t been able to solve for a few days. I have a list of files that are saved in Internal Storage and what you need to do is zip those files when users leave the activity.…
-
1
votes1
answer125
viewsNumberformatexception: Invalid int: "1" I CAN’T CONVERT STRING TO INTEGER
I have a String = "1" and I can’t convert it to int, I think it might have something to do with the way it was built, the class that reads the TXT file from the web and saves it in the database is…
-
1
votes0
answers49
viewsEqual text field from facebook
Does anyone know how to let the field insert text equal to facebook ? I need my text to look the same. When I copy and paste the song’s cipher on facebook, it looks the same as the site. But if I…
-
1
votes1
answer247
viewsCould not find method connectionBanco(View) in a Parent or Ancestor Context for android:onClick attribute defined on view class
package com.projeto.comandapack; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText;…
-
1
votes1
answer33
viewsSave values and make a comparison
I’m having a hard time making a comparison logic or something better that you can point out to me. I’m developing an app that contains several buttons in mega sena game format. I need to make sure…
-
1
votes1
answer427
viewsHow to send data between Activitys without opening another window? Android Studio
Good afternoon gentlemen, I have a question in my code, I need to pass the data from one Activity to another but when I put the value it opens the same screen twice, it is working but when a value…
-
1
votes2
answers236
viewsFind out if Activity has been closed
Good night! I’m a beginner on android and I’m developing a chat app where two users connect through a queue based on their chosen preferences. When one of the users disconnects from the chat (end…
-
1
votes1
answer525
viewsCreate a fullscreem and untitled splash
Hi, I’m initiating on Android Studio, and I’m having a question. How to make my splash stay with the image in full screen and without the title bar? My image PNG has 750 x 1334. Follows my code:…
-
1
votes1
answer37
viewsEmail body in utf-8
I have a class that sends email, only it’s not sending with the accented characters. Send class public boolean send() throws Exception { Properties props = _setProperties(); if (!_user.equals("")…
-
1
votes2
answers19
viewsbutton opening a new problem Activity in a class
package com.ftc; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class…
-
1
votes1
answer9
viewsWhen running the application on the mobile phone the imageView is not visible
<?xml version="1.0" encoding="utf-8"?> <EditText android:id="@+id/editTextEmailEntry" android:layout_width="wrap_content" android:layout_height="wrap_content"…
-
1
votes1
answer80
viewsListview returns only one Cursor item
Good afternoon guys, I have a problem with my project. I have a Listview that receives information from Cursor and then sends it to the Adapter, but it is only pulling a record from my database, you…
-
1
votes0
answers39
viewsonPostExecute is not receiving the result value (Android)
Good night, I am accessing via Asynctask JSON, only on onPostExecute, to String result is not receiving the result value. Follow Home access code.class String login =…
-
1
votes1
answer368
viewsUpdate Listview with notifyDataSetChanged()
Good afternoon guys, I’m not getting the use notifyDataSetChanged() to update my Listview. My application takes the data entered in the database and lists in the registration page, soon after, if…
-
1
votes1
answer212
viewsHow to Make Dynamic Tablayout in Android Studio
I created a tablayout in my application, I need that by clicking on one of the menu options, it automatically takes the 0 position. Where the house would be would be an icon to return and the others…
-
1
votes0
answers408
viewsGrab the firebase download link and save a database string to be displayed in cardview via Picasso or similar
Good evening, you guys. I’m doing a job that I need to get the download URL of the image I sent to Torage, save this URL in the database to be able to display this image in cardview using the…
android android-studio firebase android-recyclerview firebase-databaseasked 5 years, 5 months ago Lucas Gabriel 11 -
1
votes1
answer58
viewsHow to create a class to connect to in Firebase?
I’m trying to create a class where I’ll connect in the Firestore of Firebase, and then I’ll take this class and instantiate it where necessary, I made this part of the code but I don’t know what…
-
1
votes0
answers71
viewsHow to make the Radio Button appear checked if the database is updated Android Studiop
I’m making an app with questions and answers, I have a radiogroup, a textview and 3 buttons: confirm, next and back. I am trying to get once the question is answered, when returning in that question…
-
1
votes2
answers152
viewsHow to reset or reset the app variables?
I’m starting Android development (using JAVA language). I am developing an average calculation app that displays the average and the student’s situation (Approved, In Recovery and Failed). My…
-
1
votes2
answers798
viewsGet Imei on Android using Java
I’m needing to get a unique identifier for my app, I’m trying to get the device IMEI and I’m not getting, below follows the code I tried to get the IMEI and it always stops at the first if that has…
-
1
votes0
answers100
viewsError installing React Native project on mobile
Good night, you guys! Next, I started studies on React Active recently. I followed all the steps of the official website for installing software and dependencies: Android Studio and Android SDK,…
-
1
votes2
answers2509
viewsHow to add 64-bit and 32-bit native codes to an Android app?
I’m having trouble publishing an app version. The Play store is notifying me about the new 32-bit and 64-bit architecture: "This version does not comply with Google Play 64-bit requirement The…