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
answer36
viewsFile sent to firebase has 0Bytes
I have a problem, I can send the pdf to the Storage, but it is coming there with 0Bytes. there is the code, and does not generate error, I believe I am not sending any file, but within this…
-
0
votes0
answers143
viewsI cannot get the image URL from a JSON file, although it is done in the same way as other data that is obtained correctly
I’m developing an app based on another app, in case the app is a map (provided by Google Maps Apis) where points are added map and can be clicked to display more information about the location, this…
-
0
votes0
answers676
viewsuses or overrides a deprecated API Recompile with -Xlint:deprecation for Details
C: Users Danil Androidstudioprojects Applicationthe main java src app Danilo cursoandroid with Welcomeactivity application.java: uses or overrides a deprecated API. Recompile with -Xlint:deprecation…
-
0
votes1
answer56
viewsAndroid error "android.app.Application does not implement Dagger.android.Hasactivityinjector"
I am trying to run my app and every time I click a button and go to the Extended activity I get the following error: Process: com.converter.android.dailycope, PID: 28573 java.lang.RuntimeException:…
-
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
answers37
viewsMusic information
I’m making a music player and appeared a difficulty to capture the information of the songs. I’m using a Contentresolver and a Cursor to search for songs in the device’s memory. The information such…
-
0
votes1
answer111
viewsRetrieve the context of a Class (Model)
I have a model and I want to use the "Sharedpreferences" inside it. To instantiate the SharedPreferences, i need context(context), as I do to recover that context? public class PostagemCurtida {…
-
0
votes1
answer154
viewsAndroid - How to detect which is the current fragment?
Hello, I have an application that uses the fragments system and a Floatactionbutton, in one of the fragments I have an ad banner right under the Floatactionbutton, I did it the way below, but it…
-
0
votes1
answer54
viewsTrial version and production version Android
I’m with the following question about managing Android apps. When will we publish a version on Google Playstore (Android), we have 3 options of choice, being them Alpha, Beta and Production. I…
-
0
votes2
answers1134
viewsLinks to pdf files in HTML page using Android Studio Asset directory
Hello. I have an HTML page on a server with several links to pdf files in windows and I’m bringing this same page and the code along with the pdfs for an App for Android. I’m using Android Studio…
-
0
votes1
answer69
viewsData from a Selected Recyclerview
Good afternoon, I need that when the person clicks on a take the data from Animeactivity and is passed to Start screen ? insert image description here…
-
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
answer27
viewsAndroid Studio java: listview in an Activity, send information to her from another Activity
The code of the list: public class Main2Activity extends Activity { //Atributos private SQLiteDatabase bancoDados; private ArrayAdapter<String> itensAdaptador; private ArrayList<String>…
-
0
votes1
answer64
viewsMultilaser tablet does not load svg positioning correctly
I created a character using SVG, which appears unmounted on the tablet inside the webview, this happened in the standard browser also tablet: Multilaser Android 4.4.2 Model Number: ML02-M9-Quad-Core…
-
0
votes1
answer3819
viewsReact-Native keyboard problems
Good night, I’m having a problem on the keyboard of my android application, I would like when opening the keyboard of the same, only the bottom text box if moved, or the items of the screen adjusted…
-
0
votes2
answers201
viewsCameraroll React-Native
I need to create a script that returns and list the images found in the user’s mobile gallery. For this, I am using the getPhotos method of the React-Native Cameraroll component…
-
0
votes0
answers199
viewsHow to create a String Array from a String Array and an Integer Arraylist?
I am creating an application that will need to store the specialties of each clinic registered in the application, these specialties later I will be in the database of Firebase, I am using a dialog…
-
0
votes1
answer118
viewsHow to recover data using Firebaserecycleradapter that has automatically generated Ids?
am having an error using Firebaserecycleradapter, at the time of recovering the data from firebase presents this error: "com.google.firebase.database.Databaseexception: Expected a List while…
android firebase android-recyclerview id firebase-databaseasked 6 years, 1 month ago djalmafreestyler 194 -
0
votes2
answers115
viewsHow to overwrite the Onitemselected method of a Spinner?
I’m trying to overwrite the method Onitemselected of a Spinner in my Fragment, the same way I did with the Button, but it’s not working... how could I get the same result? Inside Oncreate, the…
-
0
votes1
answer92
viewsConvert JSON Java Android - MOIP
I am using the MOIP API to create a client and cannot extract the return below for JSON in JAVA: {"id":"CUS-K2R4F6N2E9SL","ownId":"77888888888888","fullname":"ASDASDAS…
androidasked 6 years, 1 month ago Renato Souza 321 -
0
votes0
answers71
viewsConvert String with multiple values to arraylist and add programmatically into a spinner?
((I am using the browser to enter the site, because app here is problem) I’m pulling several results from formats of a video on Youtube. However, when I step into the spinner only one result passes,…
-
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
votes1
answer210
viewsSwitch from second to third Activity [Android Studio]
How do I switch from the second to the third screen?? I managed to switch from tela1 to tela2 (from Main for CadastroActivity) But using the same code, I can’t get from screen 2 to 3 (from…
-
0
votes0
answers66
viewsAnimation on Android Locking
I’m making an animation in Android Studio for an app, but when running it runs with a few crashes as if it were losing frames. Does anyone know what it can be? package com.example.lucas.tostudy;…
androidasked 6 years, 1 month ago Lucas Santiago Cardoso 1 -
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
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
answer39
viewsScrollview containing Relativelayout
When I put my App in landscape mode, it cuts off some of the information. So I need to put a ScrollView. However, I’ve searched several websites and even the documentation but still can’t make it…
androidasked 6 years, 1 month ago Rogério Alexandre Oliveira 1 -
0
votes0
answers166
viewsTransfer objects between Ragments
Good evening.. I’m a beginner in Java Android and I’m developing an application to be used on Gertec’s credit card machine. However my application will have other forms of payment besides card…
-
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
answers120
viewsAndroid Studio 3.2.1 does not locate "Default Activity"
Personal I am with this problem since Android 3.2. I have done the following procedures to try to fix the problem: - I’ve made clean and rebuild the project - I already cleared the cache and…
-
0
votes1
answer182
viewsAndroid Studio - XML Layout shows no options and always gives error
Any and all layout I create does not show elements like Linearlayout, Recyclerview and others. Only the options below (and the errors too) Also, XML is always with error saying that it is missing…
-
0
votes1
answer311
viewsHow to convert Jsonarray to Arraylist<> on android
Hello, all right? I would like your help to be able to convert a Jsonarray to Arraylist<> on android. I make a request that returns me the following Json: {"normal":{"test_graph":{"VALORES…
-
0
votes1
answer169
viewsButton to return to an Intent
My problem is: Back from an Activity to an Internet. I have the following sequence of pages: -MainActivity -Intent(Escolher foto) -DadosActivity In Mainactivity I have a button to open an Intent so…
-
0
votes1
answer141
viewsIs it possible to use Sqlite3 on Android using the Qpython3 app?
I’m trying to create a table: import sqlite3 def criar_tab_contato(conexao): cursor = conexao.cursor() sql = """ CREATE TABLE IF NOT EXISTS contato( nome text, telefone text, senha text ); """…
-
0
votes1
answer118
viewsPick item contained in a Listview item by clicking on the item
My situation is as follows, my listview loads the items into an xml I created for each listview item At the time listing is like this: What I want to do is, by clicking, take these items circled in…
-
0
votes1
answer955
viewsWebview Android Studio giving error to open mailto email links:
I created an application using the WebView in Android Studio. On my website where the WebView opens has email links that when clicking should open the default email application of the mobile. Only…
-
0
votes1
answer48
viewsAndroid - Notification bar hangs while updating progress
I have an application that uses a custom download manager, I’m trying to show a progress bar in a notification, but every time you enter the while loop I can’t scroll down the notification bar and…
-
0
votes1
answer70
viewsSort listview by the amount of Ikes in Firebase
I need my Listview items with more Ikes to appear first in my feed, how do I do that? follows image of firebase structure My Adapter @NonNull @Override public View getView(final int position,…
-
0
votes1
answer30
viewsGet permission status when user has given permission to Runtime location access on Android
I’m getting the location data using the LocationManager on Android and would like to know how I can catch the action only if the user allow the app accesses your location data. For example, using…
-
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
votes0
answers34
viewsRecover data from other Ragments by clicking button?
I have a form with 3 Fragments, where at last there is a save button, when I click on this button I need to take the data entered by the user in Fragment 1 and 2, get the data from the open Fragment…
-
0
votes1
answer250
viewsR cannot be resolved android Studio
I’m facing a problem, it seems to be a bit simple, but I’m already a few hours into it. I’m mounting a project on android Studio and the Same is giving in the field private UserLoginTask mAuthTask =…
-
0
votes1
answer48
viewsWith creating a Archbar without the arrow icon in the left corner?
I need to create a Toolbar with a searchview that works like the first two images: When this searchview opens it needs to overlap the image(logo) and extend all over Toolbar. If in my menu I use…
-
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
answer270
viewsandroid.database.sqlite.Sqliteexception: near "SQL": syntax error (code 1): , while compiling: SQL * FROM Employers WHERE id =?
I’m trying to do the SELECT below passing a value as parameter in the query, only it keeps giving the same error. android.database.sqlite.Sqliteexception: near "SQL": syntax error (code 1): , while…
-
0
votes1
answer61
viewsFirebase only works in Unity Editor and the pc does not work on Android
Can anyone tell me, what’s going wrong? It only works in Unity Editor. When buildo for android, does not work, but does not report any kind of error. While testing on pc works normally. public void…
-
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
votes1
answer30
viewsProblem recovering firebase values for list
I am making a list, and on this list I pull up the following information id, idPostagem, description, usergroup and photoUsuario. However to popular(add) data to this list I am using the following…
-
0
votes1
answer37
viewsAndroid app opens and soon stops working
I want to create an application to trigger a rele from Arduino. I made the code but when I pass it to my mobile to test it gives the following error: App Has Stopped Working Follows the code. MAIN…
-
0
votes1
answer172
viewsHow to change the course color of my Searchview
For now it is white and I need to put it in black color, I found several tutorials, but I did not find one that works, how do I do it? Code: searchViewPesquisa = (SearchView)…