Most voted "android-studio" questions
Use only for questions about using Android Studio. DO NOT use for Android programming questions in general, so use the [android] tag. Android Studio is Google’s official IDE for Android application development, based on Intellij IDEA.
Learn more…1,128 questions
Sort by count of
-
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
votes0
answers31
viewsAndroid Studio How to reference Activity within a Static method
I needed to create a static method in the main Activity, because Firebase is not accepting Framents within the CreateUserWithEmailAndPassword. I would like to know how I refer to the main Activity…
-
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
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
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
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
votes1
answer70
viewsCreate a node inside another in Firebase with Android Studio
I would like to create a node called "Posts" within each user, but I can only create outside the user. It could help me to create the node within the user? Here is an example of how I wanted the…
android-studio firebase android-fragment firebase-databaseasked 4 years, 7 months ago Joao Paulo 11 -
0
votes1
answer23
viewsService in workmanager runs only on usb cable by android studio
I have an android application where after the user enters his company ID he activates a switch and from there the application is posting in an API the position of it. This is done through the…
-
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
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
votes0
answers184
viewsNavigation between screens in Flutter
I’m making an app where I need to open navigate to a new screen when I click on some Gridview container, it was working normally when the containers were each on an Inkwell, but the code is getting…
-
0
votes2
answers311
viewsHow to subtract 2 hours string
I’m doing a Java project in Android Studio where I have a database connected to a BD on a server. In one of the tables, I have 2 hours, hora_inicio and hora_fim that are extracted to string. I…
-
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
votes1
answer31
viewsChange daughter class output in a time counter
Good morning, I’m trying to create a basketball scoreboard to start learning programming in java/android studio. I have created a class for the game time clock called timer that is working very…
-
0
votes1
answer65
viewsHow to put margin inside an ANDROID STUDIO text box
Hello! I wanted to add borders inside my Edittext, however, what is typed is well glued with the outline. I want to put a kind of padding or margin to give distance between the edge and the text.…
android-studioasked 4 years, 2 months ago Lisandra Ferraz 25 -
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
votes1
answer31
viewsProblem in displaying score
Hello! Well, I created an app quiz with five questions, with these, five right answers. My intention is to show on the screen how many answers the user hit and how many he missed, but I do not know…
android-studioasked 4 years, 2 months ago Lisandra Ferraz 25 -
0
votes0
answers42
viewsButton setVisibility inside the Simplecursoradapter listview?
I have a model_list_view.xml like this <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/lnImprimir" android:layout_width="match_parent"…
-
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
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
answers26
viewsFirebase Child data is returning null. Kotlin Android Studio
Eai personal! I need to return the current user’s name and surname, registered in firebase. However, I have tried several implementations and none of them returns the result I want. In this last…
-
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
answer156
viewsWhy don’t push notifications from my app using one Signal arrive with the app closed or in the background?
I’m using one Signal to send the push notification to my app, I saw several tutorials to create the notifications and I did so : configuration of app/build Gradle: dependencies { implementation…
-
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
votes1
answer79
viewsContinue code after accepting permissions, Android Studio
Good night. I am trying to make a page just to request the necessary permissions and then forward users to another application activity, however I am not able to make after accepting the permissions…
-
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
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
votes0
answers26
viewsError in Android Studio 'The <fileName> stopped. ' caused by Index: 0, Size: 0
Hi, guys. That’s my first question here at Stackoverflow. I am facing a problem in Android Studio: the application is installed on mobile but does not work, nor opens. The error is '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
answers38
viewsHow do I insert previous tuples into tables in a Sqlite3 database?
I’m developing an RPG-style app using Android Studio. This app needs a database and as there is no need to be online, I am using Sqlite 3. The problem is that some data need to be previously entered…
-
0
votes0
answers35
viewsFirebase Cloud Messaging - Failed to send notification via server
I have an application that sends messages from Server to Android through Firebase and is working. However, I am developing a new project with "andoirdx" and after the new changes in Firebase I am no…
php android android-studio firebase firebase-cloud-messagingasked 3 years, 10 months ago André Silva 21 -
0
votes2
answers36
viewsProblem showing id on home screen when using sqlite in android studio
i am developing an app in android studio where it shows the id and name of an anime q comes from the database when making the anime registration on the anime registration screen, however when…
-
0
votes0
answers9
viewsTwo validates at the same time
Good afternoon guys! My products have two expiration dates at the same time. How can I register these dates using different buttons. android studio is not accepting two "override fun onDateSet" at…
android-studioasked 3 years, 10 months ago Kalleb Souza 1 -
0
votes0
answers18
viewsHow to decrease the padding of an item menu (Menu 3 points)
Hello, I recently started programming for Android Native and I’m having difficulty changing the padding menu item 3 points. I would like to know if it is possible and how to decrease the padding of…
-
0
votes1
answer26
viewsVoid method returns items to the list, but when I try to use this list, it is empty!
listaPedidoComprador.setLayoutManager(new LinearLayoutManager(this)); listaPedidoComprador.setHasFixedSize(true); adapterPedidoComprador = new AdapterPedidoComprador(itensCarrinho2);…
-
0
votes0
answers22
viewsSearchview with Arraylist Android Studio
Good night, I’m a beginner and I’m having trouble creating a Searchview with Arraylist. I have tried several examples or manuals on the internet but without success, I still cannot understand how…
-
0
votes0
answers13
viewsCapture user date and move on to be selected with BETWEEN Sqlite, Android Studio
Personal I am trying to carry out the selection of a list of data in the database Sqlite, using the following code snippet, the selection in the form that is made below is already working well.…
-
0
votes0
answers29
viewsHelp with Firebase and Android studio, collect data
Guys I have the following list in the database Opening each user of the list I have this information I need to take this information and play for a model class android studio, for this I’m using a…
android-studio firebase kotlin crud realtime-databaseasked 3 years, 9 months ago Felippe Pinheiro 11 -
0
votes0
answers27
viewsShow my connected physical device in Android Studio on logcat
Debugging a code using Logcat is very good. Due to my machine not having many features I am using physical device to test my apps. Only this device does not appear in the list of connected devices…
-
0
votes1
answer11
viewssetOnFocusChangeListener problem with edittext without filling
someone could help me please. I am with a problem, I made a setonfocus in my app, for it calculate and show the result as soon as the user click outside the edittext, however if the user does not…
java android android-studio android-activity android-adapterasked 3 years, 8 months ago Jonathan Castro 1 -
0
votes0
answers30
viewsProblem When Streaming Android Camera to Wowza
I’m trying to transmit the camera image of Android by rtsp to Wowza, but without success. No error returns, but also in local Wowza no traffic appears. I have local Wowza for testing at…
-
0
votes0
answers26
viewsHow to call the camera instead of the webview (php) application gallery in android studio?
My code works to call the gallery, but I need instead of the gallery it open the camera first with gallery option. Follows code below import android.app.Activity; import android.content.Intent;…
-
0
votes0
answers13
viewsAndroid Studio (Java) - Help with gesture direction detection using buttons
Hello, I’m starting to program, I’m making an app where I need to press a button and if it gets pressed and is dragged I want to know the direction it was dragged. I’m using the Java language.…