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
answer71
viewsMove Files after FTP Upload
My code uploads all images without folder, and it’s all OK! But what is it that needs to do FTP as images are uploaded to the path: "/storage/emulated/0/PicturesGRP/enviados";, storing the uploaded…
-
-1
votes1
answer62
viewsActionbar disarranged after updating Android Studio
After update no more Actionbar appears in new projects. Androidmanifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"…
-
-1
votes1
answer623
viewsAndroid Studio Error:Execution failed for task ':app:instantRunMainApkResourcesDebug'
I’m developing an app android, when I try to run or compile my app I get the message Execution failed for task ':app:instantRunMainApkResourcesDebug'. Compiler points out that there is an error in…
-
-1
votes1
answer131
viewsUse setSupportActionBar on Fragment
I have an app that uses NavigationDrawer, I need to change the name of toolbar for each fragment. My MainActivity extension of AppCompatActivity then I can change the fragment name using: toolbar =…
-
-1
votes1
answer98
viewsListview inside Listview (ANDROID)
I am developing an application where this one has an Activity where it generates a Listview of Orders, and within the Adapter of this list of orders, I have another Listview that are the items, ie I…
-
-1
votes1
answer35
viewsError does not appear in login page and program closes when run in emulator
I am making a login page that if the data is correct or incorrect appears a Toast displaying the result. The problem is that there is no error (when there is any) and when run in the emulator the…
-
-1
votes1
answer61
viewsError clear Textwatcher field
Staff use the TextWacher in the EditText, works perfectly and when I finish the registration I put campo.setText(""); it does not clean, close the application and shows an error. my class…
-
-1
votes1
answer90
viewsHelp me in a logic to solve my problem
Well, I’m creating an application for base conversions and I kind of created a mini keyboard with the keys to Hexadecimal (A, B, C, D, E, F), but it’s a hexadecimal text field when I type 3 and I’ll…
-
-1
votes1
answer155
viewsHow to update a database (Sqlite DB) using the Workmanager library?
I am using the workmanager library to show a notification to the user indicating the time to take his medicine. I am also using the Sqlitedatabase library to store medicine information such as:…
-
-1
votes1
answer180
viewsTextview findviewbyid Fragment Mainactivity
I’m trying to give a setText() in Textview q is in Fragment , but returns me this error: E/AndroidRuntime: FATAL EXCEPTION: main Process: kcollector.com.br.kvendedor, PID: 24201…
-
-1
votes2
answers302
viewscan’t use android emulator on androidstudio
Good evening guys, I need to run android studio on my machine, but it gives the error: "Intel HAXM is required to run this AVD. VT-x is disabled in BIOS. Enable VT-x in your BIOS security Settings…
-
-1
votes1
answer104
viewsProblem with listview inside a Fragment
My problem is that when I click on some listview item the app does not return me any menu options. Option which, when clicked would call a new Activity. Code: @Override public View…
-
-1
votes1
answer284
viewsHow to return the selected item from a spinner
How to pass to a variable the value selected in a spineer at the moment the user selects some of the options? I tried to implement this option, but I was unsuccessful. Follow my code in case anyone…
-
-1
votes1
answer125
viewsHow are these Setters methods not being used?
I’m creating a Java/Android app where your job is basically to display a list for the user about what items we still have available in stock. To make this list I used a Recycler View, data (stock…
-
-1
votes1
answer220
viewsFirebase Error Android Studio
I was setting up my app to connect to firebase but every time I put in build.grandle(Module: app) implementation 'com.google.firebase:firebase-analytics:17.2.0' In my app occurs the error below:…
-
-1
votes1
answer21
viewsHow do I make a banner ads appear in this case?
What’s missing or wrong for the banners to appear? I followed all the documentation, but it has different information, one at a time. <uses-permission…
-
-1
votes1
answer233
viewsError while trying to connect to Android FTP server
I am trying to connect to the external FTP server with the current lib 3.6 of apache ftp client using Android Studio, the version of my Android is 4.3 up to the current 9. In my Manifest I have: I…
-
-1
votes1
answer168
viewsAndroid Studio Click a button inside a Fragment
Hello, I need to trigger the event click a button that is inside a Fragment. I was following the answer of this article, but (excuse my ignorance) it was too complicated for me to understand,…
-
-1
votes1
answer37
viewsAndroid Locked When Calling API
I have this method in the main: private String token () throws IOException { String login = this.login.getText().toString(); String senha = this.senha.getText().toString(); Login dados = new…
-
-1
votes1
answer30
viewsI cannot display a Toast in 2 activitys from the same package
I am doing a registration screen and login in my app, in the registration screen I implemented some exception treatments toasts, at the time of emulating the app the registration screen toasts…
-
-1
votes1
answer33
viewsCustomization of the Menu
I want to change the font and color of the items and also change the background of the menu, but I cannot do this in the Xml menu. Screenshot below: I also want to make Expense subthemes appear just…
-
-1
votes1
answer135
viewsAndroid emulator accesses web service by browser but not by APP
Good morning, what happens is the following my emulator accesses my web service by browser at http://192.168. 2.192/index.php, it shows the result of the page, <?php $minha_info = "TESTE JSON";…
-
-1
votes1
answer375
viewsCheck if user is logged in to Mainactivity Android Studio
I have an app that successfully logs in, but when you log in to Mainactivity it simply disconnects from firebase auth, Listener is 0, how can I keep the user logged in after logging in too…
-
-1
votes1
answer466
views"-no-jetifier" error when starting React-Native run-android
I had already done the installation of android studio to use the expo, I’m trying to emulate android with React-Native cli When giving the command: React-Native run-android the following error…
-
-1
votes1
answer291
viewsContact Boot Whatsapp android studio
People want to integrate my app with a support button when clicking it will open the Whatsapp through the url and open a Whatsapp chat with a specific support contact. XML: <?xml version="1.0"…
-
-1
votes1
answer184
viewsHow to access and change objects within an XML file by Activity?
good evening, I’m having a hard time changing the components of an XML file, when I open the Drawer menu I click on the "tracking" button it opens the xml fragment_tracking.xml, but I can’t access…
-
-1
votes1
answer72
viewsAndroid Studio does not recognize some commands
Does anyone know how to fix it? Out of nowhere these two commands stopped working Note: When I run the application there is no error, but it still shows that there are errors in the code for some…
-
-1
votes1
answer55
viewsCardview on each other’s side
I want to leave Cardview side by side, but it’s in list form: <?xml version="1.0" encoding="utf-8"?> <androidx.cardview.widget.CardView…
-
-1
votes1
answer138
viewsMy application is done in webview and by clicking back with the android phone button it shows the msg Auncher stopped
This is my code Mainactivity.java when running on a device I click the back button simply appears the message Launcher stopped I really need to understand what is missing in the code my main concept…
-
-1
votes1
answer51
viewsBanner Admob with display problems
I developed an Android app in Java and added a banner on it to display ads. In test mode it is displayed, but when I put the Admob banner code it does not display the banner on the screen, but the…
-
-1
votes1
answer104
viewsmy code does not enter onActivityResult (Kotlin)
Good afternoon, I’m trying to take a photo with the camera phone and save it in a database, however I can’t recover the image bitmap, I can open the camera and take the photo but when entering…
-
-1
votes1
answer53
viewsHow to list data from an api in an Activity
Whoa, guys, good night The thing is, I have an application in android studio where I am consuming an api through retrofit and gson, able to make all the connection and the registration functionality…
-
-1
votes1
answer73
viewsAndroid Studio stopped working after installing Flutter and this error infirmmation
Good morning! I had Android Studio installed on my machine and after installing Flutter it stopped working. I uninstalled Flutter and even then Android Studio does not work and only presents this…
-
-1
votes1
answer262
viewsCan anyone solve this error by building a flutter project?
I built my flutter project and came across this mistake someone can help me? C: src flutter bin flutter.bat --no-color build apk Running "flutter pub get" in auto_home... 1,6s You are building a fat…
-
-1
votes1
answer46
viewsAndroid Studio Error: Unable to start Activity
I’m doing a basic CRUD with Realmdb. I made a list, and when some item of this list is selected, it is to open an Update Activity, where you can change the selected data. The problem is that the…
-
-1
votes1
answer226
viewsAlign Textview to the right in a Linearlayout in Android Studio
Hello, I’m a beginner in Android Studio, and I had a problem with alignment, I already took a look at similar questions but could not solve the problem. My layout is like this: I need to leave…
-
-1
votes1
answer91
viewsHow to get the result of another method in Java?
How I take the result of method 2 and put together with Resultado.setText of Method 1? 1 public void CalcularIMC(View view) { //recuperar valores digitados String Didade =…
-
-1
votes1
answer29
viewsUsing Instrumentation Testing to Validate Layout on Android
People, Before asking my question, below is an example of instrumentation code (incomplete purposely) on Android: import android.content.Intent import androidx.lifecycle.Lifecycle import…
-
-1
votes1
answer16
viewsBasic authentication on Android Gradle [beginner]
I am an intern. I have an android project, I am in build.Radle, my superior said that for security purposes I could not edit the project (source code) to enter my authentication, I should find a way…
android android-studio gradle groovy android-gradleasked 3 years, 7 months ago Cristopher Vieira 11 -
-1
votes1
answer63
viewsLimit the number of decimals - JAVA
Hello! I just started programming and I’m learning java. I’m trying to make my first app, which calculates the rule of three. I managed to make it work, but I had to transform the result of the…
-
-1
votes1
answer28
viewshow to filter what will appear in Recyclerview
I want to filter what will appear in Recyclerview, is possible? There is a Calendarview and I want that when someone clicks on a day from the calendarview, it shows itemviews only from that date,…
android android-studio android-adapter android-recyclerview calendarasked 3 years, 5 months ago izadora 1 -
-1
votes1
answer42
viewsHow do I add a value that I calculated from an informed data that appears in a new Textview?
I need to calculate the maximum heart rate from the age informed by the user (fcm = 220 - age). I created the fields to capture the name and age, but I can’t make the calculated fcm appear on the…
-
-1
votes1
answer29
viewsHow do I take a Long value in an Edittext and insert it into Firebase?(Android Studio)
I need to take a long value and insert it into Firebase and then show it in a Listview. I created a Pessoa class and with the other attributes I was able to insert and show it in a good one. Only…
-
-1
votes1
answer12
viewsProblem with difference in color of Android app. Android Studio appears one way and my phone is totally different
Hello, all right? I’m starting now in Mobile Development. My problem is the following: I created a simple app for testing, in Android Studio it gets the colors the right way I want, but when I…
-
-2
votes1
answer120
viewsHow to install the Android Studio patch?
When I update the IDE, it doesn’t automatically update, but it does ask to download the zip file. Link…
android-studioasked 7 years, 11 months ago Ramon Lopes 53 -
-2
votes1
answer72
viewsAndroid Studio App
I am developing an application that is a dictionary of chords for guitar. And as there are numerous chords, consequently I have numerous activities. The problem is that the application will be very,…
-
-2
votes2
answers116
viewsGuys, does anyone know what call or perform this technique in the studio Android?
I want to make an APP for gym and need to use a smaller screen in front of the main screen as shown in the print of an existing APP that is attached. I want to blur the background and show a smaller…
android android-layout android-studio android-activityasked 6 years, 7 months ago Heverton Kleidson 23 -
-2
votes1
answer781
viewsHow to restart app in android studio emulator without recovering status?
I created a login screen and implemented the authentication. If there is logged in user, the main screen is shown, if not, the login screen is displayed. After I logged in to test the Android Studio…
android-studioasked 6 years, 5 months ago MJG 43 -
-2
votes1
answer34
viewsAndroid Studio and SDK
Every time I install android Studio it comes without the SDK.I’ve checked the most common paths where the installer puts it and nothing. What can I do in this case , how do I install the android SDK…
-
-2
votes1
answer144
viewsImage loading with the Picasso implementation on android
I am using the Picasso implementation to upload the images in my application. However, I am using the reverie effect of the shimmerfacebook implementation to make the layout more user-friendly. For…