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
answer161
viewsError:(44) No Resource Identifier found for attribute 'srcCompat' in package 'my package name'
Hello, When I open my project, the following error occurs: Error:(44) No Resource Identifier found for attribute 'srcCompat' in package. And the R of my layout, does not find the layouts and with…
-
0
votes0
answers40
viewsError while using android camera inside application
I’m implementing an app where I need to use the camera to take a photo and save it in the gallery, however I’m getting an error when I try to run a command to do this procedure. public class…
-
0
votes1
answer414
viewsHow to search Searchview actionbar for Recycleview data using Kotlin?
Follows code below: class MainActivity : AppCompatActivity(), SearchView.OnQueryTextListener { var list = ArrayList<Shop>() var adapter = ShopAdapter(this, list) var imageModelArrayList:…
-
0
votes0
answers247
viewsWhen sending a notification, how do I show the badge icon?
This is the Oncreate from my Mainactivity. Note that I have a badge with a value of 10 for testing. Now I need to make sure that by submitting a Notification, I can increment the badge icon with the…
-
0
votes1
answer775
viewsHow to change the color of the button that is pressed?
I am developing an app that randomly generates an addition account and generates 4 values as possible answers and that are placed in 4 buttons (also in a random way). I would like to know how I do,…
androidasked 7 years, 1 month ago Christian Gomes da Silva 133 -
0
votes1
answer250
viewsChange Hint Gravity - Edittext
In the xml of my edittext I put the property Gravity to always leave the cursor at the end, however I needed to leave the text hint at the beginning. It is possible to set a Gravity property for the…
-
0
votes1
answer1140
viewsAndroid - Webview button back
I have a mirroring of a website on Webview and would like to press the button Come back back to the previous page. Currently if I press the button Come back from Smartphone, the application is…
-
0
votes2
answers49
viewsChange the color of a list according to a certain variable
I’m trying to get my schedule list to have each line with different colors for each category that was defined, this list is filled by data recovered from firebase that goes to the model class,…
-
0
votes1
answer264
viewsFirebase ID count - Android
In my application, I have an entity called Game which has, among other attributes, a ID. I need that each time this entity is instantiated the ID is incremented + 1. This works until the application…
-
0
votes1
answer383
viewsSwitch Android catching Varialvel
I have a Switch component and would like to get its status whether it’s on or off. When searching on the net the examples that I got didn’t work but one worked but it only takes the value when I…
-
0
votes1
answer738
viewsimage view and text view side by side in linear layout
I have to put the image and the text side by side but do not know how to do, my code for now: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout…
-
0
votes1
answer242
viewsRecycler view does not load when the app first opens
I have a recycler view within a fragment in a tablayout, being the main tab. After logging in, it does not load the data, only loads if I change tab and return, or close and open the APP. Code:…
-
0
votes1
answer37
viewsScrowview layout
I have a problem with the Scrowview layout, like, I have a form with 7 fields to be filled out, but when the keyboard appears to fill in the information, the first editText go up, and the scrowview…
androidasked 7 years, 1 month ago Victor Cabral 1 -
0
votes0
answers108
viewsHow to save the size of my recyclerview
The size of my recyclerview and second shape setado mDatabase.limitToFirst(valor1*valor2)... valor1 = 1 * valor= 4 = 4 When I roll the recyclerview till the end call…
-
0
votes1
answer352
viewsHow to change Alertdialog buttons?
I wanted to change the buttons of my Alertdialog for example: I would like to exchange the positivebutton for a textview and so put the onClick event in it. My java: Mainactivity.java public void…
-
0
votes0
answers23
viewsAndroid Appbarlayout with tabs
How can I do the tabs of App Bar Layout be functional? I believe only the component Tabslayout won’t be enough, so I’m pretty sure I’ll need to use a Viewpager to manage the exchange (Swipe) between…
-
0
votes0
answers106
viewsHow to restrict the operation of some Android buttons
I’ve been trying a few days, some alternatives to lock the buttons of a tablet and then I need them back to work. I’ll show you some ways I’ve done and which one is operating in the best way…
-
0
votes1
answer153
viewsHow do I make Button work only if Edittext is filled in?
I just want to push the button after all the EditText's are filled in package com.example.marcosnogueira.appnote; import android.support.v7.app.AlertDialog; import…
androidasked 7 years, 1 month ago Fabinhu288 3 -
0
votes0
answers27
viewsCompile multDex error
I’m having compilation problem I’ve seen several topics here I tried td but, it doesn’t work, I also tried several combinations but it won’t. Obs: I’ve tried to td that there is here in the forum!!!…
-
0
votes1
answer37
viewsProblem with checkbox and Onitemclick event
I created a list with checkbox disabled, where the goal is that when the user clicks on an item in the list, a new screen is opened and the check is marked, but I can’t make the check be marked…
-
0
votes1
answer609
viewsFloat Action Button does not get fixed at the footer with Collapsing Actionbar/Toolbar
I have a Fragment with Coordinator layout, recyclerview and a Float Action Button, and in the view that calls this Fragment has a tablayout that hides and appears as you go up or down the Recycler…
java android android-recyclerview material-design floatingactionbuttonasked 7 years ago Julio Antonini 9 -
0
votes0
answers30
viewsI’m not able to register in APP
I’m trying to register using Firebase. Everything is correct there in Firebase, but when I click on Register in the APP, nothing happens, it seems that the button is without function. Can someone…
-
0
votes1
answer640
viewsmodify notification icon
Can someone explain to me why my notification icon is small and the notification when it "arrives" does not vibrate or make any sound? Thank you. import android.app.Notification; import…
-
0
votes0
answers47
viewsError with the Spinner Book
I passed on to Class that he sends me as soon as I click on the bug, but I can’t identify it. Can anyone help me? Sorry for the inconvenience, I’m new on Android and the site, so I don’t know how…
androidasked 7 years ago Yuri Rodarte 11 -
0
votes0
answers53
viewsWorks in Netbeans but not in Android Studio
The following code works for when the user leaves an editText of the form blank. The code worked in Netbeans but on Androidstudio when running the APK with a blank field it shows the message that…
-
0
votes0
answers246
viewsSmile detection using opencv on android
Hello, I’m having difficulties to detect smiles using opencv on android. I can make the detection of faces and eyes very well using Aar Cascade but only the detection of smiles is not working using…
-
0
votes2
answers841
viewsRetrieve and calculate programmatically generated Edittext values
I am creating an app pqra calculate an arithmetic mean of N values. There is a button add, when clicked it will generate a EditText programmatically. And it will have a calculate button, when it is…
-
0
votes0
answers252
viewsHow to send data from an Activity to a Fragment
I’m trying to send my data from Activity CorridaEsteiraActivity to the Fragment FragmentCorrida and save them in a listview, however I did not succeed in my attempts, below follows the two classes:…
-
0
votes2
answers541
viewsProblem in recovering data from firebase
I recently started working with Firebase and am still learning what can be done by reading the available documentation. But one problem I’m having is recovering the data within a function. The…
-
0
votes1
answer57
viewsHow to select memory file?
I am trying to make a video player, but not using "raw" or the internet, I need to get the file from the mobile memory, be it internal memory or sd card memory, I have tried through the path…
-
0
votes1
answer67
viewsERROR: this - cannot be Applied to
error appears in the part of the code where I have "this" private void sendEmail() { //Getting content for email String email = editTextEmail.getText().toString().trim(); String subject =…
-
0
votes1
answer36
viewsHow do I get the result of the window that asks to activate Bluetooth?
Inside an android application, I have a screen that requires bluetooth to be enabled, if it is disabled, the part of the code below asks the user to enable it: final BluetoothManager…
-
0
votes0
answers165
viewsVery large delay when getting GPS coordinates
I’m having delay problems getting GPS coordinates. I pick them up the moment the user presses a textbox to validate the data. Motorola’s Vics are doing fine. Now testing on the Oneplus 3T (A3000)…
-
0
votes1
answer44
viewsMusic app does not run on Android
Hello I was creating a music app whose I hit the button touch the music, I copied all code and went to run the program not debugged on my phone and opened an error then opens a screen of the music…
-
0
votes2
answers676
viewsHow to convert from hexadecimal to Base64?
I’m getting a hexadecimal image from the database and have to convert it to base 64, only I don’t know how to do that. I am currently setting it as string and returning to json: Model private String…
-
0
votes0
answers140
viewsIs it possible to create an Options Menu without an Action Bar on Android?
I am creating a Profile screen, and would like to put a Options Menu with the options 'Edit Profile' and 'Quit'. The problem is that I don’t have an Action Bar on this screen, and I don’t want to…
-
0
votes1
answer328
viewsError creating new screens in Delphi for Android
I’m creating an app for Android with Delphi 10 Tokyo and in this app has a certain screen, called Tela1. When I click the Open button from my menu on the main screen, calling the screen Tela1, opens…
-
0
votes1
answer1037
viewsaccess permission to android image gallery
Hello, I’m creating an app that by clicking on an Imageview opens the gallery of images android, but when I open it was showing a dialog for whether or not the user wants to allow access to gallery,…
-
0
votes1
answer686
viewsApp does not appear in emulator
I am creating an app in Android Studio, I am using the emulator Genymotion, everything is running normal, only it does not run the app and does not appear the icon in the emulator.…
-
0
votes0
answers193
viewsError placing conditional build on Assemblyinfo.Cs file
When I put this in my Assenblyinfo.Cs do not compile #if DEBUG [assembly: Application(Debuggable=true)] #else [assembly: Application(Debuggable=false)] #endif and gives error in almost all classes.…
-
0
votes0
answers36
viewsEnable Filepicker to select multiple files
Good morning, I’m a beginner in the programming of Android apps and I have a question mark about how to enable filepicker to select multiple files. My code works, but only selects one file at a…
-
0
votes0
answers30
viewsShow Result of an onResultScan in a Recycleview
I’m riding a APP for the course, it’s about Wi-Fi, precise list the search for Wi-Fi available and put on Recycleview, in the example I’ll show him listing in a Listview, and in the Recycleview I…
-
0
votes1
answer176
viewsMake a method on onCreate run once
In my mainActivity I have the method: player.setPlayWhenReady(true) which is responsible for making the player start playing and continues to run in the background while I am browsing between my…
-
0
votes0
answers56
viewsSaving data from various Ragments
I have a slide ( using the material-intro lib) that has several fragments, I need to save the data that are typed in those edittext fragments when I close this slide, I’m trying via Input but I’m…
androidasked 7 years ago Igor Oliveira 1,110 -
0
votes1
answer1146
viewsProblems trying to change a nav_header_main.xml text view
I am working for the first time with Navigation Drawer Activity, and would like to change (by java) the text that appears in the nav_header_main.xml menu In red is the text I want to change. Below…
-
0
votes0
answers142
viewsProblem stop importing Edittext class
I’m trying to import the Edittext class and I can’t, which may be? import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View;…
-
0
votes1
answer41
viewsClass control Android internet connection - Wifi-3G
Hello. Currently I control screen by screen the type of internet connection to which the user is connected or not. I use a method similar to this: /*Check conection*/ ConnectivityManager manager =…
-
0
votes1
answer227
viewsIssue with webview, open more than one link outside the app
I tried my set my webview to open more than one link, but n works my code makes websites.google open in the webview of the app and the rest of the links open out(android Nav), I want the…
-
0
votes0
answers137
viewsAndroid Studio Database Connection using JSON
I am with the following problem, I am making an app q contains login and user registration and I am using PHP and JSON code for this. However I checked my Response.Listener is never called, the…
-
0
votes1
answer169
viewsHow to instantiate views of another layout?
I have the layout main and the code that controls it, this layout has a Navigation Drawer (the "slider" on the left) and left the layout of the Main Header (the top of the Navigation Drawer where…
androidasked 7 years ago underfilho 600