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
votes0
answers34
viewsWhy is giving this error in Android Studio?
I already downloaded and installed the emulator, but it’s giving this error…
android-studioasked 5 years, 3 months ago Rebeca Aguirrer 1 -
0
votes1
answer180
viewsTake parameters from a Recyclerview
I’m developing an APP where shows the user the activities to be done in a RecyclerView. If he wants details of the activity he can click and see more as description, name and etc. Now I have the…
-
0
votes0
answers22
viewsThe app terminates unexpectedly when I run the database
I made an application in Android Studio that inserts into the sql server database some registration data. When I give a send, the app closes unexpectedly. package imports public class…
-
0
votes2
answers689
viewsHow do I select this in the Firebase Cloud Firestore database?
how do I do this kind of select in the Firebase Cloud Firestore database ? _results = (await connection.query('select id from produtos where numero_serie = $_numeroSerie')) I need to get the product…
-
0
votes0
answers35
viewsAndroid TCP client does not work
Good Afternoon, I’m creating an application in android studio to send a string from smartphone to pc. My application has the following code: public void Send_Command(View v) { testClass();…
-
0
votes1
answer56
viewsRename Imageview to Upload
Good morning, I would like to ask a question, my APP so far the guy takes a photo of the phone and is in an Imageview (Ex: img1), I need to be created a name defined by me in an example variable:…
-
0
votes1
answer25
viewsError in BD/list
I was following a tutorial on how to CRUD, but an error appeared to me (in the tutorial is ok) How do I fix it? lista = (ListView) findViewById(R.id.lista_Madicamentos);…
-
0
votes0
answers123
viewsANDROID STUDIO: Enable VT-x in your BIOS security Settings
appears the following alert when I try to run an emulator in Android Studio: Intel HAXM is required to run this AVD. /dev/kvm is not found. Enable VT-x in your BIOS security settings, ensure that…
android-studioasked 5 years, 3 months ago Carlos Mesquita 1 -
0
votes2
answers4738
viewsFlutter, how to compile the project to run native on android
I’m starting in Flutter, I would like to know how to compile my project to be a native application, such as for Android. How can I do this from the command line? I found Andoid studio very…
-
0
votes1
answer61
viewsHow to use Sharedpreferences access modes?
When we use Sharedpreferences, we have for example: SharedPreferences prefencias = getSharedPreferences(nome, modo); Where "name" is the name of the preference and "mode" indicates the permission…
-
0
votes0
answers210
viewsNot all additional attributes appear in android studio
Great community, I’m starting now in Android Studio and face already I came across a "problem" that I could not solve, I need the help of gentlemen. I need to link a function to a button, however,…
-
0
votes1
answer68
viewsWhat could be the mistake?
FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Could not create service of type…
-
0
votes2
answers66
viewsError in list/BD
I have an error in this excerpt (appears the whole stretch of red), what is wrong? lista.setOnLongClickListener(new AdapterView.OnItemLongClickListener(){ //clique longo, para selecionar a linha…
-
0
votes2
answers228
viewsHow to show data from a db in 3 tabbed Fragments?
How to show the data obtained from a database in a tab with 3 Fragments. I can already get the data from the tab in Activity. My difficulty is in throwing this dice on controls that are arranged in…
-
0
votes2
answers449
viewsError opening another Activity
Error that appears: 2018-10-16 00:31:04.280 9433-9433/? E/AndroidRuntime: FATAL EXCEPTION: main Process: imobmobile.br.com.imobmobile, PID: 9433 java.lang.RuntimeException: Unable to start activity…
-
0
votes1
answer169
viewsWhat does it mean to underline this section of the code?
I’m trying to use a searchview along with the listview of my project, but I’m not getting it, because where I’m going to set the lisview Adapter inside the onQueryTextChange method, it appears…
-
0
votes0
answers72
viewsError compiling app for Android 4 (Program type already present)
I have an Android (Java) project and after migrating to Androidx I received the following error (d8 errors): Program type already present: com.enterprisedt.BaseIOException Note that Gradle…
-
0
votes1
answer677
viewsConvert URI to Bitmap
Good afternoon, I am as a doubt, how can I convert a URI to Bitmap and then convert to Base64 so I can send to the Database. private void abrirCamera() { fileUri = getOutputPictureUri("GRP"); if…
-
0
votes1
answer70
viewsWhy is it that when I do "commit," my project is full of errors?
I recently started working with Github to commit my projects but every now and then I notice something very annoying: my project gets FULL of errors, what I see most is:…
-
0
votes3
answers117
viewsWhat technical obstacle for Android not support the new versions of Java
I wonder why the version of java in the Android remains the same after so many years. Against Kotlin update with a certain frequency, it is a technical issue the stagnation of Java?…
-
0
votes0
answers18
viewsFailed to create directory?
error: failed to create directory '\\?\D:\APLICATIVOS ANDROID\Aplicativos\Aplicativo VideoApp…
-
0
votes0
answers130
viewsAction Bluetooth button on Broadcastreceive (Android studio) **Java**
I’m creating an App in android studio**(Java)**e Preciso parear um botão via bluetooth exemplo: Selfie stick button that when triggered it opens an Activity even the application being minimized if…
android-studioasked 6 years ago Anderson.PP 11 -
0
votes1
answer41
viewsHow to make only one user have access to Activity?
I need some help from you because I’m having a hard time getting only one user to access a particular Activity. Ex: I am developing an App where the settings screen only I will have access with my…
-
0
votes1
answer96
viewsHow to use attributes of a subclass of an abstract class?
I have the following scenario: an abstract class "Listitem" and the classes "Headingitem" and "Contact". The relationship between them is as follows: ... } abstract class ListItem{ } class…
-
0
votes0
answers146
viewsTexts don’t even appear on the button
Good Afternoon! I have the following XML: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…
android-studioasked 6 years ago Carlos Rocha 1 -
0
votes1
answer241
viewsAndroid Studio 4.0 incomparable Flutter Plugin
Android Studio has reached version 4.0, however before updating warns that the flutter and Dart plugin are incompatible with the new version of Android Studio. Has anyone tried any solution, or just…
-
0
votes1
answer46
viewsI accidentally modified the Git branch of my project in android studio
Guys, I was working on my project when I accidentally clicked on something, and apparently I "lost" the newer versions. I appeared this message on my android console studio: Warning: you are leaving…
-
0
votes1
answer174
viewsHow to concatenate an invoked String from an xml file with a variable?
In Android Studio, I’m trying to concatenate a String I saved in an xml file (strings.xml) with a float variable as follows: gas.setText(String.format("%s %s", R.string.gasoline_mod, value)); The…
-
0
votes1
answer33
viewsRetrieve the containsKey()
Good afternoon, I’m starting to use Android Studio, in the following situation I’m stuck: have the Mainactivity where through a recyclerView I have a listing, by clicking on one of these listings…
-
0
votes1
answer29
viewsHow to know which permissions a dependency uses
I have an Android App made in Java published in the Getnet store, in which their approval system is quite strict and recently had a version of the app reproved because it uses the permission :…
-
0
votes1
answer27
viewsWhat is the correct way to recover an Arraylist<Long> from the firestore cloud?
I am using the following code to try to recover an Arraylist from the firestore: List<Long> longs = (List<Long>) task.getResult().getDocuments().get(i.get()).get("longsArray"); However…
-
0
votes1
answer123
viewsWhat’s the best way to check if a collection exists in the cloudFirestore (Android)?
I am having trouble verifying the existence of a collection. I am using the following code to perform this function: FirebaseFirestore.getInstance().collection("ID da COLEÇÃO").document("ID do…
android android-studio firebase firestoreasked 4 years, 2 months ago André Luiz Alexandre de Souza 3 -
0
votes1
answer391
viewsLocation in the background android studio
---------- This is my service public class LocationMonitoringService extends Service implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener {…
-
0
votes0
answers32
viewsStopping system
I got the following form of login: XML <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes0
answers17
viewsLink does not update after compiled (Android Studio)
With android studio I’m changing a link in a code, changing from http://xpto.com/tal for http://xpto.com/other. In the code is modified, save the project but when I compile in the app appears the…
-
0
votes0
answers24
viewsImages Listed by Recyclerview Disappear when giving Scroll and when filtered by Getfilter() all Somem
Hello, I’m new to Android and I face a problem. I am bringing from the database a list of cars by Recyclerview in a Fragment, and bring together the images of them in binary format. I’ve been able…
-
0
votes1
answer82
viewsWhat is the difference between running the program on the emulator and on a physical device?
I’m starting studies on android development with Android Studio and would like to know if it is possible to create applications just running the code on a physical device or if it is necessary to…
-
0
votes1
answer867
viewsError trying to start android studio emulator
I’m starting to study React Enable, but whenever I try to start the emulator an error. C:\Users\MIDIASILK\Documents\Junior\Android\curso-react-native\exercicios>emulat or -list-avds…
-
0
votes0
answers28
viewsError in Gradle Android Studio - . Gradle buildOutputCleanup cache.properties (System cannot find specified file)
People yesterday was running my project in Android Studio, then today I will open and the project does not synchronize, first I had an error with the ". Gradle/caches/4.6/scripts" then I searched…
-
0
votes1
answer211
viewsMove an image of an Activity to the main screen
How can I pass an image of an Activity to another actiivity? I have an image on my settings screen, I want to send it to my main screen. I saved it in my sharedPreferences and would like to use the…
-
0
votes2
answers448
viewsHow to remove back arrow from home screen (flutter)?
People I’m having a problem the moment I logout type, I press the icon to logout it leaves the app, only when soon again it presents an arrow back on the home screen. my code is like this:…
-
0
votes0
answers56
viewsHow to List Several Formulars in FLUTTER Within a Card
I’m trying to list the information inside the forms in a single Card, but I can’t because the Card has only one property title and a subtitle. My Code : @override Widget build(BuildContext context)…
-
0
votes0
answers21
viewsdependency problems!
I’m having problems with libraries and I’m trying to follow this tip below but it’s not working:…
-
0
votes0
answers8
viewsScrollview - Scroll codeTo not working properly
Well, according to the title, I’m having trouble solving a problem in my code, the line to textView that Scrollview brings through scrollTo code. When I press the button he does not show me the line…
-
0
votes0
answers17
viewsBonsoir j'ai une Erreur qui m'empeche de continuer mon signup
Le dataHelper est la package estm.sn.ecommerce.base; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import…
android-studioasked 4 years ago Ndeye codou Mboup 11 -
0
votes1
answer57
viewsInclude Button
Good evening, I’m doing a TCC project, and I was wondering which function I can use on the buttons + and -. The idea is a request app, where when you click on + an item will be added, and when you…
-
0
votes0
answers30
viewsVariable problem (Kotlin)
Hello, I’m doing an android Studio project with Kotlin and I’m having the following error. equal.setOnClickListener { try{ val expressao = ExpressionBuilder(expressao.text.toString()).build() val…
-
0
votes0
answers16
viewsTWO BOX CHECK GIVING ERROR
Using this check in case the user leaves the text box blank, he gives me an Alert saying that he has to insert something, but is not entering this part of the code..…
-
0
votes0
answers11
viewsAndroid App Commercial Guide, banner before companies
I have a business guide app, similar to James and Google Maps, I use a Recycler to display companies as soon as the city is selected. And there are also buttons on Toolbar where you select the…
-
0
votes0
answers16
viewsVideoview switches to a new Activity Android Studio
Hello. I’m creating an app that in the first Activity shows an introductory video and I wanted when the video ends the next Activity to start automatically. How could I do that? Thank you.