Most voted "android" questions
Android is an operating system for mobile devices developed by Google and the Open Handset Alliance. Use this tag to reference questions related to programming for Android and be relevant only to this operating system. Use the [android-subject] tag instead of [subject] alone.
Learn more…8,935 questions
Sort by count of
-
0
votes1
answer32
viewsAsynctask and Adapter for Listview in conflict
I’m creating a chat app using socket and after developing all the layout I decided to enter the connection part... the problem is that when I receive messages the app closes and presents some…
-
0
votes0
answers69
viewsButton that disappears when scrolling the screen
Hey, guys, could you help me out in the community? I’m wanting to make my app button hide when I scroll the screen up, and appear when I scroll down. Like the application in the image below, when we…
-
0
votes1
answer27
viewsSelect me returns null, in the second iteration of the FOR loop, on
I have a database, ROOM, I make a select right after the return of a asyncTask. I take the U-turn and make a select, awaiting the return of this select. Works normally in the first iteration of for,…
-
0
votes1
answer94
viewsGo from main activity to fragment
I’m building an app on Android and in it will have among the various activities a Fragment for user profile. The problem is that it would need, from the profile selection, to go from the main…
-
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
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
votes2
answers40
viewsError trying to run firebase forgot-password
I am making the password forgot screen of firebase and is giving an error when I put the . sendPasswordResetEmail. That’s the version of my firebase : implementation…
-
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
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
votes1
answer541
viewsTake the value of a variable in Seekbar - Java / Android
I am a beginner in Java / Android and I am developing an application with image processing. I already have the application working with the necessary filters. In case I have: Canny(edges, edges,…
-
0
votes0
answers13
viewsFailed to run App in android studio
Good afternoon, you guys, I’m in need of a help please, I am running my App on my mobile and also on my emulator but in both cases my app looks like this as shown in the figure attached, so I would…
-
0
votes1
answer36
viewsRecover snapshot inside a node
I need to retrieve all users within a user node, follow firebase structure: To recover these values I am making an addListenerForSingleValueEvent, follows code: private DatabaseReference…
-
0
votes0
answers110
viewsHow to set the Navigation View menu by code?
For now I’m setting the menu through xml, this way: <android.support.design.widget.NavigationView android:id="@+id/navView" android:layout_width="match_parent"…
android android-layout material-design navigation-drawerasked 5 years, 11 months ago Luis Felipe 162 -
0
votes0
answers215
viewsCompress Android Studio File
I’m trying to compress my File which in case is an image but it keeps going with sizes above 4MB someone would help me. Follows code below: @Override protected void onActivityResult(int requestCode,…
-
0
votes1
answer102
viewsMYSQL connection error on Android using php
I’m trying to connect my Android Java application via php with my MYSQL database and insert data in it, but despite the Android application report that the "user was successfully registered" the…
-
0
votes1
answer37
viewsGet name index json Java Android Studio
How can I get the index name of a JSON object in Java in Android Studio. Code: JSONObject jsonObject = new JSONObject(); try { jsonObject.put("nome", ""); jsonObject.put("sobrenome", "asdasd");…
-
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
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
votes2
answers69
viewsAndroid Studio does not recognize the getRating() method
When I try to use the getRating() method in the Formulariohelper class Android Studio informs that "Cannot resolve method 'getRating()'". I’m importing the package from View and Ratingbar and yet…
-
0
votes1
answer45
viewsAndroid Htppget URL Connection
I’m trying to make an httpget connection from android to php, I made all php code connecting to mysql but starts giving error from after "urlConnection = ..." protected String…
-
0
votes1
answer483
viewsHow to return data from a thread to the runtime layout in flutter
There is how to thread using the flutter and return the processing result on the screen? I have the following code. In the main class _Myhomepagestate I have the layout and function _process(). The…
-
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
votes1
answer39
viewsjava.net.Proxy problem with Marshmallow and versions below
I have the following test : package com.technopartner.technosdk.proxy; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import…
-
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
votes1
answer67
viewsClear a listview that is inflated with an Inflater layout, Android C#
Good am with the following problem, I used a layout inflater to fill a listview with a adapter but I want to clean this adapter, because the products contained in the list does not change when I…
-
0
votes2
answers456
viewsOpen an Activity by clicking an item in a list view
I’m a little lost already, I want that when click on an item in the list it opens another Activity, but only with Toast... I’m beginner so if you can help me thank. public class estatisticas extends…
-
0
votes1
answer160
viewsError stating that Activity was not declared on Androidmanifest.xlm?
This is the code of my Androidmanifest.xml: <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher"…
androidasked 5 years, 11 months ago Ivan Luís Führ 9 -
0
votes0
answers34
viewsRadio Player Android Parando
So I have the following Activity below. In it, I have a radio player. However, when I minimize the App to see something else, such as using the calculator, the player stops playing. I’m using the…
-
0
votes1
answer78
viewshtml - Two vertical scrollbars on Android
Chrome’s standard Custom Scrollbars and scrollbar are in conflict due to height:100vh. But I think Chrome detects how to 100vh is equivalent to the number of Y pixels of Android, and not that of…
-
0
votes1
answer577
viewsFirebase does not save data
so I’m having a little problem and I can’t solve it for studies I’m creating an app already famous and my doubt is the following when registering a user your name and email are not recorded in the…
-
0
votes1
answer35
viewsOpen Activity by clicking an item in a custom listview
I created a custom listview, it’s all right, I tried it here but it’s not right, I wanted to implement the click on an item, but since it’s custom listview maybe it’s something different, I’m a…
-
0
votes1
answer217
viewsPagination with recycleview and staggeredGridLayoutManager
I’m trying to paginate with Recycleview and Staggeredgridlayoutmanager but I’m not getting the right result. Every time I start the app, right at the beginning of the list, it displays the Oast that…
-
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
answer29
viewsProblems with checkbox in an android view Adapter
In the example image it shows three checkboxes in a line of a listview. But I have to make a way in which, by checking 1 checkbox, uncheck others on the same line that are marked. You have how to do…
-
0
votes1
answer37
viewsHow to show details of a recycling item by id?
In my adapter I putExtra the id and then in the details of the activity I want to get the id and through the id go to search in the database the information. for example name Myrecycleradapter…
-
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
answer375
viewsHow to address firebase notification to an app?
I am developing an application that needs to receive notifications from the server PHP. I was able to develop a code that sends the message, but it is not displayed in the device tray. I don’t think…
-
0
votes2
answers3490
viewsError uploading new version of an apk to google play console
I have an app already published and I want to publish a new version. While uploading apk I’m getting this error: Sending failed The APK or Android App Bundle must be named after package…
-
0
votes2
answers535
viewsHow to access child node in Firebase?
I have the following tree on Firebase: How do I access to list the data within the node "holes"? I am using the following data listing method: public void recuperaFuros(){ DatabaseReference furosRef…
-
0
votes2
answers205
viewsUse Ratingbar with numbering next to Android
Does anyone know how to use the Rating bar with the numbering on the side? The way the ifood uses. I tried to insert ratingBar with only one star but it doesn’t work, and as an image inside an…
-
0
votes1
answer419
viewsDelete a user from firebase Auth when an Activity is destroyed
I have an activity call ValidadorActivity, in this Activity I do a validation by SMS, right after the user registers. The register is made by Firebase Auth however is done before this validation, so…
-
0
votes0
answers31
viewsRetofit2 accessing GET api
i am using retrofit2 to access an API... It turns out I can’t get the data from this API. Link to API used I managed to make my code work with this API: (That one), but when I redo the code to use…
-
0
votes1
answer33
viewsProblems with Listview Adapter
I own an Activity that has a ListView. The items of ListView I built it myself. I put a EditText and I need to do an event setOnClickListener in it. But the right thing would be to do this in the…
-
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
answer45
viewsGet Kotlin presets in java
Companywebclient.kt fun find(cnpj: String, success: (company: Company) -> Unit, failure: (throwable: Throwable) -> Unit, finished: () -> Unit) { val call =…
-
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
votes0
answers30
viewsuse Asynctask to fetch data but my Activity is slow to appear
I have a class RepositorioCidades searching data from cities using AsyncTask and returns a ArrayAdapter to the MainActivity, but when I call the MainActivity is a black screen until the data of the…