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
answer302
viewsHow to show interstitial ads after loading the home screen?
I need help, I would like to display an interstitial ad after the home screen loads, but my code is giving the following failure: java.lang.Illegalstateexception: isLoaded must be called on the main…
-
0
votes1
answer237
viewsHow to convert an object to Kotlin of type Any! to another one that is possible to access the fields?
Good morning, I’m having a bit of a problem getting solved on a project. I am trying to make an application that will communicate with the ERP odoo, however, this ERP uses the xml-rpc protocol for…
-
0
votes1
answer253
viewsChart.js is not displayed on Android
App developed in Ionic. cli packages: (/usr/lib/node_modules) @ionic/cli-utils : 1.19.1 ionic (Ionic CLI) : 3.19.1 global packages: cordova (Cordova CLI) : 7.1.0 local packages: @ionic/app-scripts :…
-
0
votes0
answers118
viewsRetrieve information from a Dialog via Activity
Good afternoon, in my project I need to open a search screen to recover an object in a list, until here everything right. Before trying to use Dialog I was using Alertdialog that was serving me very…
-
0
votes1
answer582
viewsHow to take the item information from a java listview and insert it into an android studio textview?
I am learning to program, and I started a project in q shows the information about the Formula 1 teams, such as pilots, age, nationality and titles of each. When you click on an item, you will be…
-
0
votes1
answer22
viewsSpinner error to popular by Sqlite
Error: Caused by: java.lang.Illegalstateexception: Couldn’t read Row 0, col -1 from Cursorwindow. Make sure the Cursor is initialized correctly before accessing data from it. Classes Novoregistro:…
-
0
votes2
answers130
viewsShow Edittext by clicking the Floatingactionbutton
See if you can help me I’m starting to work with Floatingbutton like when the user click on the button appears an Edittext for typing and a button at the end to delete the text as picture below: I…
-
0
votes1
answer38
viewsApp is closing when debugging on Android
I’m trying to run the app on Android, where I want to list the data registered in a Mysql table. I’m trying this way: Connection import java.io.BufferedReader; import java.io.InputStream; import…
-
0
votes1
answer67
viewsApp only brings a record on Android
I’m developing an app on Android where the data is in a web-based developed in PHP/Mysql. The code I’m using to get the data is: public class ListarDados extends AppCompatActivity { public static…
-
0
votes1
answer178
viewsError picking up Radiogroup Android Id
I’m having trouble getting the Radio Group ID. Can someone explain to me how it works? public class MainActivity extends AppCompatActivity { private static String TAG = "livro"; private ToggleButton…
androidasked 6 years, 10 months ago use3265498465 95 -
0
votes1
answer328
viewsHow to use SVG icon in Google Maps addMarker (Markeroptions) API Android
I am using the following Example code from the Google Maps v2 API for Android: mMap.addMarker(new MarkerOptions() .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_bike)) .anchor(0.0f, 1.0f)…
-
0
votes0
answers151
viewsdiary app with messages
I have a deadlock here, I’m setting up a screen for my app, where there’s a calendar, where the dates appear and when I touch the date appears the notes that another user made, but I wanted to know…
-
0
votes2
answers63
viewsHow to center 02 Textview of Videoview
I have 02 Textview and I want to put them in the center of a Videoview where a text is on top of each other. <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
0
votes1
answer396
viewsCase insensitive search Firebase
I’m using Toolbar’s searhcview for searching recyclerview items the search works, but Firebase’s query differentiates between upper and lower case and sharp words. I wish it was Case insensitive…
-
0
votes1
answer1023
viewsArray to String Conversion Error
I have an Android application that sends a string-shaped Json to the PHP server. I tested with var_dump to check that the data was being passed correctly and everything is ok. The problem is that…
-
0
votes0
answers47
viewsAudio stream on some mobile models does not work
I am concluding a simple audio stream (Web Radio) to finalize a project in my city. I am still new to programming app, but I noticed that some models of Smartphone (Moto Xplay and Sony Xpéria),…
androidasked 6 years, 9 months ago Vinícius Jales de Souza 1 -
0
votes1
answer606
viewsHow to open the virtual keyboard on a Fragment focusing on editText?
Hello I am developing an application and when loading the screen to register the focus is on an editText but I need to automatically load the virtual keyboard of Android. public class…
-
0
votes2
answers38
viewsProblems with internet scanning method on Android
I have this method to check if the device is connected. However I am getting some msgs of problems with synchronization of my data. And I’m thinking it must have been this alteration in the Internet…
androidasked 6 years, 9 months ago Joaohesilva 3 -
0
votes1
answer3270
viewsLogin to the Wifi network through the app
When you connect to a wifi network that needs authentication, Android sends you to the network authentication page by a redirect usually sent by the link connectivitycheck.gstatic.com/generate_204…
-
0
votes1
answer108
viewsChange item color in a listview that contains certain TEXT
How do I put it for when a listview item has information it gets a background with a different color? In the example below it receives the data and returns them in listview: public…
-
0
votes2
answers717
viewsCall method with View parameter in another method
Examples of a method that requires a View public void lista(View v) { Toast.makeText(this, "Ok", Toast.LENGTH_SHORT).show(); } public void botaoAbrir (View view) { Intent i = new Intent(this,…
-
0
votes1
answer243
viewsError creating onClick Android
I have a button on Android where when clicking, will be directed to another screen. The structure of the page is like this: <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
0
votes1
answer48
viewsError when including Listview
I’m bringing the results of Mysql on Android with Textview this way: public class ListarDados extends AppCompatActivity { public static TextView data; @Override protected void onCreate(Bundle…
-
0
votes1
answer1243
viewsError:Execution failed for task - ':app:transformClassesWithDexForRelease
I’m getting this mistake every time I try to give one rebuild project Error:Execution failed for task ':app:transformClassesWithDexForRelease'. com.android.build.api.Transform.Transformexception:…
-
0
votes1
answer317
viewsUpdate recyclerview from another fragment, in the same viewpager
I have a viewpager that contains 3 fragments, one for transactions performed,one for transactions canceled and one for open transactions. Each fragment has a recyclerview for displaying transactions…
-
0
votes0
answers95
viewsListener (Listener) for Google Maps v2 Android Camera Zoom changes?
I’m using the Cameraposition() to get Camera Zoom on Google Maps mMap.getCameraPosition().zoom It works perfectly when I call somewhere in the code, but I would like to create a Listener (Listener)…
-
0
votes1
answer332
viewsXamarin: Android app does not load Https images
Guys I’m developing a Cross-platform App in Xamarin and I’m not able to upload https images from an api. If I perform a compilation on Windows Phone the images are normally loaded already on android…
-
0
votes1
answer35
viewsSearch for custom Listview values
I got the following ListView that was generated with a Customized Adapter: I would like to know how to find the values (date, time, history, id, etc) of the item with the setOnItemLongClickListener,…
-
0
votes1
answer134
viewsString comparison does not work
I have a string that currently only gets "ERROR" and I did an if for when she gave me this value ran some things, it turns out that the comparison always fails, even the strings being exactly the…
-
0
votes2
answers49
viewsPopular array on online server
I’m a beginner in programming and I’m developing an android application that uses PHP and requests with Mysql. I initially tested all the features on the local server to then migrate it to an online…
-
0
votes2
answers105
viewsBackground Edittext Alpha (transparency)
I would like to know how to make the Edittext fund transparent, in this way: I tried in the following ways, but without success: edt.xml <?xml version="1.0" encoding="utf-8"?> <shape…
-
0
votes0
answers84
viewsSend E-mail by pressing a button
I’m making an application that consists of, by pressing a button a programmed email is sent automatically without I have to enter gmail to press "send" Until then I built this code and it’s doing…
-
0
votes1
answer71
viewsRecyclerview Android
I wanted to make imageButton appear if item.getImprimir() == true. It seems to work ok but if scrolling Recyclerview down starts to appear problems, it starts to appear right where…
java android android-adapter android-recyclerviewasked 6 years, 9 months ago Anderson Scherdovski 85 -
0
votes1
answer285
viewsHow to read files with accents on Android?
Hello, I’m having trouble reading files with accents on Android. I am using the following method to perform the reading: public String lerAquivo(File arquivo) { String texto; String linha;…
-
0
votes1
answer189
viewsandroid:textIsSelectable in Webview
I’m creating an app, and I wanted to leave hide the option to select the text and copy. You know when people say focus above the text and appears that option to copy or share the text, I wanted to…
-
0
votes1
answer51
viewsIonic - Problems Pulling Data from PHP Database
Hello, I would like to know how I can pull the database data already with the tags in html. I collect the data and they come normally, but my table is composed by title, content and in this content…
-
0
votes1
answer110
viewsError:Failed to resolve: support-Annotations
I went to remove external libraries from my project because I was getting mixed version errors from appCompat library, I tried to delete everything related to version 25.2.0 because I need to use…
-
0
votes1
answer33
viewsAndroid App Creation Problem - Java
I need to ask a number of questions, for a problem that was imposed on me, regarding the creation of an Android application in Java. To describe the circumstances, I am creating an app to serve my…
-
0
votes0
answers113
viewsImage getting behind the background
I would like to put an image in front of another image. I’ll explain it better. I have a background and want to put an image on the dividing line between Relativelayout and Scrollview. On native…
-
0
votes1
answer162
viewsHow to migrate to the new version of Realm
Hello, I have a simple app from my news site, I found it on Github some time ago and edited it. However it stopped working on some devices (Android 5.1 up) when it was the fix found that with the…
-
0
votes1
answer87
viewsEdittext losing focus on Listview header
I put a header in my ListView because I wanted him to roll along with her. In this header there are two EditText, When I click on the second, the focus goes back to the first one in less than a…
-
0
votes0
answers102
viewsonActivityResult in another class
I am creating an app where I have several camera calls, and I would like to create a class to call the camera to use in the project , well, the call from Activity is being made with the…
-
0
votes0
answers340
viewsError "Unfortunately Myapp has stopped" when clicking the application button
I’m running my app on Genymotion, developing on Android Studio. Every time I run my application I click on the button to register, but when I click I come across the following message "Unfortunately…
-
0
votes1
answer554
viewsHow do I get more memory to run the app?
I’m developing an app android Currently, when running the APP, it starts by reserving 36.62 MB of memory. I would like it to start over 50.00 MB or, when it reaches its limit, add more memory. Is…
-
0
votes2
answers297
viewsCan I have performance problems joining multiple classes to a single file?
Watching many tutorials and video lessons, I always see that a java file is created for each action/class. As I indicate in the image below with arrow number 1 yellow. But as my app is getting huge,…
-
0
votes1
answer682
viewsHow to put back icon on a Toolbar inside a Fragment that hides the main Toolbar?
I’m having a problem putting the back icon on a Toolbar inside a Fragment that is hiding the main Toolbar. I use android studio, and created a Navigation Drawer Activity, where I work with Fragments…
-
0
votes0
answers137
viewsOpen an excel file when opening an Activity
I want to put a file Excel in my Android project. I want to leave it already in the same project as if it loads an image, and when I call a Activity, I want to open this file Excel. Is there a way…
-
0
votes1
answer134
viewsRecyclerview with JSON analysis
My PHP code generates the following JSON: { "resposta":[ { "cd_servico":"1", "ds_servico":"NOME SERVICO", "ITEMS":[ { "ds_descricao1":"DESCRICAO SERVICO", "ds_descricao2":"DESCRICAO 2",…
-
0
votes1
answer79
viewsExpandablelistview: Change header title by clicking an item in the list
I need to get the name of the items in the Expandablelistview list, and settar header according to his position, but he’s only getting the last one. Below is my code: Mainactivity public class…
android android-layout android-activity android-adapterasked 6 years, 9 months ago Wallace Baldenebre 114 -
0
votes1
answer641
viewsPerform an action after each character typed in an Edittext
The thing is, I’m having trouble finding out if the user typed something into EditorText. What I want is that, each character, number or letter that the user type, I can perform an action, soon…
androidasked 6 years, 9 months ago Andrei Coelho 6,196