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
-
2
votes0
answers64
viewsCircular Reveal with background color change and status bar in Tablayout
I would like to make an effect that when clicking on Tabitem the background colors and bar status change with the circular effect of revelation, similar to the Google Play Store as shown in the…
-
2
votes3
answers290
viewsI cannot use class R. in Kotlin
I’m trying to learn Kotlin , but I’m having trouble importing the "R." class into Kotlin. Someone would know what I’m doing wrong ?…
-
2
votes1
answer341
viewsCustom Spinner showing Resource and non-text
I’m having trouble setting up a custom spinner in my application. Follow below picture of how it appears: Follows my code: Java adapter. public class ProfissionalCategoriaAdapter extends…
-
2
votes1
answer472
viewsUninstall packages and all their dependencies at once
Is there any way for me to uninstall Packages and all their dependencies in a single command? Without having to uninstall one by one. Type: Unable to uninstall 'System.Net.Http. 4.3.3' because…
-
2
votes1
answer989
viewsCamera problems: Fail to connect to camera service
I have a problem in my application that uses the camera of a device. However, whenever I try to use the Camera.open() he makes an exception java.lang.RuntimeException: Fail to connect to camera…
-
2
votes1
answer146
viewsDuplicate but different files
Well, there is an error in my application by Android Studio. And the problem is, the interface says that there are two files that are duplicated, but they are apparently different. I also tried to…
-
2
votes1
answer81
viewsTo serve Exampleunittest and Exampleinstrumentedtest in Android Studio?
Hello, I’m learning to develop on Android and would like to know the utility of these files and how Android uses them. I noticed that some applications sometimes do not have these files.…
-
2
votes1
answer128
viewsHow to create video through an image sequence?
I want to create a video using a image set of the same type and size. I researched some examples but did not succeed in performing the algorithm. Of the examples, this link was the most complete:…
-
2
votes1
answer1983
viewsEvery image on android should be treated as a bitmap
I was having a problem with uploading images into one Textview, when I came across a very stupid question, rs, someone would know to answer? Next, I was trying to upload a large (high resolution)…
-
2
votes2
answers71
viewsReplace part of string with drawable or image
I receive from the database a string in formatting "text text ??? text text" and need to transform the "??" in an image or some character, the ideal would be an image or drawable that I can…
-
2
votes0
answers21
viewsandroid Error on Gradle Signed APK
Good morning, when I click to generate the signed apk, it gives the following error: Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. Job failed, see logs…
androidasked 6 years, 10 months ago Igor Felipe 33 -
2
votes0
answers55
viewsStick header recyclerView fixed header
I’m implementing the effect of stick header in a recyclerView in my app. I created a subclass of RecyclerView.ItemDecorator and made my implementation, the effect was applied to Recycler, however…
-
2
votes1
answer203
viewsError while removing Object from Arraylist
When I try to remove a int of arrayList he simply of error. Code: ArrayList<Integer> colors = new ArrayList<>(); colors.add(Color.rgb(119, 103, 141)); colors.add(Color.rgb(33, 10, 208));…
-
2
votes1
answer71
viewsBookmark is duplicated when updating User Location
I implemented the Uusuario Location App every 15 seconds. Variables are global class: latitudeUsuario longitudeUsuario Marker Within the method onLocationChanged i select the two location variables,…
-
2
votes6
answers3996
viewsCheck if Edittext is empty
Hello guys I’m making an app on android studio but I don’t know exactly how to check if the text fields are empty, I tried the following solution in the code below : public class MainActivity…
-
2
votes1
answer116
viewsHttpsurlconnection BAD REQUEST
I’m trying to send a request POST to Plivo (Voip server) to send an SMS to my mobile, but I only get BAD REQUEST (Code 400). The mistake I received is "error": "invalid json data sent in raw POST" I…
-
2
votes0
answers264
viewsHow to get the photo taken from the camera, not the camera preview
Good afternoon guys, I’m using this Xamarin cross-platform camera design. In the android part, I’m not getting maximum in the photo, I’m using this function:…
-
2
votes1
answer36
viewsIs there an alternative to PRIORITY_MAX that is obsolete?
I’m using the class NotificationCompat.Builder to create a notification where it has to be at the top with the highest priority. I set the notification priority as follows:…
-
2
votes1
answer618
viewsPermission denied when accessing gallery image
I need to allow the user to choose an image from the gallery and for that I am trying to get the application to request the user’s permission. I created the variable ok to give permission to the…
-
2
votes1
answer139
viewsTake view position on the screen and apply in another view
I’m trying to make a transition effect when I open a DialogFragment but for that I need the photo(CircleImageView) of DialogFragment is in the same place as the photo of Activity which opens it. If…
-
2
votes1
answer333
viewsRegular expression to identify text box in HTML form
Situation Give up a page in any HTML where there is a form containing, at first, two text boxes, one for name and the other for email. Then came the need, to do some tests on Android, to get just a…
-
2
votes1
answer885
viewsChange Fragment components through an Activity
I’m making an application with NavigationDrawer, and not to create another activity, I’m using fragments, where every click replace in the FrameLayout that I left set as main. How I access the…
-
2
votes1
answer218
viewsHow to get the device serial number?
I am using the following code to get the device serial number: String serial = Build.class.getField("SERIAL").get(null); But the result is not the same when I check the serial number on the device.…
androidasked 6 years, 8 months ago Murilo Fechio 836 -
2
votes1
answer47
viewsFragment being used by two different activties
I have a Ragment that is inflating a Recycler view, so far so good. The problem is that this Fragment needs to inflate into two different Rawer navigation, and when it comes to casting, I can only…
-
2
votes1
answer182
viewsHow to pass a class with Bigdecimal and Date attribute through intents(Bundle)?
I have a ArrayList<MinhaClasse> with Bigdecimal attribute and I am going through Intent from one activity to another. The problem is that the Bigdecimal attribute passes with null value. Can’t…
-
2
votes1
answer416
viewsCopy HTML from a page display in a textview
I need a direction. What method to "download" a page’s html (text only) for example: https://pt.wikipedia.org/wiki/Tancredo_Neves and display it in a textView?…
-
2
votes2
answers53
viewsProblem pulling server list on Android
Whoa, guys, I’m pulling a list from the server and populating a RecyclerView with that list. But when the list is empty, I want a message like: "There are no entries for that product yet". But not a…
-
2
votes1
answer414
viewsUsing Broadcast Receiver with Downloadmanager
I’m learning to make use of the DownloadManager with BroadcastReceiver to know when the download is completed. The problem: let’s assume that I will download 2 Pdfs on a page, I record 2 Receiver,…
-
2
votes0
answers110
viewsLocal Network Android App
I would like to know where to start studying to create an app that works on a local network. I have a version of this App that works using Firebase with my online database. I wanted now to do…
-
2
votes1
answer398
viewsCalling up database in another Activity
Good afternoon, I created an application that counts the number of goals and the name of the team, and in the application has a button called result (in the menu) that opens another Activity result,…
-
2
votes1
answer43
viewsGet name resolution time on HTTP request
Long live, Is it possible to obtain separate name resolution time from access time? The code I have is: HttpURLConnection connection; try { URL endereco = new URL(url); connection =…
-
2
votes1
answer266
viewsLogin error when trying to upload project from Android Studio to Github by IDE
I tried to upload my project from Android Studio to Github, but it is giving login error. I confirmed my login and password and are correct. Does anyone know how to fix it? I Googled and I couldn’t…
-
2
votes1
answer354
viewsChange the color of a background image on Android
I have a background image in a textview, I need the color of this image to be changed dynamically, I tried to change using setColorFilter, however, it changes the color of the whole image, I can’t…
androidasked 6 years, 7 months ago felipe.rce 1,969 -
2
votes2
answers982
viewsLinearlayout Over Other Linearlayout
I have a layout in Android Studio that I would like to have on another layout, but I can’t do it in any way. I would like you to be on top, because it is a menu that appears when someone presses the…
-
2
votes2
answers400
viewsSlow search ignoring accents
I have a list of objects and I’m doing a title search. I use the Normalize to make the comparison by ignoring accents: public static boolean containsIgnoreCaseAndAccents(String haystack, String…
-
2
votes1
answer74
viewsRetrieve gateway from the network?
Does anyone know or knows any way to find the IP address of gateway network ? The local ip I know I can recover with the class InetAddress: InetAddress.getLocalHost().getHostAddress();…
-
2
votes0
answers39
viewsHow to put an Alert when clicking to exit the App
Some Apps when exiting the physical button of the device appears a bar below in the first click of the user, asking the user to click again to exit. How do I schedule this event?
-
2
votes2
answers678
viewsWhat is the most efficient way to take information from any website and use it in an Android APP?
For example: An app that accesses the site https://dolarhoje.com/ and take the value of the current dollar and show in the app. What are the ways to do this?…
-
2
votes1
answer646
viewsAndroid, PHP e Httpurlconnection - Send a message to PHP with UTF-8
Gentlemen, good morning/afternoon/evening! I’m having trouble accentuating words. The back-end of my system works in PHP chatting with an Android app. When I send the App message to the PHP server…
-
2
votes1
answer273
viewsSeparate Item clickable in android Layout
I have a Listview, and a layout of the Adapter item that follows its basic image Problem is that when I click on any area of the item, in the list, every component is "selected" I would like to get…
-
2
votes1
answer320
viewshow to show video loop in videoview in android studio
I have a video view on my android app and the background video is set that way String uri = "android.resource://" + getPackageName() + "/" + R.raw.oceans; VideoView mVideoView =…
-
2
votes1
answer809
viewsAndroid: sending and receiving json with php and registering in the database
I’m having trouble making this communication, being that I am responsible for the php part and the android part is being made by a friend(that the code sending something), he said he is sending by…
-
2
votes2
answers114
viewsAlternative to the Alarmmanager
I would like to know an alternative to scheduling a notification other than with Alarmmanager. The reason is that when the phone is turned off and then turned on, the scheduled task is removed.…
-
2
votes1
answer457
viewsConnect external Mysql in app to perform authentication
Hello, I need help making an app for access to an environment control system. I need to authenticate the user, from an existing database, and, when performing this authentication (not needing to use…
androidasked 6 years, 6 months ago Gabriel Lukaszczyk 21 -
2
votes1
answer942
views -
2
votes1
answer191
viewsTabs Android Stuido
I have a Navigation Drawer working perfectly, but I decided to have a Fragment with 3 Tabs, but giving error, I saw video and I took example, but I can not acetate. //My Navigation Drawer package…
-
2
votes1
answer581
viewsHow to use HTML files from the Assets folder in a Webview
I know there are several similar questions, but in all of them I have found no method to help me. As it is in Activity: package com.example.guilherme.webviewteste; import…
-
2
votes2
answers957
viewsQR Code reader embedded in my own Activity
I need to implement a QR code reader in my Activity, ie NO REDIRECT. Using Zxing will not solve my problem. To get an idea, see in your application Whatsapp, in Whatsapp Web function: There is an…
-
2
votes1
answer137
viewsMy application is closing when starting the screen with database
My activity with the database is with some problem, because I created the class right and Android Studio is not showing any error, but when I will run it on mobile when opening activity that has the…
-
2
votes1
answer49
viewsActivate an event when it’s moving
I have a ImageView moving on the screen, I need to perform an animation when it is touched by the user, but image.setOnClickListener and also image.onTouchListener are not being activated when the…
androidasked 8 years, 1 month ago Roger Casagrande 123