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
answer47
viewsOn android which class corresponds to javafx Image class
I have image server implemented in javaEE, in javafx I make an image request to the server that returns an array of bytes, with this result create the image on the client side: ** Image in PNG…
-
0
votes1
answer112
viewsError while doing image url GET on Json Android
I have the following code: private class DownloadJsonAsyncTask extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() {...} @Override protected Void…
-
0
votes3
answers4692
viewsUnable to start Activity Componentinfo
The app doesn’t work when deploying. It "crasha" straight. Follow the code and error: Actmain.java package desenvmoveluss.com.br.trabalho01; import android.support.v7.app.AppCompatActivity; import…
-
0
votes1
answer30
viewsAdd one vowel at a time to a Textview
I have 5 buttons that emulate vowels, as each button adds one vowel at a time to a display, defined as TextView ?
-
0
votes1
answer21
viewsAndroid appears message in the log about security configuration
I have an application that queries data on a Webservice using JSON. When I run my application I get the following message in the logs: D/NetworkSecurityConfig: No Network Security Config specified,…
-
0
votes1
answer314
viewsCount Listview items
I have a listview, which is filled with database data, and I need to compare the list data with an X value entered by the user. ListView listItens; listItens = findViewById(R.id.listItens); adapter…
androidasked 6 years, 6 months ago Nicolas Souza 13 -
0
votes0
answers1968
viewsA problem occurred while parsing the package
I always developed apps quietly and use my mobile phone Xiaomi Mi6 to test the applications I develop, only that from one moment to the next, I can’t test any application I myself am developing, if…
-
0
votes0
answers24
viewsIonic capacitor npx Sync not working
when I add a plugin, I need to run the command: npx cap sync So that it can load the plugin, however I’m getting the error below:…
-
0
votes1
answer95
viewsError implementing Facebook login button
I’m trying to implement a custom Facebook login button. But the following mistake happens: C: mala_App mala_App mala_App app src main res layout activity_new_login.xml Error:(117) No Resource…
-
0
votes1
answer437
viewspass parameters on a request in the retrofit
I am studying retrofit and came across the following problem: am performing a get request at url https://jsonplaceholder.typicode.com/posts/1 but when mounting the request I cannot add the posts/1…
-
0
votes1
answer286
viewsCreate a Marker at the current Maps position with Fragment
Hello, I need to put a Marketer in my current position and show on Google Maps, but as I am using Fragment the setMyLocationEnabled method does not work, I have already gone after the internet on…
android google-maps android-fragment google-maps-android-api-2asked 8 years, 2 months ago Carlos Vicente 23 -
0
votes1
answer99
viewsHierarchical database(?) - Sqlite/Android
Good afternoon, I’m starting to study Android and thought of making an app to already study together database. I want to make a "family tree", so that clicking on the person’s name (button) would…
-
0
votes1
answer116
viewsWhen Textview gets too big, decrease the font size
I’m creating a number keyboard that adds value to a Textview, but when you put a very large value the text starts to occupy the entire screen, I would like the text to continue in the same line and…
androidasked 6 years, 6 months ago Romão Gomes 143 -
0
votes1
answer334
viewsAndroid consuming web service Soap
I’m developing an application to search the response server, I send the boleto number and your type. Only when I send the data he doesn’t send me a return, what I might be doing wrong? package…
-
0
votes2
answers416
viewsList always returns only the first row of the sqlite database
I have a list, which shows all the data of the sqlite database, image path, latitude and longitude, but in the list only changes the image path, latitude and longitude always remains those of the…
-
0
votes1
answer18
viewsMode of execution of the Activity
Guys created an Activity made the layout, this Activity will insert the value in a Textview of another Layout, but I wanted it to open as in the image, someone knows how to do? ![img][1] tbm I do…
androidasked 6 years, 6 months ago Romão Gomes 143 -
0
votes1
answer69
viewsAdd values to Textview treatment
I’m creating a financial control app, it’s a college project, in the place where it shows the value in the form I made a Textview that to be clicked opens a Dialog where I created a custom keyboard…
androidasked 6 years, 6 months ago Romão Gomes 143 -
0
votes0
answers133
viewsExtremely slow app build
Hi, I’m having a serious problem with the time of Gradle Build an app. I did a lot of research, changed Gradle settings, disabled crashlytics, activated daemon, build cache, offline work and…
-
0
votes1
answer83
viewsLandscape mode does not work
I already made the layout for the Portrait mode and created the layout-land folder and pasted all the xml files I already have to be able to adjust. From what I read, just do it but it’s not…
-
0
votes1
answer60
viewsAndroid Studio - About Scrollview
I have a normal screen with textview only. And at the end has a Videoview. The scrollview fuciona normally, I can rotate up and down. The problem is that when I start Activity, instead of starting…
androidasked 6 years, 6 months ago Luciana Freire Efelipe Correia 27 -
0
votes1
answer596
viewsAndroid - Recyclerview with white spaces between items
Recyclerview is showing large white spaces in the layout. Note: When you start scrolling down, items appear normally, but when you go back up, you start displaying large white spaces between items.…
-
0
votes1
answer199
viewsHow to open an Activity from a java class?
I have a java class called Firebase, this class only does functions of firebase... I’m authenticating a new user in firebase, so far so good.. The problem is that I can not pass to another Activity,…
-
0
votes1
answer68
viewsBroadcastreceiver in notifications
Eae guys I’m novice in the issue of android I’m with the following doubt I’m making an application that sends notifications every day at times determined by the user but I did not find content on…
androidasked 6 years, 6 months ago Aleander Rayson 37 -
0
votes1
answer36
viewsUsing java.lang.reflect.Parameter in android applications
Hello. I’m trying to implement an android application (with the Android Studio IDE) that uses Reflections to access certain attributes of a class. However, when using the class…
-
0
votes1
answer71
viewsProblems with onKey event
I’m servicing an android app made with Eclipse(ADT). There is a text box, where the barcode of the product will be typed, as well as this reading can be done with the reader. When you open Activity,…
androidasked 8 years, 1 month ago user26552 -
0
votes1
answer98
viewsAccessing a specific component within a listview
I have a music list with a favorite icon, when the user clicks on this icon I want to change the color of the icon as the like action. In this structure I have an Activity, a listview in this…
-
0
votes0
answers419
viewsE/Recyclerview: On Adapter Attached; Skipping layout on time access the main menu
To produce a shopping mall in my application I made a recyclerview in my main menu to demonstrate all the products that are in the database. I am trying to connect the field known as "Category" to…
-
0
votes0
answers78
viewsHow to capture sounds in Android Studio?
All right?? I wonder if it has any function in Android Studio to capture the sounds of the environment by the microphone of the phone. I am trying to implement a voice command function without…
androidasked 6 years, 5 months ago Gabriel Gomes 1 -
0
votes1
answer109
viewsNull Object Reference when listing data with Firebaserecycleradapter
I’m trying to popular a Recyclerview with the Firebaserecycleradapter. When the onBindViewHolder method is called to popular the layout through the Viewholder class, the error is triggered:…
-
0
votes1
answer72
viewsTake photo in android application and save in a folder within the project (No drawable for example)
I’m new in android programming and I’m developing a simple project where the user takes a photo of any. Once the photo is taken and the user has confirmed, he wanted to save it in a folder within…
-
0
votes1
answer68
viewsOpen the APK settings via API
I would like to know how to make the user fall into the application settings (APK) via API, for example, the user put the option "Do not ask again",in the permissions of the application, and I open…
-
0
votes1
answer143
viewsTrouble catching latitude and longitude
My code was working, I was getting latitude and longitude normally, but it stopped and I’m not getting the location anymore. It only falls on the condition that it was not possible to pick up the…
-
0
votes1
answer124
viewspublishProgress only updates the Progress Dialog at the end of theInBackgorund
I am unable to update the progress of my Progress dialog during the insertion process into the Sqlite database from a JSON array. The process occurs smoothly, however, the update only happens at the…
-
0
votes2
answers1351
viewsInstant Run works but file . apk does not install
Well, the problem I’m facing is that when I emulate mine app through the Instant Run the app goes perfectly on my smartphone. However, I cannot install the same app through the .apk generated. Use…
-
0
votes1
answer322
viewsQuery in firestore to check item inside a document
I’m using the Firebase Firestore and I need to mount a *query that checks the following data as pointed out in the following figure: Because he’s in one array, inside my document, I don’t know how…
-
0
votes1
answer95
viewsAndroid composite control Textview + Switch - click method
I made a layout of a Textview + Switch button. How do I set the onClick method in prefs_activity.xml and receive notification in the class implementation? layout/preference_switch.xml <TextView…
-
0
votes1
answer30
viewsOnitemclicklistener with Customadapter, java.lang.Nullpointerexception error:
Good Afternoon, I’m using a listview to display some images per url and cache them. So far, so good. But when I put Onitemclicklistener just to show Titulo with a message it gives the error…
-
0
votes1
answer51
viewsCompile and Run GUI on Android
I use c4droid to compile C code using gcc, in my studies I want to enter the graphical interface, but as I am without computer I thought to use the android itself. Well, I installed the GNU Root…
-
0
votes1
answer25
viewsAndroid - Change components of a Dialog
I used a Dialog to display a custom alert this way: Dialog dialog = new Dialog(); dialog.setContextView(R.layout.resource); dialog.setTitle("Diálogo"); dialog.show(); However I can’t change Dialog…
-
0
votes1
answer193
viewsOpen images from an external server folder on android
Hello, I have a folder with images on an external server, have to take the link of this folder and open the images that are in it(slide type) in an Activity in the case in android studio?
-
0
votes1
answer112
viewsProblem with android library REACT-NATIVE
I’m using a library to crop photos in my project, but it only works for android, when I run the app on android it runs normally, but when it runs on Ios, from the error in importing the library,…
-
0
votes0
answers77
viewsAndroid studio, Switch method hangs app
I’m having a problem with the Switch of Android studio, I just can’t do a manipulation with the data of it because it simply hangs the App on the VM. MAIN.Java a doubt, these changes are in…
-
0
votes1
answer138
viewsSearch in Firebase
Good morning friends, I have the following structure at firebase. I need to search my bank, displaying all the products that are on Child Sem Barra, and also the supermarkets and price that are…
-
0
votes1
answer80
viewsJava Android Studio - Recover IP from device
Good morning, friends! Does anyone know how I can recover ip from an android device? I got some codes, but only to recover the wifi ip. I need this ip, because I am working on an ad application, and…
-
0
votes1
answer522
viewsReact Native and hybrid?
I was wondering if React Native and really hybrid, like Ionic, that you program a code only and export to the two platforms (IOS/ANDROID), or and similar to Xamarin, that you make the 2 different…
-
0
votes1
answer438
viewsScreen "loading" on Activity
I would like to know or understand how to put a loading on the screen. My app consults on a webservice, and sometimes depending on the connection it takes to bring the information. And the app turns…
androidasked 8 years, 1 month ago Artur Mafezzoli Júnior 441 -
0
votes1
answer29
viewschange global Contant value
Good afternoon, I would like to know if it is possible to change the value received by a global constant and set another value. For example, I take the value of the color that is set in the edge…
-
0
votes1
answer51
viewsHow to add Asynctask to this task?
Hi, could someone help me add an Asynctask to this task? Here I am connecting to a JSON for information, then it will be added to Recyclerview. RequestQueue queue = Volley.newRequestQueue(this);…
-
0
votes1
answer291
viewsHow do I close a dialog when the condition is true?
How can I make a custom alertDialog close after the user activates the gps? The dialog box tbm can not close while the gps condition is false, that is, while it is disabled alertDialog has to…
-
0
votes2
answers128
viewsHow to send multiple strings per url in Android studio?
I have data to send to a web server, the server receives the strings following this pattern: http://teste.com/{id}/{latitude}/{longitude} How do I send this data occupying these spaces at once by…
androidasked 6 years, 5 months ago Rodolfo Donato 79