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
votes1
answer393
viewsHow to keep listview item loaded
I have this listview main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent"…
-
1
votes1
answer614
viewsActivate the smartphone’s GPS
I’m developing an app that uses geolocation functions. The same is already getting the smartphone locations, and I can check whether the GPS connection or not. Until then quiet, what I’m not getting…
-
1
votes1
answer647
viewsAsynctask finish running
I wonder how I could pause, cancel this function as soon as I close the Activity that is running. private class DownloadImageTask extends AsyncTask<String, Void, Bitmap> { ImageView bmImage;…
-
1
votes2
answers53
viewsLock btprevious2.setOnTouchListener function
I have an application where I use the method btprevious2.setOnTouchListener to make the page change quickly. btprevious2.setOnTouchListener(new View.OnTouchListener() { private Handler handler;…
-
1
votes1
answer1162
viewsInsert Google Maps search bar
How to insert a search bar in Google Maps on Android? Need something similar to the image below: For this result, will I need to use Text and Overlay? Is there an example to help you understand?…
-
1
votes1
answer128
viewsIs it possible to send values of the gyroscope and a seekbar simultaneously via bluetooth?
Hello, everybody! I’m trying to control a Drone (Hubsan X4) via smartphone sensors. But I can’t send the collected values of the gyroscope and a seekbar simultaneously. The seekbar represents speed…
-
1
votes1
answer649
viewsHow to call a class from an event?
I have a main class, through it I call a layout with listview, and depending on the click, opens a different screen with different customer data. Follow a piece of code: public OnItemClickListener…
-
1
votes1
answer542
viewsHow do I know if the user clicked outside of Alertdialog?
My doubt is very simple, but I’m not finding anything I can use. In my android project, I check the GPS connection of the user’s device, and if case is not active, I ask in a dialog box for it…
-
1
votes1
answer2360
viewsSqlite relationship between tables
About relationship between tables: I tried to run the following code and Sqlite returns me the following error: table "Games" has more than one Primary key --…
-
1
votes1
answer2615
viewsHow to set a size for Edittext text box?
How to set a size for text box EditText to make a square
-
1
votes0
answers101
viewsAccess Android Device Wifi
I am working with Phonegap and I emerged the need to through a link in my app access the wifi settings of my device. Anybody got any ideas there?
-
1
votes2
answers561
viewsCreate menu button at the bottom in Google maps v2 android
How to create the Menu button equal to the Maps App. Below is an example in the red square. Someone could set an example ?…
-
1
votes0
answers66
viewsHow do I detect startNestedScroll(int) in custom Webview?
I have a custom Webview inside a custom Viewpager which has a Vertical scroll. I need to scroll in viewPager when the webview scroll reaches the end. Someone can help me?
-
1
votes1
answer685
viewsADB Eclipse error
[2014-11-20 13:52:43 - Chegouahora] The Connection to adb is down, and a Severe error has occured. [2014-11-20 13:52:43 - Chegouahora] You must Restart adb and Eclipse. [2014-11-20 13:52:43 -…
-
1
votes0
answers266
viewsRead Archive data for android
I have a sketch of Arduino that today allows me to turn on and delete leds via bluetooth with an app I developed in eclipse for android. Now I’m trying to capture the value of a power, as its value…
-
1
votes1
answer2978
viewsCustomize Android Progressbar
I would like to develop a ProgressBar customized to use in my application, but I’m not sure how to do this. It is necessary to create a sub-class of the ProgressBar? You can only do it in xml? I’d…
-
1
votes1
answer290
viewsHow to set up an Activity to take up all screen space?
I want to hide to the notification bar!!
androidasked 9 years, 7 months ago Everton Luis 1,499 -
1
votes1
answer2348
viewsEnlarge image of imageView Android
I’m looking to enlarge an image of imageView that is to make that effect equal to Whatsapp when receiving an image and the user clicks on the image it opens.
androidasked 9 years, 7 months ago Alessandro Barreto 675 -
1
votes0
answers287
viewsPrevent removal of a sqlite bank on Android
Prevent sqlite database from being removed when uninstalling the application? I have an application that asks password for access, the password is recorded the first time the user starts the app…
-
1
votes1
answer891
viewsHow to set margin in a Textview in java source code?
When I’m in the xml, only applies the property: android:margin="15" I want to make the application of this same property, only, in the source code of the java, how do I do that?…
-
1
votes1
answer1864
viewsI have a checkbox set but only wanted one selected
I have a set of checkbox but only wanted a selected one and, if they selected another, the one that was selected. I’ve tried that, but it doesn’t work: if (chkfemenino.isChecked()) { params.add(new…
-
1
votes0
answers288
viewsUsing external Sqlite in Assets folder with Fragment
I am using an external sqlite database, in the Assets folder. I followed that model (loading-a-bank-created-externally) and I was able to access the bank. How much testing worked normally on my…
-
1
votes1
answer454
viewsManipulate json object
I got the following json: { "home":[ { "id":"1", "menu":"1", "title":"Titulo 1", "image":"image01.jpg", "url":"http:\/\/www.exemplo.pt\/images\/image01.jpg" }, { "id":"2", "menu":"3",…
-
1
votes0
answers394
viewsError 500 when sending android object to web service Rest
I have a problem sending an object from a java class to my web service. Using the Restfull web service on glassfish and android using Volley and gson. I get a 500 error when I try to send the…
-
1
votes1
answer1744
viewsOpen Android app with link
I want to know, Cerberus, for Android, can open your application when we call a certain number? For those who do not know Cerberus, it is an anti-theft application, so it hides its icon so that…
-
1
votes1
answer287
viewsError while trying to fill a listview
I’m trying to fill my listview like this historicos=banco.getAllH(); ArrayAdapter<HistoricoObjeto> itens = new ArrayAdapter<HistoricoObjeto>(this, android.R.layout.simple_list_item_1,…
-
1
votes0
answers37
viewsMove icons in app menu
In my project, there is a menu, in which there are several small icons created through Imageview, and I have to make these icons available to be moved, similar to Android home. Would have some…
-
1
votes1
answer690
viewsHow to draw a cube using openGL?
How to draw a cube using Opengl on Android?
-
1
votes1
answer422
viewsInsert hyphen ("dash" -) automatically while user type
Is there any way while the user type in a EditText insert hyphen (-) every 4 characters typed? In the same way some licenses work the dash (-) is already inserted automatically.
-
1
votes0
answers52
viewsSave listview state
I have a ListView I bring data from the database. When I search for search of ActionBar the filtered data appears, then I select an item from ListView to see the data. When I go back to ListView by…
-
1
votes1
answer222
viewsSystem Calls on Android
I’m creating a comparison between the system calls between Linux and Android. In Linux I can create some code and I’ve found some tables that demonstrate the system calls in it, but in Andorid, I…
-
1
votes0
answers186
viewsI can’t text my Email through my Android app
I’m new as an Android programmer, I’ve been researching various research sources on how to text my email, I’ve taken an example of a book on the internet, however while running it did not generate…
-
1
votes0
answers198
viewsjava.lang.Runtimeexception: Unable to start Activity
My logcat is displaying a pointer error to start the activity Ouvir I can see but I didn’t find the error. Exiting these messages when I run the application: 11-27 22:09:40.631:…
-
1
votes1
answer140
viewsNullpointerexception on login screen
I have this Nullpointerexception error and I don’t know pq. I have only one login screen, one dao that takes two parameters, email and password: java.lang.NullPointerException at…
-
1
votes2
answers564
viewsAndroid Studio, file loss . jks
I lost the app’s . jks file and now I can’t update the app in the play store. What I can do in this case?
-
1
votes1
answer80
viewsActivity with two Layouts and Edittext focusable
My app only has one activity but with two Layouts. Switching between the two Layouts is done through a Button that exists in each of the Layouts. In Layout 1 there is a EditText of the kind…
androidasked 9 years, 6 months ago Vitor Mendanha 595 -
1
votes1
answer326
viewsPut an off service button on notification of an Android App
In my application I have a Service running in the background, which puts a notification in the user’s Status Bar, I would like to add a button to turn off the service, as the Waze map app does.…
-
1
votes0
answers196
viewshow to perform all tasks at once?
I can’t get you to perform all these tasks at the same time, only perform the rest when you get some data on InputStream. And once he gets that data, he doesn’t get any more. Please help me, I’m new…
-
1
votes1
answer1573
viewsWhat is the best way to make an HTTP request on Android?
I’m using DefaultHttpClient to make json requests for a Webservice, but this function is obsolete, which is the best alternative for creating a Webservice client?
-
1
votes0
answers81
viewsSearch controls in a separate class from the main activity
I need to search the controls to change values in the layout. But passing the context by parameter to the class it does not find the controls declared in xml returning null for each cast made. The…
-
1
votes1
answer203
viewsHow to go to the end of Scrollview
Is there any way I can send to the end of ScrollView When you click a button? I have a RadioGroup and a Buttom, the two are in a ScrollView, I want when click on one of the RadioButtom go to the end…
-
1
votes1
answer279
viewsHow to run a command on Android when touching the screen or swiping your finger on the screen?
How to run a command on Android by touching the screen or swiping your finger on the screen, if someone can help me
-
1
votes1
answer140
viewsGradle - Command line arguments
I have a question about how to pass on the command line an argument where I will pass the NDK path of my Android project. I have locally my local file.properties where I define the path in ndk.dir,…
-
1
votes1
answer146
viewsHow to have only one Adapter for various Activity?
I wonder if in any way or is it recommended to have a Adapter for each Activity. I know what to do with a Adapter for each Activity is quiet. Now how to make a Adapter generic, would have as? Would…
-
1
votes1
answer176
viewsAndroid - Animation, hiding and displaying a menu
I’m having a problem creating an animation. I have a button in the action bar that when clicking on it, either displays or hides a menu bar. So far it is displaying or hiding using GONE and VISIBLE.…
-
1
votes1
answer47
viewsRuntimeexception (Android)
I want to put the atendenteBalaoProdutoNome on the side of AtendenteBalaoProdutoValor, thus: to do this, I tried this: attendant.xml <?xml version="1.0" encoding="utf-8"?> <merge…
-
1
votes2
answers5882
viewsHow can I place one element on the other side?
I want to put the atendenteBalaoProdutoValor on the side of atendenteBalaoProdutoNome and atendenteBalaoProduto2 below the atendenteBalaoProdutoNome. For that, I tried this: attendant.xml <?xml…
-
1
votes1
answer1453
viewsHow to validate a zip code on Android?
I wonder what is the best way to do the cep validation on Android. I have a form that the user type the zip code and want to return on the screen if it is valid or not. And if possible return the…
-
1
votes1
answer613
viewsIntent opening two Activity in stack
I have a Activity that when calling another Activity usually calls the other screen, the problem I have to leave the other screen twice to return to the first. I’m calling Activity in an event of a…
-
1
votes1
answer772
viewsMy app in android studio is closing, while consuming webservice
I have a problem in my application, when consuming a web service, the application is closing. The idea of my application is I consume this web service to validate my login, and returning a message…