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
answer135
viewsHow to display Cursor values using Debugger in Android Studio?
I’m very used to just using the Logcat, while debugging an application. But I realize that the Debbuger is a much more powerful tool. I can pause the state of the application and observe its…
-
1
votes1
answer1497
viewsNeed to stay using android studio to program in React
You need android studio to program in React Native? My machine does not run the program well, can barely use it actually. While the emulator I can test the apps by mobile without problems. I’ve been…
-
1
votes1
answer1495
viewsHow to resolve adb.exe start-server' failed -- run Manually if necessary
I’m having the mistake: Unable to run 'adb': null 16:08 'C: Desktop Users PI SDK Platform-tools adb.exe start-server' failed -- run Manually if necessary By pressing the run button Android Studio…
-
1
votes1
answer62
viewsWhat code do I use to create a Validate class on Androidstudio?
I want to create a class to check the 2 fields EditText are filled, called Validacao. I wanted to call like: if (Validacao(TextoA, TextoB) == true) { executa código; I don’t know what the class code…
-
1
votes0
answers17
viewsDragevent x Motionevent android studio
Hi, I would like a help: I need to insert in my apk the effect of dragging and playing an item (image, text, icon) in the trash, equal to the function that is already configured in s smarthphones or…
-
1
votes0
answers57
viewsHow to generate an android module . jar?
Hello I have an android app with a module and would like to turn it into a . jar to be repurposed in other projects. How do I do this?
-
1
votes1
answer1541
viewsHow to open an Activity via a button
I’m having a problem opening my Activity on various forums and I haven’t found the answer. I have the Activity "Teladelogin" and the Activity "Feed", and I have tried to open in various ways, here…
-
1
votes1
answer371
viewsDoubt in Toast.makeText(this, ...)
This is the same code as a previous doubt, but now my question is another. In the Toast.makeTest(this, msg, Toast.LENGTH_SHORT); gives the following error when compiling, I believe that because of…
-
1
votes1
answer249
viewsNo suitable Parent found from the Given view. Please provide a Valid view
Good Morning, I have this mistake : No suitable parent found from the given view. Please provide a valid view. I’m entering the registration view and this returning me this message, tried to fix it…
-
1
votes1
answer214
viewsError opening a new Activity on mobile - Android Studio
Good morning, everyone!! So, I’m new in programming for Android, it turns out I created 3 screens: Leading Categories Attitude The main one is only for it to go either in Categories or Exit. The…
-
1
votes0
answers77
viewsHow to delete a photo from the gallery on Android
I have a code where I’m using my camera to take a picture, then I put it in a Imageview, only for viewing as it is saved then in my Sqlite. I wonder, how do I delete this photo from the gallery,…
-
1
votes0
answers14
viewsApplication does not display Alertdialog
Hello! I’m developing an app in Android Studio that at a certain point instantiates an object called Mesa with user input. For this, there is a button with the following behavior: if…
-
1
votes0
answers2231
viewsError: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
I am trying to consume data from an API using retrofit, but whenever I try to connect it returns this error. I’m using a class that is an Array of these objects (Sisalfacatalog) and throwing the…
-
1
votes0
answers26
viewsAndroidstudio error "Unexpected char 0xe3 at 45 in Referer value: [LINK]"
I have an app that has been in use for a while, but recently it gave problem in one of the links that uses a word with accent. But before that error did not appear. What do you think may be?
-
1
votes1
answer179
viewsRemove Title from menu bar
Can anyone tell me how to remove the title from the menu bar? I saw some materials on the internet but all teach to remove the bar and I just want to remove the title.
-
1
votes2
answers369
viewsSave App Settings
There is something I can do to save my application settings without creating a database, so when the application is closed and then reopened it will continue with the settings that were previously…
-
1
votes1
answer394
viewsEvent onBackPressed
I have a project with Navigationdrawer, on the main page I have a menu, and on the other fragments I inflate, only when I press the back of the navigationbar 'back button of the mobile phone', it…
-
1
votes1
answer680
viewsPlace profile photo in Nav_header
I have a question in creating an App. I need to put the user profile photo in my Nav_header_tela_princial. I already have a profile screen, but I need to use the same image of the user profile…
-
1
votes1
answer206
viewsKnow the color of Button Android Studio (Java)
Good afternoon, I need to know how to read the color of the Button and store in a variable in java for Android platform but is showing errors, can help me ? Follow my code below: private EditText…
-
1
votes1
answer389
viewsHow to place a button with static position on the scrollview
Greetings dear Developers. I have an Empty Activity with the entire screen occupied by a scrollview containing only imageviews and I need it to have at the top of the screen a button with a fixed…
-
1
votes2
answers1020
viewsI can’t use Android Studio (Gradle Project Sync failed. Basic Functionality ... )
I looked, I looked and I couldn’t find the solution to my problem. First I will put the images of my situation, but in advance I will inform that my processor is AMD. In this case I just need to be…
-
1
votes1
answer626
viewsHow to change the font and color of the navigation Drawer side menu
Hello, I have a project created as DrawerLayout and would like to customize by changing the type of font, size and color. but I can’t. Change part to red.…
-
1
votes0
answers538
viewsProblem in editing interface of android studio XML layout
Build.Radle (app) apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.karlo.menu" minSdkVersion 15 targetSdkVersion 28 versionCode 1…
-
1
votes0
answers39
viewsInsert Summary into Word document using apache poi library
I am creating an android application of answer of forms, at the end of the questionnaire I am creating a file . docx using the apache poi library, the document is already written successfully,…
-
1
votes2
answers355
viewsValidate Edittext within Alertdialog
I have a AlertDialog and inside of it I have a EditText and need to validate and after validate run the method enviarEmail(), how do I do? Man AlertDialog : AlertDialog.Builder caixaDialog = new…
-
1
votes2
answers144
viewsInner Join Sqlite with Cursor on Android
Good morning guys, could you ask me a question ? How should I make one Inner Join in the SQLite using the Cursor ? Below is my code, but I do not know how to fit it in the line. final SQLiteDatabase…
-
1
votes1
answer51
viewsError: android.widget.Linearlayout cannot be cast to android.widget.Gridlayout
I’m trying to make an android app that lists the components coming from the bank. The error is as follows: Androidruntime: java.lang.Classcastexception: android.widget.Linearlayout cannot be cast to…
-
1
votes0
answers43
viewsError to popular array, firebase, photo gallery ANDROID STUDIO
I’ve been researching this mistake for three days and I can’t fix it. I’m setting up a photo gallery for my app and need to popular an Array with the photos coming from Firebase to show them in the…
-
1
votes1
answer67
viewsError sending pdf to Firebasestorage
I am trying to send PDF files to firebase Storage and with this code I can go to the point of picking up Uri, sending, but only falls into onFailure, follows the code @Override public void…
-
1
votes1
answer157
viewsclose Activities in Dialog
The problem is a quiz app that’s ready, except for this problem. the app has activities A(start game), B(questions), C(result). on A has a start button game that by clicking, goes to B. By clicking…
-
1
votes2
answers210
viewsError opening Android React-Native project on Androidstudio via macos
I’m trying to open a project Android React-Native existing through the AndroidStudio, but the following exceptions are displayed for me:…
-
1
votes1
answer58
viewsHow do you run the getCidade() method with asynctask, and return the value of the city string to use in another method?
public class CadAnuncio extends AppCompatActivity { LocationManager locationManager; private Button btnSalvar; private DatabaseReference databaseAnuncio,…
-
1
votes1
answer138
viewsConditional return of Checkbox with problem
I’m making a mistake that ridiculously seems easy, but I can’t fix it. In my xml has a CheckBox returning false (disabled), in my java has a simple if(termosUso.isChecked()){}, in theory was so that…
-
1
votes3
answers1699
viewsError running the React application on android emulator
I can’t open an React Native project in the emulator, I’ve tried using Genymotion and Android Studio but always the same error occurs when I run: sudo react-native run-android 27 actionable tasks: 2…
-
1
votes1
answer226
viewsConnection error with firebase
I am creating an application in Android Studio using java and geolocation, but I have this error below and I do not know what to do. Configuration 'compile' is obsolete and has been replaced with…
-
1
votes0
answers358
viewsESC function in Android Studio
A customer uses its own application in a data collector with Android 5.0+ system. The data collector is like a very robust smartphone used by companies, and in this case it has a physical keyboard…
-
1
votes0
answers16
viewsProblem running wireless apps in android studio
I’m having the problem of not being able to use the ADB Wireless function to get Builder and debug without needing USB cable. I used plugins normally and never had problem, but I do not know if it…
android-studioasked 5 years, 3 months ago Diego Kappaun 524 -
1
votes0
answers40
viewsHow do I create a library in Android Studio and publish it
I would like to know how to create a library in Android Studio and later publish it in a repository and add its dependencies in a project. Something like for example: implementation…
-
1
votes0
answers46
viewsBack to Android menu
Have a menu inside a menu, like going back to the previous menu? <menu xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto"…
android xml android-studio android-layout android-xmlasked 6 years, 1 month ago João G. Hartmann 31 -
1
votes3
answers455
viewsShow or hide an image in Android Studio
I’m making an app that reads a value in case (on or off). Based on this value it returns an image. If the value was "lit", the application would show me an image of a lamp on, and if the value was…
-
1
votes0
answers44
viewsAPP terminates unexpectedly on smartphone
Below is the code and the logs. I try to run, but always closes the app unexpectedly. It closes without showing the error image or inserts in the bank. package... imports public class Cadastro…
-
1
votes2
answers123
viewsHow do I get data from one node within another node in Firebase with android?
I need to get the data from the "usrCategoriaUsuario" node that is in tb_usuario. The normal data I get, but this usrCategoriaUsuario, I’m not getting. Code that searches the User data in Firebase:…
-
1
votes1
answer27
viewsHow to change to property android:fontFamily="casual" in a textView dynamically?
I would like to know how to change the font to casual in my textView through java code. TextView text1 = findViewById(R.id.myTextView); I want to change the font from text1 to casual…
-
1
votes0
answers40
viewsFlutter APP - How to read emails from user App
I am trying to build an app with flutter that asks for the users permission to read their email. I know that I need to use the Permission Services but the Thing is, after the user accepts the email…
-
1
votes1
answer47
viewsAccess and list files on an FTP server
Hello, I would like to access and list folder/PDF’s files on an FTP server using an App, I use fragment and the version of Android and 4 until the current 9. What I researched so far I could not…
-
1
votes1
answer53
viewsInsert multiple Markers into Maps
I found a code here on the site, I put in my project but it didn’t work, anyone knows how I can solve? The method below is called in onViewCreated() Note: I am using the Map inside a Fragment, it…
java android android-studio android-fragment google-maps-android-api-2asked 6 years, 1 month ago Elailson Silva 11 -
1
votes1
answer44
viewsCompile "com.android.support:appcompat-v7:27.1.0" error
This message appears on the Android Studio console Configuration 'Compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be Removed at the end of 2018. For more…
android-studioasked 6 years ago GustavoSevero 2,567 -
1
votes1
answer118
viewsFlutter is compiling forever (Not over)
I start after an update on Archlinux. I have uninstalled android studio and flutter and nothing. When I try on a Windows machine the project is compiled normally flutter doctor Doctor summary (to…
-
1
votes0
answers126
viewsHow to make POST in android studio?
I’m trying to do a POST for my local API but I’m finding some problems and I’m not getting it right what I’m doing wrong. POST that works on Postman is with a body more or less like this: [ {…
-
1
votes0
answers40
viewsProblem with android studio
I’m developing in flutter, I can open android studio normally, I can even open the emulator too, but when I run the app in this open emulator android studio locks the whole computer and nothing…