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
answer4148
viewserror: Could not find: C: android-sdk Platform-tools zipalign.exe
When performing the Build on the main for smart device android platform, at the end of the process I get the following message: error: Could not find: C: android-sdk Platform-tools zipalign.exe I…
-
1
votes1
answer3881
viewsManage back button between Ragments
I’m working on an app for the college where I’m using Fragments for all my screens, for reuse purposes. The problem is that I cannot control the behavior of the back button between the Fragments.…
-
1
votes2
answers11473
viewsIcon with notification counter
Does anyone know how I do a notifications counter on Android like Facebook, Whatsapp, follows the photo showing the phone icon. !http://imgur.com/Xar2jOv…
androidasked 10 years, 4 months ago Gabriel Duarte 565 -
1
votes1
answer3345
viewsOK button of the Android Keyboard event
Good afternoon guys again asking for help. I wonder how to pick up the event from the OK button on the keyboard. Example if I have a login and want to click ok it has the same effect as the login…
-
1
votes1
answer114
viewsAsynctask canceled during execution does not call any of the post-InBackground() methods
When I cancel my AsyncTask running, it does not update the flag mAsyncTaskEstaFinalizada. Does anyone know what it might be? When I put breakpoints in the methods onCancelled(),…
-
1
votes1
answer1437
viewsHow to return a string from the method that queries Sqlite?
How to make a method that returns a string with a single result? I’m trying something like this: public String getString(String var) { String selectQuery = "SELECT * FROM "+TABLE_STATUS+" WHERE…
-
1
votes2
answers236
viewsBeginner Error with Onclicklistener
I’m starting now in development for android. I’m trying to implement an onclicklistener on a button and it doesn’t work at all, I’ve followed step by step the videos lessons here, youtube, and…
-
1
votes2
answers2277
viewsRead file in Assets folder
How do I read a text file inside the Assets folder in an Android project? Ex: my_project/assets/file.txt
androidasked 10 years, 4 months ago Douglas Mesquita 809 -
1
votes1
answer923
viewsClick and hold on Listview
As I program to click and hold down call a method other than just a normal click in Listview? I would like tips, tutorials something that can help me. @Override public void…
-
1
votes1
answer78
viewsAutocompletetextview, how to search at any point in the sentence?
Galley, I have a Autocompletetextview and I need it to filter not just the beginning of the sentence but any part of it. ex> my list: KMF Avaré, Florisio (KMF Sorocaba) When I type the letter "K"…
androidasked 10 years, 4 months ago felipearon 715 -
1
votes1
answer2122
viewsSave, in the photo, the coordinates of the place where it was taken
I would like that in my application when taking a photo, that this photo stores the location coordinates in the details of the photo, this would be possible? Intent intent = new…
-
1
votes1
answer2611
viewsAVD Android 4.0+ Does not start
When I try to start an AVD with Android 4.0+ on the Windows of my two laptops does not work, but with Linux it works. The screen turns black, not even enter the Android opening screen even leaving…
androidasked 10 years, 4 months ago felipe.rce 1,969 -
1
votes2
answers145
viewsEclipse Android plugin error
I am trying to start Eclipse and it is always 0% when loading the projects. The following Apare message: the user Operation is Waiting for Android SDK Content Loader to complete Someone’s been…
-
1
votes1
answer215
viewsGiving permission to another application to access my package
I have an application that has a certain audio file, which is in /data/data/meu_pacote/audio_anexo/audio.mp3, so far so good, the problem is that the Mediaplayer class of Android fails to run the…
-
1
votes2
answers382
viewsClick on the button does nothing
I put a button on activity_main and I made a second canvas. The idea was, by clicking the button, to press this other screen. And in the class MainActivity.java I put that when I hit the button, I…
-
1
votes1
answer157
viewsSax parser xml string Java Android
I’d like some help on a problem I’m having at Java Android. First I read a String XML to get the values of each tag. When getting the values reads well the tags, only 9 in 9 Strings received reads…
-
1
votes2
answers20153
viewsHow to disable android home button
I need to disable the use of the physical button of the Android device (preferably versions higher than 4.0). With researches I found some solutions such as removing actionbar, leaving the…
-
1
votes1
answer174
viewsEnjoy Android API in Desktop Applications
Can I take advantage of the codes of an API made for Android and use in a java desktop application ? PS.: I don’t know anything about Java, I’m willing to learn. I only know Delphi and C++... In…
-
1
votes1
answer975
viewsAfter upgrading the SDK, my project appeared with errors
After I updated the SDK and downloaded the new version of Eclipse, gave errors in src and gen of my project, I have no idea what it might be. If anyone can help me I’d really appreciate it.…
-
1
votes1
answer253
viewsPan and Zoom in Imageview
I need to implement the movements of Pan and Zoom in the same image. Does anyone know how I can do it?
-
1
votes1
answer1080
viewsGet cell phone position. GPS
I have an application, where I need to get the coordinates of where the phone is time I open the registration form and then when I register, to store the 2 locations. How do I get the location of…
-
1
votes2
answers2043
viewsHow do I implement ?Sign in with google' in my android app?
I’m having difficulty integrating 'Sign in with google' in my app, I followed the documentation, not working out. any hint and help?…
-
1
votes1
answer114
viewsHow to add Googlemap programmatically to a Relativelayout?
I already have all external settings performed, but my question is how to add Googlemap programmatically in a Relativelayout? Here is my Relativelayout public class Page extends RelativeLayout {…
-
1
votes3
answers2968
viewsHow to install Android Studio on Linux distributions?
I am new as linux user, and installed the jdk 7 using this procedure below: http://www.edivaldobrito.com.br/como-instalar-o-oracle-java/ Then I used this procedure to install android as shown below:…
-
1
votes2
answers128
viewsHow to implement the verifyDeveloperPayload method?
Does anyone know how to implement this function when working with Google Billing? I saw that a token should be generated for license check and prevent fraud. But someone knows how to implement, why…
-
1
votes1
answer397
viewsWhat is the best strategy to do data synchrony offline/online?
I’m about to get an app for external sales, it will basically carry out orders and if you don’t have an internet connection, it will sync when you do. Good.. How to make this app professional?…
-
1
votes2
answers1193
viewsMore than one *Layout* in the app
How do I instantiate a new screen, I have the Main.axml And I wish that when I hit the button I’d call my own Result.axml. I wonder how I do it in Xamarin in C#. And if I need 2 Activities’s one for…
-
1
votes1
answer79
viewsOnmylocationchangelistener Google maps android
I have an application that works as a GPS tracking, is working normal, when the user moves he plays on my server the change that makes all the devices change places the Marker. However I need to…
-
1
votes1
answer1503
viewsBroadcast notification when Android device is asleep
I have a Activity calling a function of a class (service) that creates a intent = NEW INTENT("MEU_BROADCAST") and also a Alarmmanager. Within the class Broadcast I call a Activity creating a…
-
1
votes1
answer176
viewsAdvertisements on the Android App
Is there any Google plugin to put ads in the Android apps, and with it gain some value?
-
1
votes1
answer527
viewsAPI for Android Game Development
I am a programmer JAVA a long time, and now I want to expand my horizons, I already know enough things for android and I wanted to know for you a good API for beginners in android for games.
androidasked 10 years, 3 months ago user3192503 11 -
1
votes2
answers659
viewsPlay video in the app or out
I am developing a mobile application services & news for a company and this is a video area related to the institution. The doubt is: Aiming for the best user experience, the app should play the…
-
1
votes1
answer1836
viewscall a main Activity method from a Fragment button
I am using a standard android Activity, the "Navigation Drawer Activity", and There is a button in the navigation bar public boolean onOptionsItemSelected(MenuItem item) { if…
-
1
votes1
answer99
viewsproblem of creating android project in netbeans
I can’t create a netbeans android project because it appears on my screen. when I select an android platform it give bug message why is this happening.. be all installed. THAT IS THE ERROR MESSAGE…
-
1
votes2
answers1734
viewsHow to pass data from a Pager/Fragment to another Activity?
I’m creating an Activity that possesses Swipe Views (Viewpager) and I would like to know how to pass data from Ragment to another Activity, since static methods are always requested. For example,…
-
1
votes1
answer247
viewsProblem when climbing APK
I’m trying to upload an apk to Google Play and I got the following message: You uploaded an APK using the 5208000 version of Google Play Services. Use 5100000 or lower version. In my buil.Radle file…
-
1
votes1
answer472
viewsAndroid using Netbeans webservice
I would like some information, examples or tutorials how to research and study to be able to develop this project. I have ready already database and some components of the web service would like to…
-
1
votes2
answers1783
viewsHow to run database on Android?
I’m making an application that connects to a database that is in sao paulo, it serves as a ratchet, checking by QRCODE users card if they are registered or not. It’s just that the company I’m…
-
1
votes1
answer858
viewsUpdate Fragment UI after coming back from Backstack
Maybe the problem is simple, but either way, I’m stalling to do it. I know I would have been able to do this through interfaces, but I don’t want it that way. My app has only one Activity that…
-
1
votes2
answers2413
viewsHow to calculate the average speed (Km/h)?
I need to calculate the average speed (Km/h) and show this information in the Activity in "real time", as shown in the GPS Apps. How to do such calculation and encode it on Android?
androidasked 10 years, 3 months ago felipearon 715 -
1
votes1
answer895
viewsChanging text from Textview
Suppose I have a text inside a Textview, there is the possibility of changing android:text remotely, without touching the xml, by means of a post in an external database, for example, a phrase…
-
1
votes1
answer375
viewsHttpresponse java
how to handle the server’s json response? HttpResponse responsePOST = client.execute(post); String responseBody = EntityUtils.toString(responsePOST.getEntity()); String "responseBody" comes from php…
-
1
votes1
answer385
viewsUse of Spinner on Android
I am developing an application Android, and in it I have a Spinner and from the choice that the user makes in this Spinner it goes to certain page. I had done so: //Acionando_Items_no_Spinner public…
androidasked 10 years, 5 months ago Leonardo Pinheiro 13 -
1
votes1
answer229
viewsHow to disable all Textview of an Activity?
There is some method that disables all controls of a certain activity on android?
-
1
votes1
answer130
viewsIs working with 'Weights' viable?
I’m mounting a layout here and after include the property: android:layout_weight, the eclipse returns a warning: 'nested Weights bad for performance'. Why work with this property, is it bad for…
-
1
votes1
answer57
viewsWhich method is triggered when changing a value in the Preferenceactivity class?
I would like to capture the user changed field in a class that inherits from Preferenceactivity. I tried unsuccessfully to overwrite: onContentChanged() and onActivityResult.
-
1
votes2
answers1484
viewsHow to return Latitude and longitude on Android Google-Maps
I would like to know how I can return latitude and longitude from an address provided by the User. Example "Av. Sampaio Vidal,Centro, Marília, SP" Answer coordenadas -22.225985,-49.94656…
-
1
votes1
answer192
viewsretrieve a background name from a textView
If possible, how do I recover a background name from a textView ? (android) I have a textView and would like to recover the file name that would be (back_corDoFundo) preferably in String to buy with…
-
1
votes1
answer104
viewsComponent created does not get the width of the screen
I created a component that would be a bar with buttons at the bottom of the screen. It should respect both in Portrait and in Landscape the width of the screen at least. If the width of the…
-
1
votes1
answer71
viewsLeave pictures rounded android
I wonder if there was a way I could make my app images round like these and wonder if that would be feasible, good practice…