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
answers7
viewsHow to scroll the entire Android screen that contains an Imageview, Textview and Listview? And not just Listview
Hello, everybody I need to roll a screen that includes a listview. When filling the list and it becomes larger than the screen it is normal to scroll the screen. In my case, I want all the elements…
-
0
votes1
answer59
viewsAndroidstudio giving unusual error while opening project fonts
Androidstudio is misopening the project files, see one of the cases the source Cmapbuffer.java. Just to reinforce, it’s the same file being opened by the OS text editor and the IDE, at first it…
-
0
votes0
answers16
viewsClick button on one Fragment and go to another Fragment
Good morning!! I got a problem. on a button with click function I use the code: Fragmentmanager fragmentManager = getActvity(). getFragmentManager(); FragmentTransaction fragmentTransaction =…
-
0
votes0
answers11
viewsDo not use onItemClick
I would like to use the onLongItemClick method . addOnItemTouchListener, but only him. I don’t want to use onItemClick because it disturbs another way I use to click on the list item (through…
-
0
votes1
answer18
viewsHow to call a method from another Activity using checkbox?
I’m mounting a simulated app and want to call the questions that are in an Activity through another Activity, where have checkbox to select the theme. button.setOnClickListener(new…
android android-studio android-layout android-activity checkboxasked 3 years, 9 months ago Daniel Diniz Marques 26 -
0
votes0
answers16
viewsmethods of other Ctivity
I’m developing a simulated proof app in it will have several categories of evidence and with checkbox to select which you want to do but I’m unable to call the metadata, appears only the first…
-
0
votes0
answers7
viewsQuestions about operation Navigation Drawer
In Android Studio I did a project using his standard Navigation Drawer and implemented several items in the menu. I’d like to understand the workings and that. Every time we call a new menu item it…
android-studioasked 3 years, 9 months ago Marcos 1 -
0
votes1
answer107
viewsI can’t notify Push by firebase
I’m trying to create an application that notifies through firebase and by what I researched I got to a part that I don’t leave anymore wanted help to see if I’m doing right and to fix my mistake.…
android android-studio push-notification android-notificationasked 5 years, 11 months ago renan silva das neves 159 -
0
votes1
answer160
viewsFailed to use Retrofit library in Android Studio
Following the tutorial below, http://www.vogella.com/tutorials/Retrofit/article.html which deals with the use of retrofit library, for testing, I created: One Activity who I called retrofit and a…
-
0
votes0
answers33
viewsAndroid: Data does not persist in Mysql
Good Afternoon, With the code below I get a success message when executing the method, but the data is not in the table when validating whether it was persisted in the database (Mysql). public class…
-
0
votes0
answers89
viewsDisplay static map Google with Picasso on Android
I am developing an app by Android Studio, I would like to create a Recyclerview where you have an Imageview and upload a static image of a determining point on the map. As here:…
-
0
votes0
answers609
viewsHow to change the Gradle build to an earlier version ( android studio )?
I’m creating a project that runs on android studio version 3.1, and I have this old version of android studio but the build Gradle is updated and I can’t make my codes run I don’t want to change my…
android android-studio gradle build android-gradleasked 5 years, 11 months ago renan silva das neves 159 -
0
votes0
answers53
viewsCannot find declaration to go to - Flutter Update
Hello, I updated the flutter recently, and now the project does not want to run... I believe it is something of the new update... That’s the mistake down there. Version:…
-
0
votes1
answer559
viewsRetrofit = Manipulating the Sponse
Well, I’m asking for more help from friends so really, I’m not getting the dynamics. Following tutorials and explanations here from the forum I am TRYING to use the Retrofit but it’s not working. I…
-
0
votes0
answers35
viewsIntent Kotlin receiving null value
I have the following Intent of an Activity: val intent = Intent(this, FormCadastroUsuario::class.java) intent.putExtra("email", email) startActivity(intent) And to receive in another Activity, I…
-
0
votes3
answers87
viewsIn the Kotlin language, how to access a public variable that is in one class, through another class?
WHAT I DID: I created a class in android studio and I did it using Kotlin, and within this class I created a "public" variable like string, asseguir: var variavel_de_tipo_public_string : String =…
-
0
votes0
answers11
viewsUsing Mobileads.initialize in onCreateView
Hi I’m developing an app and I wish to advertise on it, only I’m having a question that’s starting to become a concern, My app has a navigation bar and I use fragments instead of activitys and every…
-
0
votes0
answers30
viewscontains already entry 'Androidmanifest.xml', cannot overwrite | Android Studio Arctic Fox
Hello, good afternoon. All right? I am facing some problems after updating my Android Studio. Does anyone know how to solve? app build outputs apk dev debug app-dev-debug.apk' already contains entry…
-
0
votes1
answer51
viewsSerivces on Android rebooting variables
Me developing a test application in which a Service is running in Background and is sending notifications to your phone every 10 seconds. To improve the test I created a counter that increases with…
-
0
votes1
answer95
viewsoutput.json and app-relase.apk in Android Studio and the error while installing
Hello, good morning! Every time I download an example of a project in AS, I realize that if the output.json comes along with the apk, the app will not install in any way (either in the emulator or…
-
0
votes1
answer158
viewsAndroid Studio Update: preview adding shadow in XML
Since the last update to Android Studio 3.3, a shadow appeared on each of my elements in the XML preview layout. Although it doesn’t appear in compiled rendering, it gets in the way of editing. How…
android android-studio android-layout android-activityasked 5 years, 10 months ago Leonardo Figueiredo 517 -
0
votes2
answers189
viewsChange the position of the maps map by clicking
I want to change the position of the marker of the maps by clicking on the screen of the Smartphone, in my code instead of changing the position it creates several markers. below the main code…
-
0
votes1
answer98
viewsHow to disable click(Touch) in a Webview?
The application is simple. Show a webview from an external website. The problem I want to disable clicks, I do not want to give the user to navigate, I just want to look at the initial page set.…
-
0
votes1
answer141
viewsError while receiving json from Android Studio objects
Good afternoon guys, I’m having trouble getting an array of objects and show in Listview on android. In case the class that is giving error is this: public class HTTPCarregaLista extends…
-
0
votes0
answers43
viewsCalculate button closes application
I can’t understand why the Calc button makes the application close instead of calculating and showing the result in the textview. package com.example.cc; import…
-
0
votes1
answer453
viewsHow to pass double type variable through Bundle class?
I cannot pass a textview value from an Activity A to Activity B to perform some calculations. I tried through the putExtra method to pass variable of type string and then convert to double and could…
-
0
votes1
answer71
viewsHow to create a Fragment by clicking a button?
I have the following Fragment: public class ListaBimestresFragment extends Fragment { public ListaBimestresFragment() { // Required empty public constructor } @Override public View…
-
0
votes2
answers2605
viewsHow to access the Android Studio Theme Editor in version 3.3.1?
I’m editing this question because I believe many devs must have experienced the same problem: "Can’t find the Theme Editor in AS". In the documentation from Google Developers you find the following:…
android-studioasked 5 years, 9 months ago gustavo pereira 53 -
0
votes1
answer43
viewsCloud Firestore can’t get data out of onComplete
So my code is this:: SpinnerDialog spinner; String[] textoSeparado; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes1
answer176
viewsuses unchecked or unsafe Operations
I am developing an application in Android Studio with Firebase that is presenting the following error uses unchecked or unsafe operations…
-
0
votes1
answer57
viewsListview with Arrayadapter
Hello guys I’m new in Android and I’m with a question of data overwriting in listview that I haven’t been able to find yet. I have a Tabbed with 3 tabs, and when clicking the first time tab the…
-
0
votes1
answer73
viewsHow to handle data entered into a fragment of a Tabbed Activity in Android Studio
I am learning to develop using Android Studio and I am with a beginner’s question: which class I perform data processing from a click of a fragment in a Tabbed Activity. To illustrate simply, I…
-
0
votes2
answers308
viewsAndroid internationalization - Developing in Android Studio
How should I apply internationalization to an Android app,using various languages? I need to develop an Android application where the original words in Portuguese should be translated into the…
-
0
votes1
answer63
views"Annotations are not allowed here" when using @Click on android studio
I’m starting to use android Annotations now I have the following class @EActivity(R.layout.activity_login) public class Login extends AppCompatActivity { @ViewById(R.id.senha) private EditText…
-
0
votes1
answer120
viewsMake the Tostring() method return two fields separately from a typed object
I need to get the Tostring function to return the size and color separately, as I am filling a spinner with them. A spinner is filled with colors and another with size. However if I put: public…
-
0
votes1
answer116
viewserror: Could not find the Androidmanifest.xml file, using Generation Folder after installing android Annotations
I started getting this error after creating my classes with Android Annotations and running the project in emulator. This is my gradddle Project // Top-level build file where you can add…
android-studioasked 5 years, 8 months ago Cléo Sousa 123 -
0
votes1
answer30
viewsRemove item from an Adapter class
I’m trying to remove the listview item, but when I test the app does nothing... My class Productoadapter: public class ProdutoAdapter extends ArrayAdapter<Carrinho_Item> { private Context…
-
0
votes1
answer56
viewsSearch String Random in Sqlite and then show the Result on the Screen with button
// Create Database. final Sqlitedatabase bankDados = openOrCreateDatabase("Table name", MODE_PRIVATE, null); // Criar Tabela. bancoDados.execSQL("CREATE TABLE IF NOT EXISTS questions(id…
-
0
votes1
answer32
viewsen - Http Post request error Ionic Probleme No 'Access-Control-Allow-Origin'
I’m having problems with the source of access on Ionic 3 I’ve already enabled header('Access-Control-Allow-Origin: *'); in PHP and apache .htaccess however the error continues to persist, I did some…
-
0
votes1
answer118
viewscompare Array with another Array com for in Java
Everybody, Good afternoon. I am wanting to compare 2 Array, where 1 array has randomly set value. I want to use for so I don’t have to repeat 100 times. But I don’t know, because it always shows me…
-
0
votes0
answers277
viewsClick Effect on Android Button
Hello people I have the following situation; boot selected.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer34
viewsUse findViewById in Android Studio’s standard Mapsactivity
I’m using the standard Maps template available on Android Studio, and in the activity_maps.xml added a EditText with the id towhere. In the Mapsactivity class I just added a…
-
0
votes1
answer159
viewsAndroid Studio emulator does not start
Is returning the following errors: 03:05 Emulator: emulator: ERROR: x86_64 emulation currently requires hardware acceleration! 03:05 Emulator: Warning: Quick Boot / Snapshots not supported on this…
-
0
votes2
answers105
viewsChange Textview with Listview event
I would like to change the total value whenever an item is changed... Class that sums up: public class Somar { private List<Carrinho_Item> lista; private double total = 0; public…
-
0
votes2
answers1502
viewsHow to get the value of the variable outside the Future method in Flutter?
I am developing in a book app and am stuck on the screen where will open the file . pdf. I need to get the path of the mobile directory using path_provider to send to pdfviewer but I can’t get the…
-
0
votes1
answer468
views(Android Studio) Webview loads the page and does not open
I am making an application that gathers some sites, but some of them keep clicking on Webview and does not open. As an example I will use the Urpay. I’ve seen this site being opened by another…
-
0
votes2
answers235
viewsHow to convert byte[] to mp3
I’m writing an app where I have a list of byte[] and need to create files .mp3 from these byte vectors. When prompted, the app zips all these files into one file .zip, but later the player is not…
-
0
votes1
answer808
viewsHow to clean the data stored in memory, in cache or then reset an application (App) in android studio?
I am developing an application in android studio and need to solve this problem. I am using an internal database in Sqlopenhelper to store the products chosen by the user and show in a shopping…
-
0
votes1
answer921
viewsOpen pdf document via Intent?
I have an application that generates a pdf through a button and when clicking on the button opens a alertdialog where I name my file and therefore opens a snackbar with the title " Do you want to…
-
0
votes1
answer1246
viewsError: illegal Character ' ufeff' - encoding "UTF-8 without BOM"
I’m in the process of migrating from an Android project created in Eclipse to Androidstudio. When trying to compile after migrating, the following error appears: Error:(1, 10) error: class,…