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
answer40
viewsHow to destroy a jobSchedule via Activity?
I’m studying the services in Android Background and managed to create a service in Background that already works well in the background even after restarting the android or close the App. The…
-
0
votes1
answer106
viewsSqlite3 How to delete last records using ORDER BY
I’ve researched a lot in the inter but found no solution... For example, I have an aptitude test. Hence I create a table: "Bdteste.db", with a bank: "candidates", with the fields: _id, name and…
-
0
votes1
answer26
viewstextView does not change text
I created a Fragment in Android Studio, and in this Fragment there is an imageView and a textView which I want to edit by code. but the two do not change... public class HomeFragment extends…
-
0
votes1
answer67
viewsUse seters methods within a void function
I’m kind of new to java and I’m trying to create an application where I call server data and fill an object, but the object is not filled, whenever I call the object all attributes are null. The…
-
0
votes0
answers127
viewsReturning data from Firebase to a Listview
I’m making an app for a subject in college that consists of creating events, but I’m having trouble returning these events in a Listview. I saw some similar questions, copied many results but…
-
0
votes1
answer48
viewsListview prints only the first element of Arraylist
My application has a screen that lists all the elements registered in BD. The method I use to list the results returns a List (in the Diagnosticodatasource class), until then all right, the problem…
-
0
votes1
answer21
viewsMaterialbottomtabs - Outside the screen boundary
Hello, I’m developing an app with Expo and I’m using React Navigation to do the navigations and Materialbottomtabs on the main screen. How much test the app in Android Expo Client works perfectly,…
android react-native apk react-navigation expoasked 4 years, 12 months ago Mendes Desenvolvimento 11 -
0
votes0
answers25
viewsProblems with scheduled notifications
I am developing an application that must issue a notification with date and time informed by the user and the notification is not being issued. I’m using Alarmmanager to set the time and another…
android calendar android-notification android-alarmmanagerasked 4 years, 11 months ago João Marcos 11 -
0
votes1
answer71
viewsSetar Adapter inside a Thread
I’m trying to list in one RecyclerView in the fragment, but the return of the list is in a thread, I don’t know if I’m doing something wrong but it doesn’t show any record. No logcat returns no…
-
0
votes2
answers161
viewsWhen to use Livedata or when to use Rxjava (or Rxjava2 / Rxkotlin)?
After the LiveData was introduced as architecture component of Jetpack, I have seen much discussion about the use of it. The most common is that it is used in the layer viewmodel of MVVM, standard…
-
0
votes1
answer203
viewsSide Menu is not displayed in the app made in React-Native
I’m developing an APP in React-On, I need to display a menu-left side. Although it does not display any error message, the side menu does not appear. I am using React-navigation-Drawer to create the…
android react react-native react-navigation react-routerasked 4 years, 11 months ago alexjosesilva 3,119 -
0
votes0
answers29
viewsSqlite bank closed when query
Good afternoon, I’m making an android application, I’m having some problems with the bank. When it runs on the emulator it calls the seller’s Activity after saved, it calls login, login has a…
-
0
votes1
answer45
viewsDoubt with data protection in application
Hello, I am developing an Android app and Iphone that will store various sensitive information of my customers in the mobile database. My question is being in what is the best way to protect this…
-
0
votes1
answer828
viewsPageview with Pagecontroller in Flutter
Please someone tell me why the buttons that should go through the screens are not working right. I tested on an android emulator and on an android phone and nothing to correctly pass the view.…
-
0
votes1
answer1019
viewsHow to put Scroll in a layout already made in Android Studio?
I have this layout already done, but in smaller cell phones the buttons are inaccessible, I would like to implement Scrolls both vertically and horizontally when necessary This is the xml of my…
-
0
votes0
answers126
viewsProblem when trying to run a project using React-Native
I am doing a tutorial of React-Native but while trying to run the project using the command: npx react-native run-android I get the following error messages: error Failed to install the app. Make…
-
0
votes0
answers52
viewsPOST Requestbody and Multipart in retrofit2
How to send an image and jsonObject to the webservice in a single request in retrofit2? Interface @Multipart @POST("url") Call<Mensagens> setChatMessage(@HeaderMap Map<String,String>…
-
0
votes1
answer41
viewsHow to capture data correctly from the list?
I put the code down on onCreate and onResume, but of the problem when putting in the onResume. Whenever I return/leave the editing screen, onResume goes into action and goes through the whole list…
-
0
votes1
answer36
viewsHow to insert icons in Android project?
I am creating menu buttons in my Android project, for this I am using the site of Material IO, for me to be able to include the icons. What I did was to download the images of the icons as shown in…
-
0
votes0
answers42
viewsWhat are these error messages that appear in Logcat?
Hello, I am having these messages below, in my Logcat of a Mainactivity of Android Studio. How to interpret and solve them? 01-16 11:27:34.088 15846-15846/? W/Glide: Load failed for…
-
0
votes1
answer47
viewstrying to delete firestore document, crash error, restart app and not even debuger error message
I’m trying to delete a document, however the app simply closes itself. I’ve tried everything I know, but the error persists. I don’t understand why. The code itself is correct. The general way is…
-
0
votes0
answers89
viewsConsumption given in the Firebase Database
I’m having a doubt that’s making me nervous, and I couldn’t find the answer. On Android, when we’re making an app, usually there are several calls to collect "the same" data from Firebase. For…
-
0
votes1
answer270
viewsHow to consume a JSON on a localhost webservice with android studio
Good night, so I don’t know if my code is correct so I’m not sure why it doesn’t work, follow my code in android studio package com.example.aplicativoderestaurante; import…
-
0
votes1
answer28
viewsDoubt about a Fragmentstateadapter constructor
Fragmentstateadapter has three builders according to the documentation. (@Nonnull fragmentActivity: Fragmentactivity) (@Nonnull Fragment: Fragment) (@Nonnull fragmentManager:…
-
0
votes0
answers58
viewsImplement checkbox in Recyclerview?
By clicking on the checkbox I run the list click (opens an Activity). To check the checkbox you have to keep pressed. I understand it could be this one click conflict over another. How can I then…
java android android-studio checkbox android-recyclerviewasked 4 years, 8 months ago Lucas Fernandes 1 -
0
votes2
answers34
viewsRecover firebase data - order items
Good afternoon I am trying to list all the items of a request in a Recycler view, but the query only returns a value as below : public void recuperarItemPedido(String idPedido1) { databaseReference…
-
0
votes1
answer52
viewsSequential requests using asynchronous Retrofit methods
Hello. I am developing an application where it is necessary to synchronize the data at certain times. I am using Retrofit to connect to the api and send/receive the data, but each request needs to…
-
0
votes1
answer38
viewsHow to search STRING inside JSON on Android
I have the following JSON Create_request.txt {"dados":[{ "Cod_Produto":"25", "Produto":"ARROZ", "Quantidade":"200KG", "Estoque":"300KG", "Valor":"1200", "Num_pedido":"41045"} ]} I created a button…
-
0
votes0
answers37
viewsHow to manipulate data from a Fragment when sliding to the next one?
Explaining: I have 3 Fragments in a viewpager2, for you to make slides. In a specific Fragment, I have some data in edittext and etc. When sliding to the next Fragment, I need this data to be…
-
0
votes0
answers32
viewsHTML Signature Changing Image Address by Link
I am creating an HTML signature for the emails, but I noticed a problem that occurs only on Android, and prevents the images to be loaded properly. It replaces the image address by a link, as below…
-
0
votes1
answer861
viewsAPK continuously crashes
My APK opens correctly when the code is this: package com.example.wheresmybusdriver; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import…
-
0
votes1
answer87
viewsFlutter: Error message Could not update files on device: Httpexception
Hello, I am studying Flutter and recently I had a problem when I tried to run my project with Flutter run received the error message: Could not update files on device: Httpexception: Connection…
-
0
votes1
answer209
viewsWhere can I find the Styles.xml file?
I have a very simple application that runs an html file. I’m really wanting to change the color of the status bar, because the top and bottom pattern in black is horrible for the color palette of…
-
0
votes0
answers184
viewsI can’t set correct the environment variables for android to use Ionic
I’m starting in mobile and I’m doing the setup for Ionic. Well my difficulty is being on time to run sudo cordova run android who returns me: Checking Java JDK and Android SDK versions…
-
0
votes1
answer466
viewsHow to Maintain Mobile Self-adjusting Iframe?
I need Help. I always turn to help here when I need help in general, but I found no answer, and nothing that works. I need to create a friendly address - index, which will call a very long page in a…
-
0
votes1
answer121
views"onClick" and "onLongClick" functions are called with a single touch
I have a simple problem, but I cannot find a specific solution to this problem. Inside my application I have a Recycler View and in it I have two click events: one for simple touch and one for long…
-
0
votes0
answers25
viewsHow to check the value of various Switchs in Android Studio
Hello, I’m creating a Checklist app, but Checklist has over 30 items and I’m using "Switch". When the user fills everything she will send to a database where someone else will see the items that are…
-
0
votes1
answer73
viewsSort by date does not work - Firestore
Hello, I have a variable in the database that contains the date in "dd/MM/yyyy" format, when I try to use the orderby of a query with that date firebase uses only the days (dd) to sort my…
-
0
votes1
answer81
viewsHow to use plural with String Resources?
For internationalization, Android uses String Resources. How can I use this feature to use plural to avoid multiple "gambiarras" if's? Example: <string name="friends_none">Você não tem amigos…
-
0
votes1
answer158
viewsAuthenticate user with SQLITE database
I’m needing the parameters used in the button to query the database (the code was the result of another post response) when trying to implement the function inside the baton I could not get it to…
-
0
votes1
answer47
viewsHow to make all content fit on the screen?
Hello! I am developing an App. However, I have difficulty in making all content fit on the screen. The code in question: <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
0
votes1
answer129
viewsChange button color when click = Gree when drop back normal color?
I want when I click on Button it to change color and when I drop it back to original color! Part of Button public void addButton(String comprar, final InterfaceBtn interfaceBtn) { final Button…
-
0
votes1
answer25
viewsHow to create a Bucket on Aws S3 using android?
I’m trying to do it this way: public AmazonS3Client getS3Client(Context context) { BasicAWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey); s3Client = new…
-
0
votes1
answer225
viewsUpdate Recyclerview does not update the item in the list
I have a simple recyclerView and Adapter below where I do the CRUD before saving in BD, and everything works except the update, where I update the item by Adapter but the view in the list does not…
-
0
votes1
answer53
viewsHow do you pass an activity value to a fragment?
I’m trying to instantiate a method that returns a value of type int in a fragment, but when I show the value on the device screen Textview shows this: null. Fragment code: public View…
-
0
votes1
answer146
viewsError while performing Basic Auth authentication in REST API on android
I’m having a hard time integrating with an API using basic auth authentication. I created a Java API using spring boot and spring security. When I use Postman the request works without any problem,…
-
0
votes1
answer167
viewsOverwrite an Inheritance property or not ? Kotlin
I have a question about code : class SaldoInsuficienteException(mensagem:String = "O saldo é Insuficiente") : Exception(mensagem) Now I tested imagining how the code was written in English and the…
-
0
votes0
answers426
viewsError after upgrading Android Studio and Flutter
Good evening guys, my project was all normal, and I went traveling and stayed 1 week away! I arrived today and had to update the android studio and the flutter and after that I’m getting an error…
-
0
votes1
answer62
viewsActivity Access via Manisfest File - Android
Hello, everybody. I’m trying to build an app inspired by pokedex for a challenge, and trying to use the MVC architecture. I’m having problems accessing the activities (that are inside the packages I…
-
0
votes1
answer33
viewsload . txt from internal storage in an array
I’m making a stock count app and it needs to import a txt and export the same with the quantities read in the count, the problem is that searching found the library android studio to load the file…