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
-
3
votes2
answers2488
viewsUpdating values in a Listview
I add the values that are within 3 arrays in the hashMap to insert into the listview: ArrayList<HashMap<String, String>> lista = new ArrayList<HashMap<String,String>>();…
-
3
votes1
answer62
viewsHow to display a layout in the Homescreen Widget for each day of the week?
I would like to show certain layout in the Homescreen Widget for each day of the week. I have the 5 days, and when identifying them, the device should update the widget layout. How could I do it?…
-
3
votes4
answers5487
viewsProblems with installing Android Studio on Fedora Linux
A few days ago I try to install the Android Studio editor on Fedora linux and I can’t. I searched in some tutorials, websites, google and could not find a solution to deal with the error below:…
-
3
votes3
answers6724
viewsHow to set the size of layout buttons in version 2.2
For example if I have a Linearlayout that occupies all the space horizontally, if I have two buttons, for each occupy half of the screen, how do I do? Gridlayout doesn’t work in 2.2 right?
-
3
votes1
answer819
viewsHow to Connect/Disconnect wi-fi on Android?
How do I turn on and off the Wifi on Android? I would like to turn on the signal every time someone opens the app, and turn it off the moment they close.
androidasked 10 years, 8 months ago user4647 -
3
votes1
answer208
viewsWhat are the differences between <MERGE> and <INCLUDE>?
I usually work with INCLUDE, but I never understood MERGE. What are its uses and advantages?
-
3
votes2
answers226
viewsError performing Insert on an Android application: "Empty bindArgs"
Explanation: I have an android app that was made using the ADT (Android Developer Tools) I use the bench sqlite and eventually perform some operations such as insert or update and also some…
-
3
votes1
answer394
viewsHow to set negative values for Android Seekbar?
I’m using Xamarin to develop for Android in C# and checking the component documentation Seekbar I saw that it only has a property "Max", and that the minimum value for the component is 0. How would…
-
3
votes1
answer347
viewsProblem with Google Maps V2 on android SDK
I’m getting this error in my Android project using google maps V2 API: 02-24 11:18:03.627: D/memalloc(24852): /dev/pmem: Mapped buffer base:0x53e95000 size:2949120 offset:2334720 fd:51 02-24…
-
3
votes1
answer280
viewsDraw triangles with Opengl ES 2.0
I’m learning Opengl ES 2.0 for Android, and after some familiarization with the programming order I’m trying to draw 2 triangles on the screen, from 2 different objects. It’s something very simple,…
-
3
votes3
answers250
viewsJava 8 + Android
You can use the full potential of the Java 8 API (lambda queries and etc) on Android systems? If yes, it’s worth the migration?
-
3
votes2
answers359
viewsMount screen on Android
I’m developing an application on android and I’m in a part that I need to put many items on the screen and so it doesn’t get too messy, I thought of putting a screen with the style of the image that…
-
3
votes1
answer599
viewsStandard Java design for code reuse
I am developing a simple program in Java Desktop using SqLite to store local data, I would like to know which design pattern I can use to reuse the codes Java to develop the same application for…
-
3
votes2
answers1288
viewsHow to store checkbox status
I’m developing an application to make a school call list, I created the Listview and populated it with data from a database Mysql, using Json. The problem is this, I need to store the status of…
-
3
votes1
answer1494
viewsHow to run javascript in Android webview
I have a Activity with the following layout: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"…
-
3
votes2
answers4482
viewsHow to view locations near the current location of your Android Device
First of all, I can already get my location and display a Maker, but I have a web service that provides the coordinates of a store network, in case I have to display the nearest stores, my doubt is…
-
3
votes1
answer971
viewsHow to recover a soapObject from a return from the webservice
androidHttpTransport.call(SOAP_ACTION4, envelope); SoapObject result = (SoapObject) envelope.getResponse(); System.out.println(result.getProperty("nmConsultor")); return result.toString(); In case I…
-
3
votes2
answers6785
viewsOpen device gallery
People need to open the android gallery to be able to select an image and save after the way to whenever open the app load the image anyone could know how to do this? if you have any tutorial on how…
-
3
votes1
answer121
viewsAndroid getDeclaredFields value
I’m doing some studies of android, I don’t know much of the subject because I’m starting now, I would like to create a simple mvc of CRUD, where I want to call model.save(); So I created the…
-
3
votes1
answer683
viewsGet cookies from an Httpclient login on android
I do a post with android and Httpclient on a page, but I need to know a way to get cookies from that connection. this is the code I use to make the post public static void postData(Activity…
-
3
votes1
answer2197
views"Bundle Identifier has not been setup correctly" while exporting game to Android
I’m making a 2D game for Android (still learning) with Unity, but I had problems when I tried to export to see how the home screen would look on Android. Unity made that mistake: Bundle Identifier…
-
3
votes1
answer168
viewsAndroid Widget - Permission Denial
I’m having a permission problem that’s gone a little overboard. Inside a widget I inserted a button, that when pressing I receive the following message: 04-13 14:10:44.340: E/databaseutils(2362):…
-
3
votes3
answers1285
viewsWhy new Alertdialog.Builder(getApplicationContext()). create() does not work?
I have been observing this problem for some time, and I always have to maintain an instance to Activity current, rather than maintaining only one instance to Context, and until then did not…
androidasked 10 years, 7 months ago Fernando Leal 9,770 -
3
votes2
answers276
viewsInput image
Android developers, need to put an image at the beginning of input: How can I do?
-
3
votes1
answer1341
viewsMenu Navigation Drawer with Expandablelistview
I’m looking for how to build a standard Navigationdrawer menu with Expandablelistview, but only find example and explanations of how to assemble with Listview, I would like some hint, tutorial or…
-
3
votes1
answer97
viewsProblem with Phonegap installation
I’m away from home and need to keep my projects up to date, I bought a very simple notebook for my trip, and in the installation of Phonegap this giving an unusual error in my opinion because I had…
-
3
votes1
answer470
viewsProblem with transition animation between Fragments
I’m working on an app that consists of several fragments and decided to put animations between them. Looking, I found that I should use the command setCustomAnimations to get the desired result, but…
-
3
votes1
answer672
viewsWhat better way to make animations for android?
I’m about to start an android system that has several animations that interact according to what the user does, I would like to know what is the best tool or framework to be able to develop these…
-
3
votes3
answers528
viewsRead file only by Java Android application
I’m making an application that reads images from a folder, but I have a problem, I need to prevent other applications (ex: gallery) and even file manager can open this image... How do I get only my…
-
3
votes3
answers152
viewsAndroid service runs only the first time
I am developing an application where synchronization is done with a web services. The application is very simple, makes a list of questions, the user responds, when clicking finish, records this…
-
3
votes2
answers5778
viewsHow to send Jsonobject to a Web Service?
I am trying for the first time to consume a Web Service in my Android application by sending data by JSON format. To accomplish the task I have a class to make the connection. public class…
-
3
votes1
answer1286
viewsSocket connection causes an exception on Android
The code below works perfectly when only used with a Jbutton, but when passing to Android happens the exception (Exception). I have located that the error is in clientSocket = new Socket(serverIP,…
-
3
votes1
answer426
viewsAndroid Mediaplayer class alert: Should have Subtitle controller already set
After I upgraded to Android Kitkat (4.4), a class object MediaPlayer Android generates the following alert on Logcat: Should have Subtitle controller already set As explained in that question of the…
-
3
votes4
answers7507
viewsArduino and Android Bluetooth Connection (Java) - Inputstream storing old data
I’m making a class in Java very simple, just to simulate the communication of Android with Arduino via Bluetooth. The idea is the following: The Arduino every 5 seconds will light and erase an LED.…
-
3
votes1
answer5449
viewsChange text from Textview to an Android Fragment
I have a TextView within a Fragment (a tab). How do I change the text of this TextView? Here it is giving NullPointer qtAllImagensLabel = (TextView)findViewById(R.id.qtAllImagensLabel);…
-
3
votes2
answers1253
viewsAttach TXT file using Javamail
I’m using Javamail for sending email, with attachment, on Android. When attaching a file with extension ". txt" it is assigning the content to the body of the email, not as attached file. My file…
-
3
votes1
answer299
viewsRun a GCM function before uninstalling app
I’m with an Android application that is using GCM, I wanted to know how the unregistered method works, how can I do, so that when the user uninstalles the application he automatically leaves my GCM…
androidasked 10 years, 4 months ago Gabriel Duarte 565 -
3
votes1
answer600
viewsBest way to store images in database
I have an android application that uses a mysql database, to store my users' profile information, but I would like to know the best way to store each user’s photos, because I thought to upload the…
-
3
votes1
answer1651
viewsError opening new Activity
I’m picking up here to be able to make the click on a button, open a new Activity. I looked at the Android documentation on Activity, Intent, the methods to create and yet yes, it doesn’t work.…
-
3
votes1
answer6083
viewsSend an Arraylist of objects to an Activity
How to send an Arraylist of objects to an Activity on Android? ex: I have an Arraylist of Books objects, I want when I click this object arrayList to be passed to another Activity..
-
3
votes1
answer92
views"Monitoring" use of apps
Is there any way to monitor how long the user uses each application? Google Analytics has the ability to do this?
-
3
votes1
answer121
viewsHow to use a list in Listview Footer?
I added a Footer (footer) in a Listview, but this Footer will contain a list (List<>). Footer is showing, but is showing only the first item in the list. How to show the list correctly in…
androidasked 10 years, 5 months ago felipearon 715 -
3
votes3
answers2485
viewsHow to insert res/string string in the String[]{} array;
I’m trying to put my Strings in an array to use on Adapter and I can’t. I’m doing like this: String cores[] = String[]{getString(R.string.cor1), getString(R.string.cor1)}; but it’s certainly not the…
-
3
votes1
answer1315
viewsCompare prices taking into account units (kg, g)
Hello, I need to compare 2 products, taking into account their weight and values, to know which product is more advantageous to buy. Ex: Rice 5kg - R$ 10,00 Rice 2kg - R$ 6,00 Thinking that you can…
-
3
votes1
answer135
viewsRinger Mode Vibrate on Android
I wonder if it is possible programmatically call setRingerMode(RINGER_MODE_VIBRATE) without the device vibrate at the time the method is called? Android has a default behavior when we configure the…
-
3
votes2
answers35944
viewsTaking time in format: HOUR:MINUTE:SECOND
I currently use this code: // Pega a hora Date hora = new Date(); hora.getTime(); He returns it to me: Thu Aug 28 21:55:42 BRT 2014 I would like a way to get only hour, minute and second. How to do…
-
3
votes1
answer89
viewsARM atomic operations without Visual Studio
When programming in C/C++ on the x86 and x86-64 (AMD64) architecture and using the Microsoft compiler that comes with Visual Studio, there are two intrinsic functions to perform atomic operations,…
-
3
votes1
answer524
viewsEclipse app for iPhone
I’m in need of some help, and I don’t even know what to do. I created a very simple Eclipse Kepler, I put in Google Play and it was great. I would like to know if it is possible and how best to…
-
3
votes1
answer90
viewsProblem with setImageViewUri widget
I tried to create a widget with configuration that displays an image on external storage, everything works as it should, but when restarting the device widgets do not load, show only the app icon.…
androidasked 10 years, 5 months ago alefesouza 31 -
3
votes1
answer886
viewsWhat is the Journal file on Android
When I created a database in Sqlite on Android, I noticed a file with the table name, followed by -Journal. What is it and what it’s for? Strange this file have different permissions and use a table…