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
-
-1
votes1
answer32
viewsI can’t send my App data to the database
Ola I have had some problems with my Sqlite database in Android Studio when I try to add a new user it does not insert and presenting the error message when inserting users. According to what I…
-
-1
votes1
answer61
viewsError clear Textwatcher field
Staff use the TextWacher in the EditText, works perfectly and when I finish the registration I put campo.setText(""); it does not clean, close the application and shows an error. my class…
-
-1
votes1
answer90
viewsHelp me in a logic to solve my problem
Well, I’m creating an application for base conversions and I kind of created a mini keyboard with the keys to Hexadecimal (A, B, C, D, E, F), but it’s a hexadecimal text field when I type 3 and I’ll…
-
-1
votes1
answer155
viewsHow to update a database (Sqlite DB) using the Workmanager library?
I am using the workmanager library to show a notification to the user indicating the time to take his medicine. I am also using the Sqlitedatabase library to store medicine information such as:…
-
-1
votes1
answer335
viewsError running run-android on a React project
I am trying to run the command "React-Native run-android" in project that was passed to me and is not working. I have tried to change the file Gradle.properties to use Androidx but only gives…
-
-1
votes1
answer164
viewsProblems in making android build in Cordova
Failed to restore plugin "cordova-plugin-file-transfer" from config.xml. You might need to try adding it again. Error: Version of installed plugin: "[email protected]" does not satisfy…
-
-1
votes1
answer36
viewsTransform String into Jsonarray Error
I have this string to turn into JSONArray. strbuffer takes the string. String strbuffer = stringBuffer.toString(); JSONArray jsonArray = new JSONArray(strbuffer); You’re making that mistake:…
-
-1
votes1
answer104
viewsProblem with listview inside a Fragment
My problem is that when I click on some listview item the app does not return me any menu options. Option which, when clicked would call a new Activity. Code: @Override public View…
-
-1
votes1
answer44
viewsViewmodel connection to Repositorio
Hello, all right? I have a scenario that is the following: on Android I need to connect my Viewmodel with Repository. I managed to do, though, I just don’t know if I did it the right way. Inside my…
-
-1
votes1
answer125
viewsHow are these Setters methods not being used?
I’m creating a Java/Android app where your job is basically to display a list for the user about what items we still have available in stock. To make this list I used a Recycler View, data (stock…
-
-1
votes1
answer41
viewsI can’t return the url of an android image
I’m using the following code to record data and images in firebase and it’s even working, but the image link I’m not able to capture. var uploadTesk: UploadTask = imageRef.putBytes(dadosImage!!);…
-
-1
votes1
answer284
viewsHow to return the selected item from a spinner
How to pass to a variable the value selected in a spineer at the moment the user selects some of the options? I tried to implement this option, but I was unsuccessful. Follow my code in case anyone…
-
-1
votes1
answer251
viewswebview inside Fragnent I want to open my site inside the webview, and the links inside the site should open outside
REINFORCEMENT I AM OPENING WEBVIEW IN A FRAGMENT AND NOT IN MAIN ACTIVITY - I want to open my site inside the webview, and the links from other sites should open outside, in the normal mobile…
-
-1
votes1
answer216
viewsGet the Token from a JWT Api
I am having problems doing the authentication in an api with JWT standard, the token it comes in header and using the retrofit I am not getting it. The consumption of the api in Postman usually…
-
-1
votes1
answer21
viewsHow do I make a banner ads appear in this case?
What’s missing or wrong for the banners to appear? I followed all the documentation, but it has different information, one at a time. <uses-permission…
-
-1
votes1
answer82
viewsNotification icon modifies with closed app
When the App is open the icon appears normal, now when the app is not open only a circle appears instead of the icon. I have a system in Swing that when the user does a certain action is sent a…
java android firebase-cloud-messagingasked 4 years, 11 months ago jallisson jallis oliveira band 100 -
-1
votes1
answer233
viewsError while trying to connect to Android FTP server
I am trying to connect to the external FTP server with the current lib 3.6 of apache ftp client using Android Studio, the version of my Android is 4.3 up to the current 9. In my Manifest I have: I…
-
-1
votes1
answer171
viewsRecyclerview does not show list data
I have a problem that when trying to list the data on RecyclerView it does not show the records, in Debug I check that the records are entered in the list 'ArrayList', follows the code. Method…
-
-1
votes1
answer62
viewsHow do I format string in an android app?
When changing option it does not format the string values as shown in the image below. Please, how could I fix this? This is my code. import android.app.AlertDialog; import android.app.Dialog;…
-
-1
votes1
answer79
viewsHow to inflate a custom view within a recyclerview view?
Following this example,I am creating an expandable recyclerview,to create a comments session and feedback responses in my app. It is possible to create a linear vertical layout, in which several…
-
-1
votes2
answers989
viewsHTTP request works via POSTMAN but does NOT work via android app
I have an API for an android app that worked for a while. Used Laravel 5.3 on the server side and upgraded to 6.0. By android application, I have returned the error "400 - Bad Request", but via…
-
-1
votes1
answer33
viewsCustomization of the Menu
I want to change the font and color of the items and also change the background of the menu, but I cannot do this in the Xml menu. Screenshot below: I also want to make Expense subthemes appear just…
-
-1
votes1
answer63
viewsTransition of activities with serializable classes (getIntent problem)
I have a problem while passing a serializable class. I insert it into the Bundle as follows. public void voltarMain(View view) { Intent myIntent = new Intent(getApplicationContext(),…
android android-activity nullpointerexception serialization android-intentasked 4 years, 9 months ago Filipe Torres 1 -
-1
votes1
answer375
viewsCheck if user is logged in to Mainactivity Android Studio
I have an app that successfully logs in, but when you log in to Mainactivity it simply disconnects from firebase auth, Listener is 0, how can I keep the user logged in after logging in too…
-
-1
votes1
answer291
viewsContact Boot Whatsapp android studio
People want to integrate my app with a support button when clicking it will open the Whatsapp through the url and open a Whatsapp chat with a specific support contact. XML: <?xml version="1.0"…
-
-1
votes1
answer208
viewsTextinputedittext cannot be converted
This here is my Activity class. import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.EditText; import…
-
-1
votes1
answer139
viewsProblem compiling apk on flutter - R8: Program type already present
I’m trying to compile apk to flutter, but am getting error in R8, I already have other applications in flutter never had problem to compile, making the tests realize that the problem is being the…
-
-1
votes2
answers225
viewsDifficulty writing in cloud firestore
I managed to configure my android project to firebase, but when I test the firestore cloud nothing happens. I’m trying to write a text in the database,. main: import 'package:flutter/material.dart';…
-
-1
votes1
answer76
viewsHow to return query results to the Firestore within the Ackground method?
I’m working on a Cookbook app to learn how to use Firebase resources and I’m working on an Activity that should list all recipes already registered by the user. The routines to record data in the…
-
-1
votes1
answer184
viewsHow to access and change objects within an XML file by Activity?
good evening, I’m having a hard time changing the components of an XML file, when I open the Drawer menu I click on the "tracking" button it opens the xml fragment_tracking.xml, but I can’t access…
-
-1
votes1
answer34
viewsDecision coming straight to Else
I want to call another screen from the Intent, but the decision is going straight to Else. Can anyone help? package com.example.login; import android.annotation.SuppressLint; import…
-
-1
votes1
answer72
viewsAndroid Studio does not recognize some commands
Does anyone know how to fix it? Out of nowhere these two commands stopped working Note: When I run the application there is no error, but it still shows that there are errors in the code for some…
-
-1
votes1
answer282
viewspushNavigator - Dart/Flutter
Hello, I’m learning how to develop Dart/Flutter apps. What happens is that I pressed a Navigator.push, where it loads the previous route, in case I want to return, however, in my appbar instead of…
-
-1
votes1
answer138
viewsMy application is done in webview and by clicking back with the android phone button it shows the msg Auncher stopped
This is my code Mainactivity.java when running on a device I click the back button simply appears the message Launcher stopped I really need to understand what is missing in the code my main concept…
-
-1
votes1
answer107
viewsProblem testing app in emulator
I’m having the following problem: When I run the following command on Ionic 6.6.0 ionic cordova run android -l The project compiles, but when it will try to emulate brings the following problems:…
-
-1
votes1
answer54
viewsAndroid Bottomappbar with Framelayout and Coordinatorlayout
I have a problem in Framelayout the working is correct, but Framelayout is with the starting position of Top above Appbarlayout, according to image: Below the code of Main, where the base is.…
-
-1
votes2
answers70
viewsHow to open a new screen through a Button ? (The Button is inside a Popup)
package com.example.ConsultoriaRuiz; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import…
-
-1
votes1
answer219
viewsAbout the onActivityResult() method in Android Studio
Good afternoon guys, I have a job to deliver done in Android Studio, I was trying to send Strings by intents, my teacher said that the correct way would be using startActivityForResult() and…
-
-1
votes1
answer44
viewsProblem with Java Activity in Android Studio
Good afternoon, I’m facing a problem that whenever I update two different nodes on Firebase from a single véz, a Activity simply opens again overlapping the Activity current. Follows the code below…
-
-1
votes1
answer68
views -
-1
votes1
answer27
viewsandroid - Constraintlayout shows different from android studio
I made a login screen with Contraintlayout, in the editor of android studio appears with the margin as I specified, but in emulator and device appears without the margin: <?xml version="1.0"…
-
-1
votes1
answer48
viewsHow to compare dates?
I created an NN/NN/NNNN mask in my editText to capture due date, without a calendar, all done in edt. Then I used Simpledateformat to capture the current system date. I made a comparison with the…
-
-1
votes1
answer33
viewsLogo does not appear on the flutter inside the Gradient container
I’m trying to put my logo on the login page of my app, but I’m not getting it. Obs.: I am beginner in language and I’m adapting to widgets. return Scaffold( body: Center( child: Container(…
-
-1
votes1
answer246
viewsHow to take an entire Edittext value
I’m having trouble with the method validar() where I want to take an entire amount of the EditText to be able to compare a result in the if. I have already tried casting but does not support the…
-
-1
votes1
answer71
viewsMy navigation Drawer no longer goes to my screens, just a logout button I made, the others do not call the other screen
public class MainActivity extends AppCompatActivity { private AppBarConfiguration mAppBarConfiguration; ImageView imageView_Carrinho; @Override protected void…
-
-1
votes1
answer85
viewsAndroid permission when using Cameraroll to save photo in gallery using React-Native
I’m creating a wallpaper app, but the most important part is the download button I can’t make it work, I’m using Touchableopacity and inside create the function <TouchableOpacity onPress={ async…
-
-1
votes1
answer22
viewsI can’t drag Textview to Layout in Android Studio
Good afternoon. I’m starting at Android Studio. Already in the installation of Android Studio, already gave problem. When I was installing, my wifi turned off, and stopped the installation. Then I…
-
-1
votes1
answer123
viewsRecyclerview inside another Recyclerview using Firebase Android data
I’m learning about android now, and putting into practice what I’m learning, but now I have a problem that I can not solve, or find exactly what I want My idea was to add a recyclerView in Vertical…
-
-1
votes1
answer53
viewsHow to list data from an api in an Activity
Whoa, guys, good night The thing is, I have an application in android studio where I am consuming an api through retrofit and gson, able to make all the connection and the registration functionality…
-
-1
votes1
answer113
viewsDelete firebase user from database and authentication
Good afternoon I am trying to do the method that deletes the user from the database and authentication, but it is not working. private void excluirDeslogar(){ final DialogProgress dialogProgress =…