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
-
-2
votes1
answer49
viewsHow to Shuffle String Value? (JAVA ANDROID)
The thing is, I’m creating an android app and I prescribe shuffle the value of a string. Example: String name = "Bruno"; Shuffles the string value(name). Output: "ronub"…
-
-2
votes1
answer20
viewsactivity_main.xml does not show layout, shows only a small English key icon and the message: "Toogle tools visibility and position"
This is a program I did some time ago. A simple calculator. I searched for options for viewing Android Studio, but it seems program thing. <?xml version="1.0" encoding="utf-8"?>…
-
-2
votes1
answer23
viewsProblem with android studio using flutter
I can’t run my project in android studio emulator…
-
-2
votes0
answers30
viewsWhat is this command line for: self::getContentView($view)
What is this code for: self::getContentView($view)? Android Studio, PHP My teacher put this command line alone, did not understand the question f
-
-2
votes2
answers387
viewsPass textview value to another screen and convert to double again?
So I have a value stored in a text view of a previous calculation in Activity 1 and I need that value in Activity 2 to perform other calculations. Pass only the value in String I can pass, what I…
android-studioasked 5 years, 11 months ago IF12 11 -
-2
votes1
answer251
viewsDoes anyone have any idea how to mount a multiple alarm system using the Workmanager library?
I am developing an application that works as "Alarm" to take the medicines at the right time. I am trying to use the "Alarmmanager" Repeating to run these alarms. However, some problems are…
java android android-studio android-service android-alarmmanagerasked 5 years, 5 months ago Andre Alas 54 -
-2
votes2
answers79
viewsAndroid Studio Linearlayout generating error while scrolling
Greetings, My android application has a Linearlayout and, within it, a Gridview that is being filled correctly with the images I want. The problem is that by scrolling the screen down (to see the…
android-studioasked 5 years, 2 months ago rioleal 1 -
-2
votes1
answer30
viewsI need to call an Activity through a Fragment, I looked for some answers but they didn’t work
JAVA public class Contactofragment extends Fragment { Button btnMaps; TextView txtMaps; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {…
android android-studio android-activity android-adapter fragmentasked 5 years, 2 months ago vinicius 1 -
-2
votes1
answer40
viewsError while creating a file
For some reason you can’t create a file. W/System.err: java.io.IOException: No such file or directory Follow the code below: public class MainActivity extends AppCompatActivity { ImageView…
-
-2
votes1
answer148
viewsWhenever I run the app, it closes itself
Good afternoon, I’m having a problem and can’t solve it. Every time I try to test the app on the phone it closes alone: Logcat: 2020-05-09 16:02:58.397 30691-30691/com.leandrel.Uri E/Androidruntime:…
-
-2
votes1
answer42
viewsMethod cartReference Returning Null (in my firebase has the Subcollection 'Cart', within the 'Users' Collection)
I’m days away with this problem, I’m making a delivery app, time to add the product to the cart, it tells me it’s returning Null the method cartReference, but when I click again on the button " add…
-
-2
votes1
answer133
viewsjava.lang.Nosuchmethooverthrow: No virtual method group(Ljava/lang/String;)Ljava/lang/String;
Oie I have a problem with an app in Android Studio, it compiles and runs on my phone, but when I click on some button it gives this error. Error: E/AndroidRuntime: FATAL EXCEPTION: main Process:…
-
-2
votes1
answer36
viewshow do I see the total
I’m creating a college shopping app, I need that when I press the add button it shows the value of the specific product in total and that it adds together the following values when pressed the add…
-
-2
votes2
answers34
viewsTravel variable keeps at 1 in the Firebase database, when button is pressed, instead of adding 1 more to the database
Hello, for some reason the travel variable is not adding 1 more to the Trips field in Firebase, when the pegLoc button is pressed, could you help me? , Follows below code: public class Mainactivity…
-
-2
votes1
answer16
viewsThe app closes when the user leaves the account
When the user leaves the account the application closes. The problem arose when I changed the rules of the Altime from that { "rules": { ".read": true, ".write": true } } for that reason { "rules":…
android android-studio firebase firebase-database realtime-databaseasked 3 years, 7 months ago izadora 1 -
-2
votes0
answers5
viewsWhy doesn’t the code show in the spinner the data of the "settlement" table in the firebase?
spListaAssentamentos = findViewById(R.id.spListaAssentamentos); nomeAssentamento = new ArrayList<>(); databaseReference = FirebaseDatabase.getInstance().getReference();…
-
-2
votes0
answers5
viewsHow to open a Dialog from a Basedapter on Android?
I have a Button inside a Basedapter where relates the production orders of my APP, the Onclick of that button should open a Dialog with a new basedapter, but is giving the following Exception:…
-
-3
votes2
answers3912
viewsEmulator does not load
I need to use the android IDE studio, I installed it all right, only at the time of running the applications made, the emulator just keeps loading, and does not take. Configuration of my Notbook:…
-
-3
votes1
answer434
viewsHow to correct what is red?
I’m beginner and I’m not able to fix what’s in red in the image when I changed the code changed color but in Android Studio like this https://i.stack.Imgur.com/SCAR6.jpg public class MainActivity…
android-studioasked 8 years, 2 months ago Sandra Melo 11 -
-3
votes1
answer631
viewsERROR IN ANDROID STUDIO APP CLOSING WHEN RUNNING
recently (and all of a sudden) an extremely annoying and annoying error has arisen in Android Studio, in fact the IDE itself does not point error in any code, but when I run an app that has images,…
-
-3
votes1
answer128
viewsFailed to add Class objects to the Array List
I have the class below: package carcleo.com.radiosingular.classes; import android.util.Log; import android.widget.Toast; import com.google.gson.JsonArray; import org.json.JSONArray; import…
-
-3
votes1
answer192
viewsException in thread "main" java.lang.Illegalargumentexception: Type without superclass: module-info
I created a game with libgdX and runs normally on mobile emulator, but now to generate the key apk it does not generate, I’m wasting a little time with it, someone knows the solution ? Exception in…
-
-3
votes1
answer29
viewsWhy is the code for this activity unable to initiate the next activity?
The activity shows the button, but when I click nothing happens package com.example.conjuradortormenta; import android.app.ActionBar; import android.content.Intent; import…
android-studioasked 5 years, 3 months ago Cícero Augusto 15 -
-3
votes1
answer44
viewsEmulator of android studio closing alone
beauty? Recently, I migrated to Kubuntu and tried to install Android Studio so I could emulate my apps. I followed this tutorial and I was able to install the AS successfully. However, when I try to…
-
-4
votes1
answer81
viewsJava Help: Save a Key-Value Arraylist in a BD
I would like to know how to save a key and value Arraylist in the database using Java; I had already made an implementation earlier in php similar, whose I created the array and used the function…
-
-4
votes2
answers678
viewsPayment by android card
I am developing an app to buy snacks and need to sell with credit card I started to observe the API of the pagseguro and I have the following doubts : It is the best api to integrate ? I need some…
-
-5
votes1
answer273
viewsReact Native not working
Eae you guys, blz? I want to start making application with React Native, I’ve installed the programs necessary to be able to start it, but when I put the command in cmd "npx React-Native…
-
-5
votes2
answers55
viewsHow to format the date and month so that they are typed 0 in their formatting (day or month that goes from 1 to 9)?
I’m wanting to add a zero in the day and month in the date that the editData_devolucao receive. Like, instead of appearing day 05 is just 5 and in the month instead of appearing 06 appears only 6.…