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
answer81
viewsFilenotfoundexception - Android Studio
I have the following code: String f = getStringFromFile(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/PagamentoLio.json"); String getStringFromFile (String…
-
0
votes1
answer64
viewsMainactivity recognizes methods from external classes
And everyone, I’m starting to program with Android Studio, but I have a problem. I created a class in the same mainactivity package, and I was able to instill that class, but I can’t use its…
-
0
votes0
answers151
viewsRecyclerview Line Limit
I got a problem, I got a RecyclerView, and you’re bringing the information perfectly. It is basic only lists below each other, only it is not bringing all the records, do the query by another…
-
0
votes2
answers1216
viewsHow to call Activity/Fragment when clicking the button? Android Studio
I’m starting a short time with programming, I’ve researched a lot but I need help in this doubt I will use a menu in my app called Boom Menu https://github.com/Nightonke/BoomMenu My question is,…
-
0
votes1
answer275
viewsQuery search android studio, firebase data listing problems
Could someone help me? The app recovers data from child("grupos") in debugging, but when I tie the knot, for example, child("grupos").child("nome"), the application of crash nor in debugging to see…
-
0
votes1
answer250
viewsUse Retrofit to popular a Recyclerview
I need to bring up a list of cities in one RecyclerView of a WebService using the Retrofit. But my List this coming null. I have a Class cidades with the data I need to take from WebService, to…
android android-studio web-service android-recyclerview retrofitasked 5 years, 5 months ago Regina Moraes 43 -
0
votes1
answer227
viewsRuntimeexception Error
When I start Run from the app a Build gives me the following error java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException:…
-
0
votes0
answers43
viewsVolley error PHP Android Studio, not recognizing the POST
I’m having problems with the connector or Android. I really don’t know. I already use Volley in other activities but had never given this problem. Can anyone help me in this? Returns who did not…
-
0
votes1
answer219
viewsOpen fragment by clicking on Cardview
My home screen has 3 cardviews: main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer57
viewsAdmobs/ Adview - Advertisement at the bottom
I added the ad as below. But this centered in the middle of the screen, I would like to add at the bottom. I already added android:layout_alignParentBottom="true" but nothing: <?xml version="1.0"…
-
0
votes1
answer559
viewsChange background when clicking and then return the original color
I’m having a hard time at the moment when I select several Textview, I can change the color normally and return when the id is the same as the one selected. My problem is this: When I change the…
-
0
votes1
answer30
viewsPass parameter in onItemClick
I’m having difficulty passing the parameter inside the repetition for in Android Studio. It lists the data coming from mysql, but I can’t pass the parameter to access the item. for (int i=0;…
java android android-studio android-activity android-adapterasked 5 years, 4 months ago Alexandre Gomes 45 -
0
votes1
answer430
viewsHow to manipulate buttons at runtime on android
I’m creating an app for a restaurant, where I can already list orders and create the interface, example: coca-cola - 0 + I use a for to go through one List, which generates the list of products. MY…
-
0
votes1
answer529
viewsI can’t use mobile as emulator in android studio
Good morning!! I’m new in programming, I’m starting now, I started a project in android studio 3.4, in note Samsung, processor intel I3, I went to test my project in emulator via USB on my mobile…
android-studioasked 5 years, 4 months ago user150057 11 -
0
votes1
answer187
viewsProblems with the method . getDownloadUrl( );
I’m having trouble updating the method. getDownloadUrl( ); from firebase, I’m trying to save an image in Storege and lego after taking the url and saving it as a path in Database. private void…
-
0
votes0
answers91
viewsError calling android studio java method
I’m having the error of: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference when…
-
0
votes1
answer173
viewsAccentuation in Edittext
I have an API 28 application that consumes Webservice and sends data by GET using Json, and I need a field EditText which accepts Accents, but when it arrives in the database it only records up to…
-
0
votes1
answer55
viewsI’m not getting to finish the Activitys
My problem is this... I have 3 Activitys: (Activitya), (Activityb) and (Activityc) From Activitya to Activityb I do the following: val intent = Intent(this, ActivityB::class.java)…
android android-studio android-activity kotlin android-intentasked 5 years, 3 months ago Carlos Henrique 9 -
0
votes1
answer48
viewsError installing HAXM on Mac OS X
Good morning. I’m new to Mac and I’m having a hard time installing Android Studio in the Operating System. The following error is displayed to me in the installation of HAXM: I read in some places…
-
0
votes1
answer94
viewsStart with Splash Screen
I have a project and use the Navigation Drawer Activity, and there was the need to put a Splash screen at the beginning of the project, I tried to put and now is giving an error when opening the…
android android-studio android-layout android-activity android-fragmentasked 5 years, 3 months ago Ari Melo 131 -
0
votes1
answer139
viewsConfigure Cardview in Recyclerview
I have a RecyclerView and use with CardView, the problem is that in one version of android the visualization is different from the other. I would like the visualization of android 9.0 to be the same…
android android-studio android-layout android-fragment android-adapterasked 5 years, 2 months ago Ari Melo 131 -
0
votes0
answers57
viewsHow to recover mouse pointer position on android
I have an Accessibility service that captures events touch the screen, and I have a USB mouse connected to the Android device, I would like to know how I can recover the mouse position on the…
-
0
votes0
answers38
viewsHow to do a same @Multipart POST call by sending an image, String fields and also an Array of objects?
On a call, I register a professional, which involves sending your avatar, which appears in the first line as file and also send other attributes of the professional, for example, the place where he…
-
0
votes2
answers1387
viewsError running React project Enable "A problem occurred Configuring project ':app'" on Linux Manjaro
I was installing the React Native following the facebook steps, and then when I went to test with the command React-Native run-android happened this error. I’ve set up the android SDK in android…
-
0
votes2
answers86
viewsProblem inserting data into Sqlite and updating Recyclerview
I’m having problems in my Sqlite bank where I created a method in my DatabaseController.java who is called recuperarUltimoDigitado() - this method retrieves the entered value and then updates the…
-
0
votes1
answer138
viewsWhy does my service overload the device?
I am writing an app that has a Service whose role is to take screenshots at 15-second intervals, using an Asynctask. This service, however, overloads my device in such a way that, after a few…
-
0
votes1
answer104
viewsConfiguration of the Notificationcompat
I have a simple app to send Notifications, vibrate, and tap on receipt. On my android 4.3 it works, on another my mobile with android 9 it just touch, does not show notification and neither…
-
0
votes1
answer278
viewsClose app upon checkout
Hello, I have an app, it comes down to: a Activity and a fragment. To activity calls the fragment through the onCreate: Code of Activivity who calls the fragment: @Override protected void…
android android-studio android-activity android-fragmentasked 5 years, 1 month ago Aristófanes Melo 89 -
0
votes2
answers180
viewsError sending push notification with Firebase-messaging
I’m using the below method that worked: public void enviaNotificacaoDenuncia(String mensagem, String token) { Sender sender = new Sender(apiKey); Message message = new Message.Builder()…
java android-studio eclipse firebase-cloud-messagingasked 5 years, 1 month ago jallisson jallis oliveira band 100 -
0
votes0
answers72
viewsIs giving error in (valorG) inside my IF in all parentheses there IF what can be?
package com.example.testetrabalho; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText;…
-
0
votes1
answer120
viewsDefault Activity not found
I was making an app and at one point came across the error Default Activity not found. I tried to undo the changes and the error persisted . Trying to fix it I noticed that all the files .xml…
-
0
votes0
answers33
viewsApplication terminates on start, error occurs only on Android 9.0
Eae personal, I have an application that works normally in all versions of Android, however in Android 9.0 (Pie) starts everything normal displaying the Splash Screen but when going to Mainactivity…
-
0
votes1
answer32
viewsDynamically change the pattern color of a text in a standard listViewAdapter?
I have the following code: String[] hours = new String[]{ "0:00 da madrugada", "0:30 da madrugada", "1:00 da madrugada", "1:30 da madrugada", "2:00 da madrugada", "2:30 da madrugada", "3:00 da…
-
0
votes1
answer65
viewsBack to the main Fragment from a button
Hi, I have an app that uses NavigationDrawer, I have a fragment that has a AlertDialog, and in it I have two send and cancel buttons, no cancel wish back to the desired main Fragment. I managed to…
-
0
votes1
answer177
viewsCalling Activity from Webview
I’m developing my first app Android, using java and I’m having a hard time calling a Activity through the Webview. In the Activity that appears first, it contains only one Webview that will load a…
-
0
votes0
answers71
viewsHow to start a class in the same. java file?
I am new in this part of compilation for Android APP, I would like to know how to start a class q is in the same java file, for example: my 'Mainactivity', already declared the button that should…
-
0
votes1
answer215
viewsHow to pass data through an Intent to Main Activity?
I’m developing a small android app to exercise what I’ve already learned. The application consists of two Activity’s, Mainactivity and a second Activity. On Main I have a textView and a button,…
-
0
votes0
answers418
viewsHow to block app minimization and closure?
I’m developing an app in java, Android Studio, which will serve as a menu, on tablets. I would like to block the minimization and closure of the same(I believe that the owner of the establishment…
-
0
votes1
answer146
viewsCould someone explain to me how this new Navegation Drawer works?
I’m starting to study android, and after update 3.5 of android studio the template of Navegation Drawer has changed a lot and as I’m starting to study,someone could explain to me where the Fragment…
-
0
votes2
answers189
viewsDowngrade project version in android studio from 6.0 to 5.0
I developed a project in android studio API 23: Android 6.0 (Marshmallow). However, the project should be developed for android 5.0. I would like to know if there is the possibility of doing some…
-
0
votes1
answer117
viewsIs it possible to make edits in . apk?
I developed an app in java, android studio, and will publish it on a web platform of my own (also developed in java). Only those who have access to this platform are licensed customers and this…
-
0
votes1
answer182
viewsIn a Flutter application on Android Studio an error message is displayed when modifying something in the build.Radle
FAILURE: Build failed with an Exception. This error occurs when I modify something in the build.Radle of the "app" folder of some Flutter application in Android Studio. So, just clicking on the…
-
0
votes1
answer29
viewsAndroid Studios, how do I not repeat questions?
public class Quizmelhor extends Activity { private question aquestion = new question(); private String resposta; private int scores = 0; private int questionlength =…
-
0
votes1
answer116
viewsanuncio admob no Fragment android studio
I am trying to add banner ad in my app by Fragment, but I could not, nothing appears. What can I do to solve? fragment_inicio.xml <androidx.constraintlayout.widget.ConstraintLayout…
-
0
votes1
answer24
viewsActivity is not showing button
I’m trying to create a button by code, but it just doesn’t show up. This isn’t the main activity, just for the record. package com.example.conjuradortormenta; import android.content.Intent; import…
android-studioasked 4 years, 11 months ago Cícero Augusto 15 -
0
votes1
answer415
viewsHow I Upload Multiple Images Automatically to Firebase Storage - Android Studio
I am developing an app, this app the user can already choose multiple images, but I am not able to upload the images chosen automatically to Firebase Storage. The user can already authenticate.…
-
0
votes2
answers1622
viewsWhere are the application files in the Android Studio emulator
I’m using the Android Studio emulator to test an application, so I’m using Sqlite to save some data, I want to know where the application files are and where Sqlite records, it would just be a…
-
0
votes1
answer139
viewsANDROID STUDIO - background layout image turns white
Good, currently I am developing a project in android studio and I am here with a problem. In one of the layouts, you set an image as the background, but when you execute it, it turns white. The…
-
0
votes1
answer79
viewsScrollview does not scroll the screen in Landscape mode
Hello, Scrollview does not roll the screen in Landscape mode. Portrait mode works normally. I’ve done xml with and without android:scrollbars="vertical". follows the xml code: <ScrollView…
-
0
votes2
answers121
viewsAndroid Studio Firebase Not Entering Data
Does anyone know how to input data into the Firebase Realtime database? My application does not give errors but does not insert anything in Firebase. Note: Database and application are connected and…