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
-
1
votes0
answers48
viewsUpdate activity from Alertdialog
Every time I click on Toolbar I have a menu that when clicking on one of the options I see a AlertDialog. This Alertdialog has a setSingleChoiceItems, where the user choosing an option and clicking…
-
1
votes0
answers243
viewsHow can I make my app lighter
Recently I started to create an application by Intel XDK and by test I realize that in my mobile the application runs quickly but in others it ends up giving some crashes. Could someone give me a…
-
1
votes1
answer322
viewsBring only the name in Listview, but relate to the ID
I have a Webservice that lists all my users and brings users from the bank. I have a class Usuario { int id; String nome; } With its builders, gets and sets, etc. And I can return all my users.…
-
1
votes1
answer93
viewsReturn results from a query
how do I return a value from a "SELECT" method? I have this code: public void SELECT(String Colunas,String Tabela,String Condicao) { String QUERY=null; if(Colunas!=null && Condicao!=null)…
-
1
votes1
answer688
viewsCustom Infowindow Google Maps Android
It is possible to customize an Infowindow of the marker in Googlemaps v2 from Android by placing clickable buttons, images, change background color etc? If yes, how can I do that? Thanks if anyone…
-
1
votes1
answer90
viewsNullpointer Exception error when bringing Fragment data
I have a Nullpointerexception error when trying to return data from a Fragment. NPE error is right on this line: String comentarioFoto = fragment_obj.campoComentarioFoto.getText().toString(); Check…
-
1
votes0
answers99
viewsListview inside a Cardview
I have a question, I need to make a layout similar to that of the prototype: This layout is dynamic, the item that is in the first line (parent) can have several items of the following lines…
-
1
votes2
answers705
viewsHow to create JAX-RS REST Service webservice and consume with android application?
I created a JAX-RS REST Service, with a function that returns me a Jsonobject, I can recover this information in the browser through the URL, but I can’t get it back on an android app. How do I…
-
1
votes1
answer165
viewsWeb Service for Android app
I have a question. Assuming I have a web service saving the data in Mysql, this service is responsible for feeding an Android app. The user accessing the app will sync the data to the device’s local…
-
1
votes1
answer642
viewsHow to display a json return in a listview
I’m trying to return a json that result from a select made in php (web service) to my application. The select is here: mysql_connect('localhost','root','ugauga'); mysql_select_db('noise') or die…
-
1
votes2
answers3031
viewsUpdate Activity previous to end Current Activity
Good morning, I am developing an Android project and am with a problem I will try to explain clearly: I have two Activitys A and B, my Activity A calls B and stays in the stack, after terminating…
androidasked 8 years, 7 months ago Paul Polidoro 345 -
1
votes0
answers45
viewsDiscover ips from other devices connected to an android
The problem is more or less the following, sometimes I need to use an Android device to generate a network, but I don’t know how to get the ips of connected clients. I saw some examples using ping,…
androidasked 8 years, 7 months ago Christian Beregula 1,512 -
1
votes2
answers84
viewsStackoverflowerror when calling a class
public class MainActivity extends ActionBarActivity{ Conexao c = new Conexao(); public void tela(){ c.CriaBanco(); } } public class Conexao extends MainActivity{ String NomeBanco = "Cadastro";…
-
1
votes1
answer858
viewsHow to change minSdkVersion on Android
I’m having some problems running on my real device. This is on top is my device, and this on the bottom are the settings of my project. apply plugin: 'com.android.application' android {…
-
1
votes0
answers50
viewsError executing Sql Server query with jtds
I am like a strange situation, my code works perfectly in my environment. No tablet client does not work... The only difference is that my tablet has the developer option enabled. I created the…
-
1
votes1
answer125
viewsAnimate Linearlayout with Layoutanimationcontroller
Good Afternoon! I have a Linearlayout that will be displayed when the user selects a Switch For this I created two methods, for fadein and fadeOut. Follow: private LayoutAnimationController…
-
1
votes1
answer2683
viewsHow to Access Real-Time Android Sqlite Data (DEBUG)
How can I access the data contained in the local database of the Android device, ensuring that the information is up to date? My IDE is Intellij IDEA and I use the connection feature with the…
-
1
votes1
answer2304
viewsHow to access a local server from an Android device
I have a server in Django running on my computer "localhost:8000/posts", and I am creating an Android client to access it. Debugging my application on a real device, I tried to access by my Ipv4…
-
1
votes0
answers183
viewsAndroid Complex layout using Fragment
I’m having trouble creating a footer (footer). The problem is in the horizontal position of the tablet where I have two framelayout and need to include the footer occupying all the bottom (below the…
-
1
votes1
answer635
viewsjava.lang.Outofmemoryerror: Failed to allocate error
This error in my application is happening: java.lang.Outofmemoryerror: Failed to allocate my image code: URL url1 = null; try { url1 = new URL("http://www.cm-mgrande.pt" + cabecalho); } catch…
androidasked 9 years, 4 months ago Tiago Coelho 739 -
1
votes2
answers595
viewsDatabase in Android
Hello! A few days ago, in a question I asked here at Stackoverflow, I said I was starting to develop for the Android platform. This week has been very productive and I already have some ideas to…
-
1
votes1
answer1018
viewsGoogle Maps address search for Android?
How do I search an address in Google Maps for Android, from the name of the location?
-
1
votes1
answer94
viewsError writing file on Android
I’m trying to create a file on Android, but is appearing a letter that I do not want to be written. Note the code: File file = new File(Environment.getExternalStorageDirectory().toString(),…
-
1
votes1
answer62
viewsHow to create a shortcut to open a website in the browser?
I need to create a shortcut to open the browser with the address (in this case, Chrome).
androidasked 8 years, 6 months ago daniel12345smith 2,120 -
1
votes1
answer1324
viewsUnreachable Statement
I need help, on line 107 the android studio shows an error that says: "Error:(107, 48) error: unreachable statement" Whereas Line 106 is the AdapterView.AdapterContextMenuInfo info is red. When I…
-
1
votes1
answer685
viewsHow to read the return of the json webservice (WEBSERVICE - JSON)
I have this JSON: { "articleList": { "conversas": [ { "cd_resultadofinanceiro": "24", "cd_feedbackfinanceiro": "61", "mm_resultado": "Tomar as devida providencia judiciais.", "dt_resultado":…
-
1
votes0
answers28
viewsXamarin error - "Connection to the layout Renderer failed"
Every time I try to open the Main.axml file this error appears : I don’t know how to fix it, someone can help ?…
-
1
votes2
answers97
viewsError loading Listview on a Listfragment
Talk guys, I’m having a problem creating a Listview in a Listfragment. I did a test with a Listactivity and works perfectly, but in Listfragment will not. I need to do in Fragment because I have a…
androidasked 8 years, 6 months ago Grégori Machado 65 -
1
votes0
answers42
viewsGoogle Maps point dialog box
I have some points marked on a map, I would like that when some point was selected, open a dialog box with two options, get information of the point and trace a route to it. How could I do that?…
-
1
votes1
answer791
viewsTake data from 3 Ragments
Good afternoon, I am developing an android application and in it I have an Activity with 3 Fragments(tabs), where each one contains a part of a form and in the last I have a save button. My…
-
1
votes1
answer2703
viewsHow to develop in Android Studio with Firebird database?
Can’t connect to an external Firebird bank from Android Studio? should I use eclipse? Searching a lot how to make this connection, I saw in some posts that android can not make this connection. And…
-
1
votes1
answer125
viewsSketch Component for Xamarin Forms
I wonder if there is a component for Xamarin Forms that allows me to draw in a photo taken by the device or that is in the gallery. Below are examples of how it would be:…
-
1
votes0
answers135
viewsAndroid Fragment with Textwatcher - does not work
Good morning! With the help of the staff, I made a calculation scheme that when typing the value in an editText1, another editText2 is updated automatically, and vice versa.. It’s just a test…
-
1
votes1
answer2550
viewsGrab photo from android gallery directly
I’ve searched here and other places on the Internet, but I haven’t been able to locate anything like it. Is it possible to restrict that photos selected by a user only come from the gallery? Ex:…
-
1
votes0
answers336
viewsHow to insert an id in android SQLITE?
I am trying to insert the same id that I get from the server database in the android database through sqlite, however, it is generating an id of its own, I am using auto increment in Primary key, I…
-
1
votes1
answer370
viewsCommunication HC-06 with android
Hello, I am layman on the subject and I would like to know how to make, if possible, a data transfer via bluetooth from Android to the module HC-06 of the Internet using the phone pairing itself.…
-
1
votes2
answers103
viewsStart service through user action
Good morning! I have an app that will receive Pushnotification. But the user will be able to select whether or not to receive notifications. I have a WakefulBroadcastReceiver and a IntentService…
-
1
votes1
answer85
viewsImages loaded in Listview are changing randomly
I implemented a Listview where an external image is populated in each position, but when I scroll the screen the images are changing randomly. This video shows exactly what happens:…
-
1
votes1
answer339
viewsCookies javascript in webview smartphones!
I would like to know if someone knows how to use or can inform if you take Cookies directly from the webview of the smartphone device.. I know they are functions of a browser, but I am making an APP…
-
1
votes1
answer370
viewsBackground function - Android
Hello, I need to place an animation on the screen, it can only be visible for 10 seconds, after that time it disappears, and if the user clicks a specific button the animation comes back. Can…
-
1
votes1
answer36
viewsputextra puts data in RAM memory
putextra puts data into the RAM? I have to do getIntent().removeExtra("nome") to delete the contents?
-
1
votes0
answers166
viewsDoubt about the Searchview
I am a beginner in programming and Android and have researched a lot and watched many video lessons and I’m in big trouble regarding the search with searchview. I, despite searching, testing and…
androidasked 9 years, 4 months ago Phil Santos 21 -
1
votes2
answers174
viewsProblem with Sqlite Android Data Base
So my problem is this one, I’ve tried and researched everything but I couldn’t implement any solution. I tried to update the database with the update and also insert new columns with ALTER TABLE,…
-
1
votes1
answer1403
viewsError while converting to Json with Gson
Guys, I’m having this error when converting the object to json. I’m using gson. I have tried to send the whole object and had the same error, changed and separated the object to try to locate where…
-
1
votes1
answer213
viewsCellular Ionic http request framework
I have an Ionic page that makes request for a page in codeigniter, I send the data and receive correctly, no problems in the browser, but when I turn into . apk and I run the application on the…
-
1
votes1
answer85
viewsSave output after applying an replace
Hello, I have the following code below, but I need to apply a replace in the output(FileOutputStream) picked up via http before saving him. public void DownloadFile(String fileURL, String fileName)…
-
1
votes0
answers259
viewsApparatus standard notification ringtone
In my application I have in the settings an option for the user to select the sound that will run when receiving notification. Then I open one AlertDialog and list the standard ringtone of the…
androidasked 9 years, 4 months ago Paulo Rodrigues 6,280 -
1
votes3
answers48
viewsHow to store which Navigation Drawe item I selected
Good morning guys, I’m developing an app and put a navigation Drawer in it very basic, and I would like to know how to "save" which item is selected. And so whenever the app opens, it will open in…
-
1
votes2
answers1497
viewsHow to open the Calculator using Intent?
I would like to know how to call a Native application in my application. I would like to put a calculator menu, when user clicked, open android calculator. Thank you.
androidasked 8 years, 6 months ago Artur Mafezzoli Júnior 441 -
1
votes2
answers171
viewsHow to find the path between two markers on Android?
I have two Markers placed on the map. I would like to insert a route between them. How can I do this? //No metodo onde implemento os markers tenho o seguninte codigo //Tenho a baixo o primeiro Maker…
androidasked 9 years, 3 months ago Gabriel Manuel 153