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
answer105
viewsI can’t get the phone number out of a phone book
I’m not getting the phone number to add to my list, someone knows? public void pegarContatos() { Uri agenda = ContactsContract.Contacts.CONTENT_URI; Cursor cursor =…
-
0
votes0
answers70
viewsWeb Api Calls 2
Well, I have a somewhat boring task that is the handling of Cookies, I make a request by sending as parameter a code that I want to access, my API opens the page with Webdriver, maps and takes the…
-
0
votes2
answers4738
viewsFlutter, how to compile the project to run native on android
I’m starting in Flutter, I would like to know how to compile my project to be a native application, such as for Android. How can I do this from the command line? I found Andoid studio very…
-
0
votes1
answer32
viewsHow to place a progressbar over the elements
as in the image https://imgur.com/LQy3zAs, the progressbar is behind the elements. <ImageView android:id="@+id/imgModoAuto" android:foregroundGravity="center_horizontal"…
androidasked 5 years, 2 months ago Caio Felipe 1 -
0
votes1
answer358
viewsHelp with Date and Time Search
Good Morning I’m doing a date search on android and I’m having trouble checking the time.He says it gave syntax error near the time, and another when I pick the date the time is showing less 3…
-
0
votes1
answer68
viewsWhat could be the mistake?
FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Could not create service of type…
-
0
votes1
answer38
viewsColor of this menu in android studio
Hello, someone help me put the black color in the texts? it looks white, or transparent.I can’t find where it is, thanks. <data /> <androidx.drawerlayout.widget.DrawerLayout…
-
0
votes0
answers71
viewsHow to dynamically leave . package configuration in flutter
How to leave dynamic the configuration of . package in flutter, by default of my machine (Windows) is like this: async:file://C:/flutter_windows_v1.5.4-Hotfix.2-stable/flutter/.…
-
0
votes1
answer169
viewsWhat does it mean to underline this section of the code?
I’m trying to use a searchview along with the listview of my project, but I’m not getting it, because where I’m going to set the lisview Adapter inside the onQueryTextChange method, it appears…
-
0
votes1
answer326
viewsLive Reload not working at the Expo
When emulating an app made with expo on Genymotion, the live Reload do Expo does not work, the options menu is not even open (either using the action of shaking the smartphone or pressing the button…
-
0
votes0
answers72
viewsError compiling app for Android 4 (Program type already present)
I have an Android (Java) project and after migrating to Androidx I received the following error (d8 errors): Program type already present: com.enterprisedt.BaseIOException Note that Gradle…
-
0
votes2
answers771
viewsMake an Acitivity on Android appear only once
Well, my question is: How do I make an Activity appear only once, and then when the user opens the app again this screen does not appear, only the others. I’ll explain how my project is to be…
-
0
votes1
answer334
viewsUse 2 types of Drawer and Bottomtab navigation at the same time
Hello, I’m a little confused about the routes of React-Native, I mean when I need to use 2 types of routes on the same screen. Here’s my try so far: export default (isSigned = false) =>…
-
0
votes1
answer398
viewsPopular a Spinner with Sqlite data
I have that class: package com.example.userlocal.oficinadocabelo.Agenda; import android.app.Activity; import android.app.DatePickerDialog; import android.app.Dialog; import…
androidasked 7 years, 11 months ago Gabriel Teobaldo 11 -
0
votes1
answer96
viewsAlertdialog with background
I created this alertDialog but I wonder if instead of having an icon when it appears, if it is possible to all have another color or even use an image like yours (Background). E Assign to the…
-
0
votes1
answer262
viewsAlertdialog button does not appear
I’m trying to get the button okay appear. I want to do with AlertDialog. That stretch is within a second Trhead. Help me? activity.runOnUiThread(new Runnable() { @Override public void run() {…
-
0
votes0
answers28
viewsIs sharedpreferences indicated to save the application status?
I’ve searched several gringo sites but found nothing, including here. I have a problem in the application that whenever the user minimizes it and uses the mobile phone for something else on cell…
-
0
votes1
answer66
viewsMask of entry of measures in metro
I am developing an Btus Air Conditioning Calculation App, which simply receives units of measurements and recommends an air conditioning capacity suitable for the environment. The problem is I want…
-
0
votes1
answer70
viewsWhy is it that when I do "commit," my project is full of errors?
I recently started working with Github to commit my projects but every now and then I notice something very annoying: my project gets FULL of errors, what I see most is:…
-
0
votes0
answers158
viewsLearn which checkboxes are selected on Adapter and perform operations on Activity based on selected checks
Hello, I have a list (Listview) and when I select option 1 in my spinner it from Visible in the framelayout to show on the screen a checkbox to cadad list item with status 0p, I wanted to know which…
-
0
votes0
answers403
viewsSwipe Viewpager Tabs - alignment, icone color change, back to page 0 and shrink to Toolbar
Hello, I made in the code below a Viewpager with Tabs: In the code of Main: private TabLayout tabLayout; private ViewPager viewPager; SwipeRefreshLayout refresh; ParseUser currentUser; @Override…
-
0
votes1
answer67
viewsDisplay Sqlite table field values in the Console
I’m using the following code snippet to return on the Android Studio console the values of the fields of a DB: db.execSQL("CREATE TABLE IF NOT EXISTS pessoas(id INTEGER PRIMARY KEY AUTOINCREMENT,…
-
0
votes1
answer130
viewsHow to select multiple device images and upload them?
How to pick multiple images from what user select and send to mysql database by php? The most that got was a single image, but the user can select several on android and wanted to send to online…
-
0
votes2
answers1229
viewsHow to make the actionBar back button work?
I’m not getting it to work. Help me. My manifest is like this: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes2
answers93
viewsWhen I use this permission an error occurs in the WHOLE. What do I do?
When I use this permission an error occurs in the WHOLE. What I do? if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED…
-
0
votes0
answers83
viewsGenerate APK - error
Hello, I’m trying to generate signed APK and is giving error: Error:The number of method References in a . Dex file cannot exceed 64K. Learn how to resolve this Issue at…
-
0
votes1
answer137
viewsHow to create a Gridview with gallery images?
I’m making a APP who works with images, I’m saving the images in a gallery folder called imagensAPP in this way: Saveimage: public File saveImage() { int imageNum = 0; //SALVANDO EM IMAGENSAPP . . .…
-
0
votes3
answers117
viewsWhat technical obstacle for Android not support the new versions of Java
I wonder why the version of java in the Android remains the same after so many years. Against Kotlin update with a certain frequency, it is a technical issue the stagnation of Java?…
-
0
votes0
answers55
viewsHow to read dynamically created components inside a Listview
I created a list of questions that I received from an api, so I created these questions dynamically, I didn’t use.xml layout, it was all by programming. Now I would like to know how I can read the…
-
0
votes0
answers18
viewsFailed to create directory?
error: failed to create directory '\\?\D:\APLICATIVOS ANDROID\Aplicativos\Aplicativo VideoApp…
-
0
votes1
answer21
viewsCannot reolve Symbol "@drawable/", image exists and application runs ok
Android Studio shows this warning, but the application runs normal and the picture is shown normally. My question is why the IDE shows the error if everything is ok. Image in the folder: Error in…
-
0
votes0
answers161
viewsFlutter Hot Reload no activating - Waiting for Observatory port to be available
When running any application in flutter (on terminal, android studio or visual code) on my Android device LG K11 Android Nougat, the flutter process does not pass this line: Waiting for observatory…
-
0
votes1
answer121
viewsProblem reading json in Android Studio
I have an api made in Laravel that returns a json, but I have problems reading in Android Studio. If I put another test url as for example String urlApi = "https://blockchain.info/ticker"; I can…
androidasked 4 years, 6 months ago Barraviera 133 -
0
votes1
answer46
viewsI accidentally modified the Git branch of my project in android studio
Guys, I was working on my project when I accidentally clicked on something, and apparently I "lost" the newer versions. I appeared this message on my android console studio: Warning: you are leaving…
-
0
votes1
answer29
viewsHow to know which permissions a dependency uses
I have an Android App made in Java published in the Getnet store, in which their approval system is quite strict and recently had a version of the app reproved because it uses the permission :…
-
0
votes0
answers41
viewsIn a Spinner type component how do I Seto it with a data coming from a webservice?
Am I doing it this way would be correct? The problem is that it is not working as expected follows code: Here I take the data that comes from a list and the other screen and save it in situation:…
-
0
votes1
answer85
viewsWhat is the cameo adb forward for and how to use it?
I would like to know what the forward adb is and how to use it. Could someone explain me?
androidasked 4 years, 4 months ago Patricia Melo 1 -
0
votes1
answer40
viewshttpurlconnection on android:
Hello, I’m trying to get the http response code, and I’m using this code : HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("GET");…
-
0
votes0
answers106
viewsXamarin Forms - Application closes when access certain Forms
I’m having a problem in APP, the application works perfectly when debugging it being on mobile(android) as in emulator. However, when I put it in production and installed by Google Play, only some…
-
0
votes1
answer27
viewsWhat is the correct way to recover an Arraylist<Long> from the firestore cloud?
I am using the following code to try to recover an Arraylist from the firestore: List<Long> longs = (List<Long>) task.getResult().getDocuments().get(i.get()).get("longsArray"); However…
-
0
votes1
answer123
viewsWhat’s the best way to check if a collection exists in the cloudFirestore (Android)?
I am having trouble verifying the existence of a collection. I am using the following code to perform this function: FirebaseFirestore.getInstance().collection("ID da COLEÇÃO").document("ID do…
android android-studio firebase firestoreasked 4 years, 2 months ago André Luiz Alexandre de Souza 3 -
0
votes0
answers17
viewsLink does not update after compiled (Android Studio)
With android studio I’m changing a link in a code, changing from http://xpto.com/tal for http://xpto.com/other. In the code is modified, save the project but when I compile in the app appears the…
-
0
votes1
answer71
viewsCompare device phone numbers with a database
Hello! I am developing an app and need to buy the phone numbers of the device with a list of phones in a database, but the phone numbers can be written in different ways as described in Wikipedia:…
-
0
votes0
answers21
viewsBring values from a Text file to a Listview in Android Studio
I have a file . txt on my phone with the following layout: 123;ManoelEntulhos;Simples;AAA-1111; 456;MateusEntulhos;Comum;BBB-2222; And I want to show him in my Listview this way: 123 ManoelEntulhos…
-
0
votes0
answers24
viewsImages Listed by Recyclerview Disappear when giving Scroll and when filtered by Getfilter() all Somem
Hello, I’m new to Android and I face a problem. I am bringing from the database a list of cars by Recyclerview in a Fragment, and bring together the images of them in binary format. I’ve been able…
-
0
votes1
answer82
viewsWhat is the difference between running the program on the emulator and on a physical device?
I’m starting studies on android development with Android Studio and would like to know if it is possible to create applications just running the code on a physical device or if it is necessary to…
-
0
votes0
answers56
viewsHow to List Several Formulars in FLUTTER Within a Card
I’m trying to list the information inside the forms in a single Card, but I can’t because the Card has only one property title and a subtitle. My Code : @override Widget build(BuildContext context)…
-
0
votes1
answer35
viewsList $_SESSION from different php users
I searched a lot and nothing, there is the condition to list all users of different Sessions? For example this script I use, lists only 1 user. <?php include "db.php"; $qryLista =…
-
0
votes2
answers1348
viewsProblem with Google Maps API key
Map does not open on real device using .apk generated. I made the Activity to the Map using the AS wizard for this purpose, in this mode it generates a SH1. I went to Google API where I already have…
-
0
votes0
answers63
viewsPass value from a json array to a variable
I’m creating an app for Android and I’m trying to pass a array JSON an element called phoneNumber, and I am using this plugin below, which brings this element in array: Telephonenumberplugin but the…