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
votes0
answers38
viewsHow to show nested part of a json in Kotlin
My class date data class News ( val title: String, val pubDate : String, val link : String, val description : String, val content : String, val categoria : String, val linkImg : String ) My Adapter…
-
1
votes1
answer159
viewsjava.lang.Classnotfoundexception: android.support.v7.widget.Toolbar
OFFICIAL ANDROID DOCUMENTATION ABOUT TOOLBAR I’m following the official documentation of Android, and even so I’m having problems as it generated this error. Caused by:…
-
1
votes0
answers809
views -
1
votes1
answer101
viewsHow to show icon images in Android Action Bar?
I created a simple application, it is something very trivial. What is happening is that I am trying to create a menu with icons on Action Bar, but what is actually happening is that my application…
-
1
votes2
answers1456
viewsError configuring Android Sdk on Linux
The operating system is Linux Mint When inserting: ~/Android/Sdk/tools/bin/sdkmanager "platform-tools" "platforms;android-27" "build-tools;27.0.3" acontece o seguinte erro: I’m cracking my head…
-
1
votes1
answer34
viewsError while sending ZIP file via Intent on Android
I am trying to send a ZIP file via Intent on Android with the code below: Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_STREAM,…
-
1
votes0
answers98
viewsQuestions about using Appbar + Toolbar + Fragment - Android Studio
Hello, I have prior knowledge of Java but I’ve just started programming for mobile on Android Studio, someone would tell me if there’s any way to use Appbar + Toolbar (for the sake of design itself,…
android android-studio android-layout android-activity android-fragmentasked 4 years, 8 months ago Davi Massini 26 -
1
votes1
answer241
viewsUsing Loop to traverse an array, stopping at the first item and waiting for a click to the next JAVA item
Good evening, folks, I’ve been trying to find a solution to my problem for three days without success. Let’s get to the problem. I have an external API that is on a server, I can already make the…
-
1
votes1
answer50
viewsMostar image if not connected to the internet
Show a picture if the device is not connected to the internet Good afternoon gentlemen I’m new in Android programming, I’m using Android Studio Next I am developing an app that simply calls a…
-
1
votes1
answer660
viewshow do I use push notification to show a notification to the user when changing any status in the Flutter app
Hello! I’m new in the area and wanted to know how I make to create a method that can notify the user every time you have any change in the status of his order, because I’m creating a virtual store…
-
1
votes0
answers227
viewsHow to hide the navigation bar?
I used this code below to hide the Android navigation bar. The code worked, but when a new Activity is opened by an app button the bar appears and comes out fast, this is not very good. So I’d like…
-
1
votes1
answer80
viewsRecyclerview - Is it possible to change the current view in the long click event?
In a certain part of my app you will get a Recyclerview as a list of expenses as shown below: The point is, I want the user to be able to edit expenses at any time just by having a long click, thus…
-
1
votes0
answers29
viewsScan Wi-Fi network on Android
I’m trying to scan all Wi-Fi networks that the phone normally takes. My intention of this scan is to select and connect the desired network. I even followed Andriod’s own tutorial Wifi-Scan. But the…
-
1
votes1
answer79
viewsToast setGravity() method does not work in Level 30 API
I’m trying to convey a message from Toast on top of a Activity common, when clicking on a Button, using the method setGravity(Gravity.TOP, 0, 0) in API Level 30 (release R), however not working. The…
-
1
votes1
answer155
viewssetState() called after Dispose()
I am receiving this log in my application flutter after integrating google maps. I declared it right at the beginning of the code CameraPosition _posicaoCamera = CameraPosition( target:…
-
1
votes1
answer57
viewsDoubt about Android Activity syntax and the "onCreate" method and what are its arguments!
I’m new to the programming world and I’ve been studying java. I’m wanting to understand the Java application for Android apps and came across these methods from Activity. The theory I understand…
-
1
votes1
answer160
viewsPut scrolling effect on my code
I’m new to flutter and would like to know how I do to have that scrolling effect I think is called scrollView, for the user to read the rest of the text The result is getting like this;…
-
1
votes1
answer58
viewsHow to access an Activity by clicking on the notification without losing the data
Hello, I would like to ask for help because I built an app with a stopwatch and after a long time managed to enable notifications for Android Oreo+, but I can’t access the stopwatch Activity through…
android android-studio android-activity android-notificationasked 4 years, 1 month ago Nathan Nathan 21 -
1
votes0
answers19
viewsError with socket tcp on android
I’m having a null error, I no longer know what I do, I’m using socket tcp in java in android studio, I already got the permission in the manifest, before I gave wrong permission denied, now the null…
-
1
votes1
answer67
viewsThe Toolbar is not appearing
I’m making an app for my tcc and I decided to put a side menu in the app, the menu works, but where the Toolbar appears only a black belt without icon and I put a burger menu icon. I am using…
-
1
votes1
answer53
viewsRegister authenticated users with Facebook in Firebase Database
Good night! Guys, I’m using Facebook login in my app and would like to register the user information in the database or firestore Realtime, as the name and email for example, I’ve recovered the…
-
1
votes1
answer59
viewsBeagle 1.4 cache problem
I’m using Beagle 1.4 (usebeagle.io) in a partially server driven Android app. I have the cache disabled in Beagleconfig, but when I get to the screen with the Beagle UI, the app crashes. I do not…
-
1
votes1
answer447
viewsError running "React-Native run-android": Execution failed for task ':app:processDebugResources'
After I install some libraries from React-Native-navigation for a project, I executed the command react-native run-android cmd but it closes my server and returns the error below. How can I resolve…
-
1
votes0
answers27
viewsDifficult to understand how eventlisteners work in Java?
Greetings dear fellow programmers Are you all right? I hope so I’m doing this publication because I’m having a lot of difficulty to understand a specific parameter of the listeners of Android…
-
1
votes1
answer50
viewsVolley Android - GET to return list of videos from a playlist - JAVA
Hello, I’m using the android library Volley to make a GET call (https) to return to me the Json of the videos of a specific playlist. Basically my current GET request is this: String url…
-
1
votes0
answers55
viewsCreation of tables Sqlite(Room) on Android with the standard Repository (very simple question.. but I need a clarification)
Guys I have a question in the creation of tables and another in the issue of Repository, so come on. EX: data class Carro( val marca: Marca, val motor: Motor ) data class Marca( val nome: String )…
-
1
votes0
answers35
viewsFlatlist after creating a Scroll, to render correctly
After 7 to 9 names, when creating a Scroll for viewing, Flatlist starts rendering a name only after another is inserted, and this only happens in tests on Android, the web is working normally. GIF…
-
1
votes1
answer59
viewsAndroid Studio onActivityResult does not return
I am showing the pop-up asking it to activate the GPS then use " onActivityResult " to catch the result, only it does not return anything. Researching I saw several similar problems but nothing…
-
1
votes0
answers69
viewsTouchableopacity problem, negative margin and Android - React Native
I have a problem with TouchableOpacity using negative margin so that different TouchableOpacities stay a little on top of each other (I’ll post an image to better understand). These buttons are…
-
1
votes1
answer93
viewsOkhttp on Android connects to my websocket server but does not reflect outgoing messages
Following this documentation https://spring.io/guides/gs/messaging-stomp-websocket/ created a small spring project capable of sending messages in real time using websockets, the web part stays this…
-
1
votes2
answers32
viewsI need to separate a String message in 6 Textviews
I’m making an app with bluetooth connection and it captures the messages or data that are sent by the Internet via Bluetooth, I’m sending these messages via Bluetooth, each call sends a data and…
-
1
votes0
answers186
viewsHow do I keep background tasks running when the app goes to the background on Flutter Android?
I have an application for a (specific) company that has some tasks for the purpose of counting time, marking macros and generating notifications (electronic point type). When the app gets too long…
-
1
votes1
answer498
viewsApp does not share using Whatsapp appears: "Failed to share. Pro please try again."
When I choose Whatsapp to share appears a message: "Failed to share. Please try again." My code is like this: compartilhar.setOnClickListener(new View.OnClickListener() { @Override public void…
-
1
votes0
answers29
viewssdk error while building android application below api level 24
I built a simple test app. When I build for versions of android sdk equal to or greater than 24 it recognizes the SDK and does the correct procedure, but if you try to build other versions like the…
-
1
votes0
answers22
viewsMessaging Cloug Firebase sends only once
Hi. I have an Android app that uses Cloud Messages, however, I noticed that I have some APP’s that the message does not arrive. For example, I have active X Apps in the playstore, but Firebase shows…
java android android-studio firebase firebase-cloud-messagingasked 3 years, 10 months ago Joel Nascimento 21 -
1
votes0
answers20
viewsHow to create a button in a Fragment for android?
I created a button that aims to Random an image. However, the button and image are not appearing on android. The code I’m using is as follows:: ImageView imageView; Random r; Integer[] images = {…
-
1
votes1
answer15
viewsBitmapfactory.decodeByteArray Returning null from Sqlite
I am creating an application that I register a search image from the mobile gallery, saving it in SQLITE, and searching later to show in a view Recycler, however, debugging realized that the bitmap…
-
1
votes0
answers28
viewsDomain Error UNAUTHORIZED_DOMAIN:Domain not whitelisted by project
I am developing an application in which I wish to authenticate (login), via e-mail without password. I didn’t get much current documentation on this, so I took the firebase example itself on github.…
-
1
votes1
answer39
viewsError entering data in Sqlite
Hello. I’m having trouble with this personal project. When trying to save a product, Sqlite did not like Price, which is set to float, but when saving in db (which is set to REAL, I even changed to…
-
1
votes1
answer89
views"Building Javascript Bundle" very slow to start Expo on Android
In React Native, following the official documentation (step by step) I was able to install the dependencies and everything I needed to run my first project. I created the directory using expo init…
-
1
votes0
answers68
viewsDifficulty saving checkbox status with Asyncstorage
I have an error saving checkbox status with Asyncstorage. When exiting/reloading the screen, the first checkbox is always marked and the other’s markings are removed https://imgur.com/bFxof0q I need…
-
1
votes2
answers96
viewsProblem when performing HTTP request on Android
I can make an HTTPS request normally in an app, but it doesn’t work when it’s HTTP. You would have to configure something in Android Studio to be able to make the HTTP request? The code of my class…
-
0
votes1
answer891
viewsHow to change the focus of Edittext on a Listview?
I have a ListView with a single EditText. I used the following function to capture Enter, but how to use requestFocus() to select the next EditText? public class FriendslistAdapter extends…
-
0
votes1
answer310
viewsPdfdocument Support API (API 19) version from API 14
I am in need of implementing a way to generate a PDF and send an email as confirmation of an order. I realized that was added in API 19 the Pdfdocument that already creates a PDF from a Canvas…
-
0
votes2
answers596
viewsHow do I know if the user really wants to come back, when click the back button of the phone?
I have a activity which stores certain data, and when the user presses the back button (Avd Hardware Button, for example), the application does not return to the previous screen, but rather open a…
-
0
votes1
answer307
viewsWhy is Activity instantiated twice?
I am implementing the facebook sdk to log in to my application. I have two activities that I call Login and Home. When I click the login button, the login is performed perfectly and the Activity…
-
0
votes3
answers519
viewsWhy can’t I connect to my Mysql server?
I am trying to make a simple query using a PHP webservice. This is my current code: ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new…
-
0
votes1
answer62
viewsSet construction project JRE input path to 'Javase-1.7'
I am trying to make a connection to Mysql database, but when I use PreparedStatement, eclipse returns: Definir projeto de construção JRE entrada caminho para 'JavaSE-1.7 Yes, I changed the compiler…
-
0
votes1
answer2629
viewsHow to create new folder in an Android Studio project
I’m a beginner in Android Studio and I’m trying to create new folders (values-ldpi, values-mdip and etc.) in the project structure, but I can’t find option.
-
0
votes2
answers470
viewsSimulate receiving device connection on usb (adb shell Android)
I would like to know how to simulate receiving a call (Receive a call) with the device connected via usb on adb shell android. I need to perform some tests on the physical apparatus, but cannot be…