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
answer35
viewsI can’t recover an imageview on (R.drawable)
It was supposed to appear (R.drawable.image1) I don’t know what else to do if someone can help me in this situation....…
-
0
votes1
answer136
viewsInfinite loop while recovering and recording data in Firebase
I’m a beginner on Android and had a problem recovering data from Firebase and record again, I know the reason for the infinite loop but I don’t know how to fix. public static void setVoto (String…
-
0
votes0
answers59
viewsAndroidstudio problem does not work on AVD
Good evening I have a problem, I have no idea how much help I may need from you! I am developing an Android application in Android studio in the code is all correct compiles legal has no syntax…
-
0
votes2
answers397
viewsHow to enable PDF dowload on webView with Android Studio
//MainActivity package app.inova.appfatto; import android.support.v7.app.AppCompatActivity; import…
-
0
votes1
answer42
viewswanted my presentation slides to appear only once when the app is installed?
i would like that when the user finished going through the slides of my app would automatically open a new Activity and the slides were destroyed so that they would not appear anymore they would…
-
0
votes0
answers190
viewsMinimum version of android studio installs but does not open
I have a project that compiles in the version compileSdkVersion 28, and put the minimum minSdkVersion 18, I use the mobile to test the app and works perfect mine is android 8.0 and I’m trying to…
-
0
votes1
answer33
viewsIs it possible to put a spinner in function to another spinner just as an image?
I’m new to Android Studio and wanted to make two spinners. One that would be for example cars, motorcycles and when selected the option the other appeared the images with the names of cars ( case…
android-studioasked 5 years, 8 months ago Victor Oliveira 1 -
0
votes1
answer171
viewsAndroid Resource linking failed - while using the Stripe and play-services-Wallet library
I am integrating Android with Strepe and Google-pay. The problem is that there is a link failure with the xml layouts. The following figure shows the link failure. I’ve researched several similar…
-
0
votes0
answers135
viewsDo a search Inside a custom Listview with firebase
Basically my project resembles a social network, using the firebase Restaltime database, but I came across a problem, I created a custom listview and my idea was... Since I had 2 children >Users…
android android-studio firebase listview firebase-databaseasked 6 years, 3 months ago Arthur Ramos 11 -
0
votes1
answer479
viewsHow to save file from one folder to another?
I have a listview which displays the files from an external folder (usb). I want to select one of these files and save in an internal folder (Basket). Here it is when I select an item of this mine…
-
0
votes1
answer126
viewsMake my website open in the app automatically when accessed by Browser
i have an Android app made in Android Studio, and a simple webview, what should I do in the app to recognize the site and open it in the app ?
-
0
votes1
answer677
viewsSend SMS using android
I have an app and I would like him to send a text to his own mobile but I’m not getting, not from the error just not send. SmsManager smsManager = SmsManager.getDefault();…
-
0
votes1
answer148
viewsError starting the app
When I try to run an application by Android Studio in the Genymotion emulator an unexpected error occurs and the app does not open. And the log flap Logcat from Android Studio returns the following:…
-
0
votes0
answers28
viewsHow to implement a Gameview code within a class?(in java code for android)
I am new in java and I am developing a project, I have the following code below: Paint.setColor(Color.rgb(250, 0, 255)); canvas.drawCircle(Xa, ya, 10, Paint); Which I use in the Gameview draw method…
-
0
votes1
answer1831
viewsAndroid Target and the Android SDK not found or installed... but it is all installed, how to solve?
I had to format my PC, Windows, and installed everything again: Java, Git, Python, Android Studio, Node, Ionic 3, Cordova, everything. And it was running before normal. Now I’m with this error, not…
-
0
votes1
answer69
viewsRemove word accentuation in searchView
I’m trying to remove the accent from the researcher’s words, but my code isn’t working. I’d like you to look at an example word Você all variations ofVoce, Você, você, você, VOCE, VOCÊ. Thank you…
-
0
votes0
answers118
viewsPass parameters from one Adapter class to another Activity
I need the help of Voce, create a class called Itensadapter that creates a listview with the database data, until ai blz, now I need to capture this data in another Activity to enter the quantities…
java android android-studio android-activity android-adapterasked 6 years, 3 months ago Lioni Beats 1 -
0
votes1
answer47
viewsAndroid Studio does not run any project
This is the error that always appears. I can’t run either on emulators or on my device. I tried to uninstall and install again, I tried to take and put back all the SDK (without success, nor…
-
0
votes0
answers113
viewsError installing android emulator for React
My Android Studio does not open the React-Activate in any way, I cannot open the React project. Android Studio is running normal with native files, only React does not work. already installed…
-
0
votes0
answers69
viewsProblem Recovering Data from Firebase and Moving to Object
I’m trying to make an inventory app in order to study. Where items can be added, saved to firebase and then displayed in a Recyclerview Items are being saved normally in firebase: But in time to…
-
0
votes1
answer141
viewsRegister button for the application
I’m developing an app and it has user registration and login, I’ve done a lot already, but every time I click the button to register user, the app to, could anyone help me? Follows the code. Class…
-
0
votes1
answer749
viewsFATAL EXCEPTION: main Process:-When I opened the application give ANDROID error
every time I try to open an error query, I’m using php along with java follows the error below: E/AndroidRuntime: FATAL EXCEPTION: main Process: br.com.alencardeveloper.escola.sisescolar, PID: 11602…
-
0
votes1
answer803
viewsProblems with getDownloadUrl firebase
Hi, I’m having a hard time getDownloadUrl firebase. After the last firebase update my app stopped working. Is showing error in Uri downloadUrl = taskSnapshot.getDownloadUrl();…
-
0
votes2
answers345
viewsEdittext vehicle mask
I would like to know how to create a mask in an Edittext in ABC-1234 format. I’m trying something as an example below, but still unsuccessful. public abstract class PlacaVeiculoMask { public static…
-
0
votes0
answers44
viewsProblem with Data Reading in Firebase
Hello, I’m trying to read data in firebase and pass to an object, but when I used to use this object outside the onDataChange it showed the object data as null So I made the following Log’s to test:…
-
0
votes0
answers58
viewsERROR: Unable to open HAXM device: ERROR_FILE_NOT_FOUND
I’m trying to configure the environment to start programming using flutter, at the time of running Android Virtual Devices, it reports this error about HAXM, already tried uninstall and install…
-
0
votes0
answers41
viewsError opening Android app project
When opening the Android app project of a friend of mine on my PC, I came across these errors. How do I fix it ? screen images : Grandle code ( app module ) : apply plugin: 'com.android.application'…
android android-studio android-layout android-activity android-fragmentasked 6 years, 2 months ago jhonatan santos 103 -
0
votes1
answer298
viewsHow does it work to put dynamic content by making an Android app natively?
Guys, I’m seeing a little bit of mobile development (Android), and I saw that the design is done using XML, and from what I saw, it seems to have no loop tag, to repeat similar structures, and…
-
0
votes2
answers252
viewsDelete firebase firestore collections
I have N collections created in my Cloud Firestore, and I would like to delete all of them if possible, as if I were going to reset my database because they were inserted wrong. I wonder if there is…
-
0
votes1
answer63
viewsApp tablayout does not appear when operating on Mobile
I’m creating an app that has a Tablayout with three Tabs that should return specific fragments each. However, when I test the app on mobile none of the tabs are shown, which makes it impossible to…
-
0
votes0
answers142
viewsSQL server connection with android application
How to connect an android application to sql server database ?
-
0
votes1
answer35
viewsRadius problem on Android
I left the format rounded, but when I click the button it returns to the default format: after the click the button becomes square again:…
-
0
votes1
answer59
viewsUpdate Sqlite with Edittext Android
Good morning gentlemen, I’m trying to update my Sqlite database through my Edittext but it shows error, someone could tell me what I’m missing ? public void insererazaosocial (SQLiteDatabase db){…
-
0
votes0
answers26
viewsClick on the Recycleview Item
I have a project and use the Navigation Drawer As layout, and inflate all fragmentos, well there was the need to have RecycleView, in it I get the result done by a select, only I also need it to be…
android android-studio android-layout android-fragment android-adapterasked 5 years, 6 months ago Ari Melo 131 -
0
votes2
answers73
viewsLine limit in Recycleview
I have a RecycleView which returns many lines, configure the layout_height for a specific size, more than one cell phone to another the amount of line increases or decreases, I would like to adjust…
android android-studio android-layout android-activity android-adapterasked 5 years, 6 months ago Ari Melo 131 -
0
votes0
answers21
viewsI would like to display a div or entire site without the search bar within the app
I would like to display a div or entire site without the search bar within the app. I found no answer on any site. This code opens the site, but opens with bars with everything. My Code is like…
-
0
votes1
answer80
viewsNormal and long click only work after a first click on Imageview
I am with a problem that when I click on the image, the first time nothing happens, only after the first click it works simple click function and long click. XML code: <ImageView…
-
0
votes1
answer246
viewsChange the color of the Recycleview line
have a RecycleView and would like to change the color of the line when selected, click the selection I have already implemented and working.
-
0
votes0
answers42
viewsI’m developing a quiz and I can’t change my screen. What’s wrong with my code?
public void botaoClick(View view) { Button botaoResposta = (Button) view; if (botaoResposta.equals(respostaCorreta)) { acertos = acertos + 1; pontos = pontos + 10; Intent intent = new…
-
0
votes0
answers238
viewsCalling a method in another Android class
Good morning gentlemen, I’m with a doubt, I’m trying to call a method that is in another class but is not working, this same method already works if using another layout, just wanted to implement it…
-
0
votes1
answer51
viewsApp update not requested by play store
Good afternoon, everyone! After the release of my app in the play store, I published some updates, however, the "Update" button is not available on my device, only "Installed". The app version of my…
-
0
votes1
answer62
viewsWhen I click on Listview to open another Aciticity the app hangs and Fexa
I’m creating an App that looks for nearby wifi networks and then can connect to them, but locked at the beginning, because I can make it scan, but when I click on some network of the list, which…
android android-studio listview android-activity arraylistasked 6 years, 2 months ago Emanuel Boaventura Matos 9 -
0
votes0
answers60
viewsandroid studio 3.4, can’t use cell phone as emulator
Good night I ask for help, I installed android studio 3.4, I can’t use the phone as emulator, the version of my phone is 8.1.0 Samsung, already enabled the phone in developer mode, I changed the USB…
android-studioasked 5 years, 6 months ago user150643 1 -
0
votes1
answer173
viewsHow to close app when clicking a Dialog in Mainactivity?
My app has several activitys. Some of them have a Dialog that when clicking on it, the application goes back to Mainactivity. I want when you click yes in the Mainactivity Dialog, the application is…
-
0
votes1
answer151
viewsListview with JSON + PHP
I want you to appear in one ListView all the information of a select I gave. I can do only with txt by displaying information: public void sendjsonrequest() { JsonObjectRequest jsonObjectRequest =…
-
0
votes0
answers80
viewsHow to set a timeout for a JSON request?
I am developing an application in JAVA, Android Studio, and I need to make some JSON requests. So I created an Asynctask class and do so in theInBackground: @Override protected String…
-
0
votes1
answer268
viewsTake data from one Plain text and put it into another in another Activity?
i have a catalog app that the customer required to be implemented a quantity choice function on each item. For example: I have the product A (in Activitya), the customer wants 25 units. in product B…
-
0
votes1
answer49
viewsAbout Activities in Android/Java
Good night. My doubt is simple. My app has a system where I open 5 activities for registration (first Activity 1, then 2 and so on. imagine it is something like a windows installation where you have…
-
0
votes1
answer102
viewsI cannot "recover" the Realtime Database (Firebase) value
I’m trying this, but it always appears that the app has stopped working. public class TesteActivity extends AppCompatActivity { private TextView la; @Override protected void onCreate(Bundle…
-
0
votes1
answer47
viewsCreate alternate layout
I have a project and I need to adjust to the various types of screens, I have tried with the ConstraintLayout more to what I want doesn’t work, I researched and found something about Alternative…