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
votes3
answers647
viewsGPS location returns only null (0.0.0.0)
I have an application for Android devices, with several addresses. By clicking on any address, I wanted to take the user’s current location and play link google maps…
-
2
votes1
answer296
viewsADB via Wi-Fi disconnects when I turn on USB accessory
I’m using ADB via Wi-Fi to work with USB accessories (Android Open Accessory). For some tests you need to disconnect and reconnect the USB cable to your phone. Whenever I connect the USB accessory…
androidasked 10 years, 1 month ago user15566 -
2
votes1
answer713
viewsHttptransportse gives "java.io.Eofexception" error using Ksoap2 on Android
I am using the lib Ksoap2 in the Android project, for communication with webservice. All communication is within an Asynctask(). In some moments of access to the method, an Exception occurs:…
-
2
votes1
answer1810
viewsCreation of a communication app
Good evening guys, I’m planning to develop a Whatsapp style communication app, more in the intention to learn even, nothing more than that. Well, the app will have contact list | conversations |…
-
2
votes3
answers489
viewsHttp Connection with timeout does not work
Hello I’m with a class to make to read an HTML page, but I wanted it to have a time limit for the execution, my code seems to do it, but it does not work as it should, IE, the time I put is not…
androidasked 10 years, 4 months ago Gabriel Duarte 565 -
2
votes1
answer1720
viewsLogin screen on Android
I emulated a local server by XAMPP and started trying to develop a login screen for an Android application. It is working perfectly, but only when I log in through localhost(using my local IP…
-
2
votes1
answer3128
viewsIdentify Android version by some method
Is there any method to identify the user’s Android version as soon as it enters the application? It will be useful for the application to run or not animations between screen transitions, if the…
-
2
votes1
answer596
viewsFailed to install Olamundo.apk on device 'Emulator-5554': EOF
From time to time when trying to run my application in the emulator I come across the error: [2014-07-23 20:59:09 - Olamundo] Failed to install Olamundo.apk on device 'Emulator-5554': EOF…
-
2
votes2
answers455
viewsQuestions about database and Android
I am developing a project for college that is a multiplayer game for Android of questions and answers (style Asked). In the development of the game, I need to create a database to store the…
-
2
votes1
answer489
viewsCircular imageview
How to build a ImageView round as in the example below?
-
2
votes1
answer384
viewsUsing classes from the java.util.Concurrent package to multiply matrices on android?
I was doing this program to multiply matrices, I saw that it correctly calculates the result, but there is no performance gain by putting more threads, often even worse performance despite running…
-
2
votes1
answer839
viewsInstall Serial for Android APP
I am developing an app in anrdoid, and I would like to know if it has a serial for the installation of the APP, so it can be used only on the tablet on which installed? If you have other ways to do…
-
2
votes1
answer431
viewsProblem with large size JSON on android
I am receiving a JSON file from a Webservice, this file comes with the approximate size of 5.7M, ai ai quando eu converter seu conteúdo para Jsonarray usando a biblioteca Gson, ele apresenta me o…
-
2
votes1
answer819
viewsError importing project in eclipse
I am trying to import a project I have saved. However, when I import the file style.xml, gives error in this line: <style name="AppBaseTheme" parent="Theme.AppCompat.Light"> With the message:…
-
2
votes0
answers330
viewsBlock termination of android app
I’m developing a managerial application for Android, using C# with Xamarin. There is some way to block the application (or lock all the buttons on the tablet) so that the user can not close it,…
-
2
votes2
answers226
viewsBundle coming up void
I’m trying to pass parameters a value from one screen to another, but in the other comes null, see: Screen 1: Intent telaWeb = new Intent(SegmentoView.this, ViewWeb.class); Bundle bundleParametro =…
-
2
votes1
answer218
viewsAndroid Listview
How can I get a Listview to assemble the items as follows: When you have only one item it occupies the entire screen, if you have two divide 50% of the screen size between the items and so on...…
-
2
votes1
answer167
viewsSpinner in Popup
I have a screen where it has a Gridview and a ImageButton. Well, by clicking on that ImageButton open a PopUp containing two spinner and a ImageButton. Those spinners are populated through a web…
-
2
votes3
answers1459
viewsParse Complex of JSON
I am trying to parse a JSON, using GSON, but there is a complex part, because I don’t know the name of Keys, so I don’t know what name I should use in the variables for GSON to parse. I researched…
-
2
votes1
answer740
viewsHow to maintain screen orientation?
I would like to know the equivalent code in Java for this command: android:configChanges="orientation" Justification: I’m creating an app with Layout NavigationDrawer, and need that on certain…
-
2
votes1
answer189
viewsProblems with Phonegap and HTML5 Storage
I am creating a small application where I have to store the recovered driver data from a proprietary API to the application’s local database. After a lot of head-breaking, I chose to use HTML5…
-
2
votes2
answers348
viewsConvert JSON to UTF-8 on Android
I have a JSON Array and when it is displayed in a ListView on Android, appears with special characters: JSON generated by php: [{"id":"1","titulo":"X-Burg","descricao":"Hambúrguer,...","preco":"R$…
-
2
votes1
answer98
viewsUnexpected response when capturing text from a Textview
I have to test a certain Textview to see if it is filled in the onCreate() of Activity and if it is filled, I have to change the image of an Imagebutton. I’m using the following code for this: if…
-
2
votes2
answers270
viewsModify XML features through Java
I got the following RelativeLayout: <RelativeLayout android:id="@+id/layout_avancado" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#FF0000"…
-
2
votes1
answer2731
viewsBack button closes app
I have a main Activity (Mainactivity), which contains a list and a Navigationdrawer, when I click the register option is called this screen: startActivity(new Intent(MainActivity.this,…
androidasked 10 years, 2 months ago Thiago Porto 292 -
2
votes1
answer418
viewsHow to minimize the reduction of compatibiliade due to the use of permissions?
In my new version when putting these permissions in Manifest, I had a reduction of compatibility with various devices, would have some way to check this or who does not have support for these…
-
2
votes1
answer1368
viewsChange the color of the tab indicator on Android
I have tried in many ways to change the color of what they call "tab Indicator", but without success... Even using the "Android Action Bar Style Generator" the color of this indicator remains light…
-
2
votes1
answer982
viewsError searching in Sqlite
Could someone help me? I’ve done several ways but the app gives error and closes. I am using database (Sqlite) when have to search gives the error: 01-05 03:40:18.544: E/AndroidRuntime(12226): FATAL…
-
2
votes3
answers3512
viewsHow to decrease the quality of an image on android?
I have a list of objects that have an array of images that are somewhat "heavy", at the beginning of the application I have a custom listview that displays an image (icone) of each object, I would…
-
2
votes1
answer311
viewsColor of an Android app
I’m trying to leave the app color as White (by default), but I can’t do it... Is that possible? Or will I have to define the element color per element? I also can’t change the color of Actionbar,…
-
2
votes3
answers1012
viewsRecover md5 password from an Android application
I created an Android application where asks for a password to access the application. The user registers this password (numeric) and an email to recover password, the data is recorded in Sqlite and…
-
2
votes2
answers239
viewsSending problem in Webservice call(SOAP_ACTION, envelope)
I have a service that when accessed by the browser it shows the xml via the command "http://localhost:8080/Servicoweb1/services/Cservico? wsdl". I made a test application to test the connection and…
-
2
votes2
answers469
viewsShopping/Restoration inside the app on Android
I am running an app that will have in-app purchases (hide advertising and new features), however I have some questions. The whole purchase process is already working, well hide the advertising and…
-
2
votes1
answer1981
viewsHow to customize the line of a Listview according to the value in Arrayadapter
Assuming I have an object called Item, and it has the text, id and validation property, in which case, text is a string, id is an integer, and validation is a boolean value. class Item { private int…
-
2
votes2
answers4640
viewsCode to check if GPS is active
Good morning, I am developing an application that check vulnerabilities on Android and would like to know if anyone knows an application with open source or knows the code that checks if the GPS is…
-
2
votes1
answer679
viewsHow to Parse a Web Service XML Response
Hello, I would like to know how I parse a reply in xml that I get from my web service.. In this case, I am doing on Android, and wanted to transform the values and names that display in xml, in…
-
2
votes1
answer82
viewsHow to lock the phone only in the app
I wonder how to lock the phone via the code to stay only in the application, when press back and home on the device do nothing, then pressing a button it leaves the application. You can do it?…
-
2
votes1
answer901
viewsMenu appears in emulator, but does not appear on mobile
I created an app in Eclipse using the Intel Appframework, with HTML5 and everything. In Browser it runs normal, Android emulator runs normal; however, when I export APK, it does not show the menu,…
-
2
votes1
answer522
viewsHow can I generate a hexadecimal code from another sequence of numbers?
I’m making a code generator app, I need to generate a hexadecimal code from the code typed by the user and show this generated hexadecimal code. Could someone explain to me how I can get to this?…
-
2
votes2
answers694
viewsHow to pick a phrase value in String
example have a return this way from Webservice "Success! Saved user. Id: 257" all right I’m picking up the phrase as : Success! Saved user. Id: 257 need only take the number or is to take the 257…
-
2
votes1
answer1204
viewsPrevent an Android app from 'minimizing'
I don’t know if minimizing would be the right word, I don’t think so... Please correct me. I have an application and I want to stop someone from minimizing it using the Home button, if someone…
androidasked 10 years, 1 month ago felipe.rce 1,969 -
2
votes3
answers440
viewsWhy does Edittexts information disappear when I change Victoria?
I have a problem in which information such as "name", "address" and "phone" that I type inside the EditText of Activity main disappear when I go to another Activity seek other types of information…
-
2
votes2
answers178
viewsProblem in my notification system
The point is that I am having problems in my notification system, because it reads an xml, and saves the id with sharedPreferences, so when checking the xml again it compares the saved id with the…
-
2
votes1
answer431
viewsRuntimeexception: Parcelable encountered Ioexception
I can’t understand, let alone run my app.. Someone can give me a light? @Override public void onClick(View arg0) { try{ Intent i = new Intent(Activity_Questionario.this,…
-
2
votes1
answer985
viewsError when converting String to Jsonobject
I am trying to develop an application on android that consumes a Web-Service but whenever I try to run a query in the Database it returns me this error: Error Parsing data org.json.Jsonexception:…
-
2
votes1
answer227
viewsError when customizing a menu using actionLayout
I was using to customize my menu items the actionLayout attribute but, the following error occurred: Layout menu_item.xml: <?xml version="1.0" encoding="utf-8"?> <TextView…
-
2
votes1
answer174
viewsError while displaying web images in android java
I’m trying to display images from the web in a ListView, but they appear out of order, on the wrong lines and change position with each update of Activity. Activity: public class…
-
2
votes1
answer1307
viewsHow to customize the current location marker (GPS) in the Maps api v2 android?
Well people I want to customize the blue dot of the gps in Maps and I want me to be able to move it anywhere on the map, as well as works in the Taxi apps..
-
2
votes1
answer160
viewsReturn a pre-built dialog in the onActivityResult method
I’m developing an android app, and I need to allow the user to upload a profile photo. The form to create the profile is in a dialog, I have the code that loads the profile photo, but when loading…
androidasked 10 years, 1 month ago Bruno Estevao 23 -
2
votes1
answer149
viewsHow to cancel an Handler?
I have this Code final Handler handler = new Handler(); final Runnable r = new Runnable() { public void run() { if (garagem.isChecked()!= luzgaragem){ garagem.setChecked(luzgaragem); //Quando chegar…