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
answer16
viewsstopService() works on only one device
I am developing a streaming application and whenever a new song is chosen the application for the service that is playing the current song and then starts it again with the new song chosen by the…
-
0
votes2
answers366
viewsMy real ads do not appear in my app, only the test ads
Good afternoon, I’m making an app and I’m setting up the ads part using google admob, but when I put my ad ID does not appear in my app, it appears only with the test ID. I’m using an emulator to…
-
0
votes2
answers78
viewsPrint variable in java
excuse ignorance, but I am learning alone and reading a lot, I am at the beginning, I need to generate a password by calculating day * month * year, I created the variable that calculates this but I…
-
0
votes0
answers24
viewsMaterialdatepicker returning wrong value android studio
I’m using Materialdatepicker in android studio so the user can choose the date of birth, after selecting the date, the value returned is a long with the timestamp of the selected date (milliseconds…
-
0
votes0
answers32
viewsDelay when switching video with Videoview
Hi, I’m having a problem with a delay when making the video exchange of a playlist that contains images and videos as soon as the video ends in a Videoview. The delay is about 200ms in my tvbox.…
-
0
votes1
answer127
viewsSave a PDF to Sqlite
I’m beginner and I’m having trouble saving the pdf in the bank, I don’t even know how I can do it. botaoBusca.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {…
-
0
votes0
answers15
viewsHow to make next and previous buttons by Highlight?
Well, I’m having trouble executing a code to go to the next word in Highlight. I’ve tried a lot of things and I can’t seem to make it work. String text is in HTML, and I do the transformation inside…
-
0
votes0
answers36
viewsError while deleting SQLITE base and create again dynamically ANDROID 9
I have an android Java app running for years. After migrating to android 9 (API 28), I’m having problems constantly: database disk image is malformed (code 11 SQLITE_CORRUPT) and Android…
-
0
votes0
answers52
viewsCorrupted Sqlite on Android 9 Pie (API 28)
I have an Android Java application running for years. After migrating to Android 9 Pie (API 28), I’m having the following problems constantly: database disk image is malformed (code 11…
-
0
votes0
answers40
viewspopular Spinner by Firebasefirestore Android
Good morning guys, I am trying to popular a spinner by the data searched from Firebasefirestore, however when starting the application the spinner becomes "white", when clicking on it shows the list…
-
0
votes0
answers21
viewsHow do I implement a timeline? Androidstudio
Good morning, I’m having a hard time understanding/implementing a timeline (Geological Time Scale) in my project. Does anyone have any references? Tips? I thought about starting developing using…
-
0
votes0
answers13
viewsaction for the cap item "Navigation Drawer Activity"
Good afternoon, I created a project with the tamplete "Navigation Drawer Activity" and I would like to know how by action to the menu of the 3 dots -> Sttings of the top, I tried as follows:…
-
0
votes1
answer70
viewsMy material components are not being recognized in my Activity
Reinstalled Android Studio on my computer, went to make a basic application Only login screen and a button to advance But in Activity, when typing the id that was assigned in xml, the Kotlin file…
-
0
votes0
answers22
viewsPost Request does not pass `getParams()`meters with Volley’s Stringrequest
When I make a POST Request according to my function postRequest() using the StringRequest of Volley I cannot access the parameters passed on getParams(). However, the method getRequest() works as…
-
0
votes0
answers10
viewsAndroid Viewholder Classcastexception
I implemented a message listing for a chat. The Sentry is receiving an exception that occurs in production, I have tried to simulate, but without success. Error ClassCastException java.lang.Integer…
-
0
votes0
answers18
viewsHow to get the CA certificate on android.net.http.Sslerror, in Java?
I am trying to replicate an implementation, which is in another language (Golang). In it it is possible to do the following: client := http.Client{Transport: &http.Transport{TLSClientConfig:…
-
0
votes0
answers12
viewsUsing Seekbar in minute form
Everybody, good afternoon, everybody! I am developing an app for study purposes. I am a beginner in mobile programming. My app has an interface similar to the Netflix interface where I’m trying to…
-
0
votes0
answers61
viewsIssue with Kotlin Gradle version
Good morning, I am developing an app with flutter and the application uses a dependency called barcode_scan that serves to scan QR code, when generating the APK Gradle an error with the version.…
-
0
votes0
answers36
viewsPermission to open camera denied on Android SDK 29
After changing the SDK to 29, the camera that used to open normally on the 28th is now denied permission. My project is developed in "React-Native": "0.59.9". Here are some additional information:…
-
0
votes1
answer20
viewsAndroid/Kotlin - Select Current Fragment
In my action I use the method onBackPressed. When will I compare the fragment that triggered the event the Id is never the same and always falls in the else. what is wrong? override fun…
-
0
votes0
answers19
viewsIt is possible to capture the click result in a Dialogfragment
I’m new in android development and have this doubt. I’m creating a DialogFragment with an interface to capture user choice. This is my dialog box next to the interface: public class Opcoes extends…
-
0
votes1
answer33
viewsHow to send a list of objects by Bundle?
I am working with a tab system, one for each month, and a birthday listing on the respective tabs. My Adapter is as follows: FragmentPagerItemAdapter adapter = new FragmentPagerItemAdapter(…
-
0
votes0
answers18
viewsApp closes when adding code
I created a function that makes the app full screen without using XML Only when I call this function on my second Activity, the APP closes I use main.tela_full package com.mugen.com; import…
-
0
votes0
answers12
viewsI am trying to change the source of an item in the menu
I’m making a burger menu and I want to change the font to one I’m using in the Android project. I tried to create a new style and put in the item, but I could not. Follow the xml from the menu…
-
0
votes0
answers24
viewsStone SDK Android integration - Android manifest no longer finds Activitys
Hey, how you doing? I have a problem with the integration of Stone SDK (because in the documentation, I did not find solution for the error I get in android studio). By integrating Stone libraries…
android android-studio android-activity gradle buildasked 3 years, 11 months ago Guilherme Santana 1 -
0
votes1
answer56
viewsApp closes when trying to access an Activity
My app closes whenever I press a button to access an Activity, this is the error q appears: 2020-12-13 18:15:40.182 6951-6951/br.edu.icomp.locadoramoto E/AndroidRuntime: FATAL EXCEPTION: main…
-
0
votes0
answers8
viewsToolbar type is not compatible
I am making a slider menu and the following error is appearing: He says that the type of Toolbar I put is wrong, but I have tried to fix and nothing. To make matters worse he does not say a possible…
-
0
votes0
answers31
viewsI need a method that marks an item on a list as completed
I’m making a small app with to-do list that logs in firebase. Through the app I can add tasks to the list and delete with a long click, now I need it to mark "completed" in the app and reflect on…
-
0
votes0
answers23
viewsHow to open Mainactivity when receiving a Push Notification from Onesignal?
Good morning community, first I wanted to thank the space and ask for your help with the following problem: I have a function of a class that is called every time a notification is received which is…
-
0
votes0
answers18
viewsProblem getting Facebook profile photo
Good night! Using the login with Facebook, the user is authenticated perfectly, I can recover the name and email, but when I try to recover the image from the profile of fb returns a default image,…
-
0
votes1
answer38
viewsOpen Alertdialog in current Activity for an already finished android
I’m making a game, in the app as soon as it loses connection to the internet it has to open a Alertdialog in the current Activity, but I’m not getting. alertDialog opens only on the Activity from…
-
0
votes0
answers26
viewsHow do I close a notification that doesn’t close?
The following notification code I use but it does not close Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID_2) .setSmallIcon(playPauseBtn) .setLargeIcon(thumb)…
-
0
votes0
answers25
viewsErrors when rendering a Sectionlist with an object array
I’m trying to insert a SectionList, but is returning in the console, in order, the following errors: Uncaught TypeError: Cannot read property 'length' of undefined The above error occurred in the…
-
0
votes0
answers57
viewsAndroid - Error while saving file on SD card
I recently created an application in which I share files through a Intent filter, so that the user can save the shared file to any system folder. The purpose of this application is to share a file…
-
0
votes0
answers14
viewsProblems with the Android Update-In-App
Come on, you guys... Has anyone used the update-in-app for Android playcore? I can call the update dialog, it downloads the version, restarts the app, but it n updates from vdd to new version.…
-
0
votes0
answers37
viewsRequest problem that only falls in catch
I’m working on a new project so I don’t have much control of the code and I’ve reached a problem where the request doesn’t work or returns something where I can’t solve , it just falls into the…
-
0
votes2
answers72
viewsHow to access a String inside the body() in the retrofit in Kotlin?
I’m trying to access the json content inside body() through retrofit. I need the "url" in String. What’s missing from my code? Debugging the code I saw that the response.body() is returning the…
-
0
votes0
answers27
viewsgetAutocompletePredictions is not working
Hello, I’m having problems with Getautocompletepredictions from google Api, I’m not able to know if I can fix the function or I have to update the api and redo it. java android google-maps-api-3
asked 3 years, 10 months ago Deletking 9