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
-
0
votes0
answers91
viewsTap Close App button
Follow this tutorial to create a layout with tabs. After that, I created an XML button, which is displayed without action, because it is only in XML. I want to open another Activity from the touch…
-
0
votes0
answers53
viewsHow to create a navigation layout?
I would like to create a navigation layout. Example: I have keyboard with swipe in horizontal motion, it changes the keyboard layout. What layout should I use to accomplish this task? If anyone…
-
0
votes2
answers4140
viewsError opening Activity: The <application> stopped
I have a file VigasFragment.java with a button that when touched should open the Activity VigMetBiapsb.java, however some error occurs, closing the application. Vigasfragment.java: public class…
-
0
votes2
answers147
viewsHow to save app data to smartphone?
To not depend on internet connection, it is possible to save on mobile data related to the app? For example, when opening for the first time select the language and in the next uses of the app it is…
-
0
votes0
answers322
viewsEntering data manually into a table (Android)
My project has a Textview that should already start displaying a value to the user, this will only have to change it. But, this value is not being displayed. I believe it is not being saved. How do…
androidasked 9 years, 7 months ago Mara Oliveira 1 -
0
votes1
answer313
viewsError when trying to open a new Activity
Well, I have the MainActivity which has two buttons, I’m trying to do something simple: When you click one, go to a Activity, when you click on another, go to another Activity. This is the…
-
0
votes1
answer360
viewsWhy does the app stop when I leave the field empty?
public class VigMetBiapsb extends Activity { int porctAlt, porctLarg; double edtVaoNum; EditText edtVao; Button calcBiapsb; TextView secaoBiapsb; @Override protected void onCreate(Bundle…
-
0
votes1
answer59
viewsFinish another App service
The thing is, I’ll have two apps running on a client’s phone, one of them just starts a few services and the other does some operations, the problem is I can’t unify the two, it’s a long story, now…
-
0
votes1
answer669
viewsAndroid - Listview with image via url, how to add one?
I’ve done several searches on how to add an image to an android listview item, I’m doing everything via JSON and by Asynctask but I’m having a hard time adding this image, someone has an example or…
-
0
votes0
answers350
viewsCommunication between PHP and Android
I have a PHP application used this commands: ini_set("allow_url_fopen", true); $json = file_get_contents('php://input'); Because data is sent by Android system. What is sent to PHP is a JSON, after…
-
0
votes0
answers78
viewsDoubt with the Androidplot
Personal someone could tell me why this code is not generating the desired graph? //screen code import java.text.DecimalFormat; import java.text.FieldPosition; import java.text.Format; import…
-
0
votes0
answers46
viewsError while converting Android project to Maven
I created an Android project and right-clicked on the project > Configure > Convert to Maven Project. But soon after doing this the application does not start anymore, it presents the…
-
0
votes2
answers1255
viewsAdd subitem to my listview
I have a custom listview, with image and title, but I can not insert subtitle, see the codes: Base Adapter public class Adapterlistview extends Basedapter { private LayoutInflater mInflater; private…
-
0
votes2
answers83
viewsNetworkonmainthreadexception error
People are giving this exception because by what I researched, from Android 3.0 you can no longer make network call in an Activity, but I need this to be done: Check out my Rssfeed reading class :…
-
0
votes0
answers283
viewsTutorial to develop Andorid app with Parse
I have searched everything that is corner and I did not find, someone knows indicate some tutorial from another place other than the site parse.with?…
-
0
votes1
answer34
viewsError while running this page
import android.app.*; import android.content.*; import android.os.*; import android.util.*; import android.view.*; import android.widget.*; import java.util.*; import org.apache.http.*; import…
-
0
votes2
answers2207
viewsRun Application in 2nd Cordova Plan
I am developing an application in Cordova that sends the data (registration and image) to external server, already working however, I would like to make that if the user does not have internet at…
-
0
votes1
answer2007
viewsError occurring in specific API versions
When I create a new project And I choose the minimum SDK 10 He creates the Android package with the main.java and activy_main.xml (and other things) except that when it compiles the codes of these…
-
0
votes1
answer588
viewsHow to make a hybrid application for Android run in the background?
I wonder if it is possible to make a hybrid application for Android to have a service running in the background where even with the application closed I can receive information from a server and…
-
0
votes1
answer2667
viewsError publish apk in play store, SHA1 certificates are different
I recently received an email from Google saying that there was now support for buying apps in Reais and that I should migrate my developer account. I followed the steps as described in the email and…
-
0
votes0
answers60
viewsXmlparser too slow
In my application it reads an XML with 3 elements, and fills a listview. The problem is that it is very slow, even with little data in XML, I did a test with XML with 3 data, and even so it was…
-
0
votes1
answer586
viewsWhen to use a Fragment instead of an Activity
I’m working on a project where I’m making use of several fragments and only one activity. Giving a researched, I saw that many places suggest the use of fragments when the code of the same will be…
-
0
votes1
answer359
viewsPut invisible item and other get in place
I have a RadioGroup and a button underneath it, but this button is invisible until a certain moment, I can do the RadioGroup occupy the white space while the button is invisible ?…
androidasked 9 years, 6 months ago Ilgner de Oliveira 1,098 -
0
votes0
answers111
viewsXml components are not loaded into Activity
Editing: I just found out that if I comment on the lines that cause the error, it gets all black screen... IE, does not load the layout. I’m trying to get a Progressbar and a Textview so I can make…
-
0
votes0
answers89
viewsListener on a button inside a notification
I’m making an app that plays a radio stream, and when it starts playing, I create a custom notification with 2 buttons, one to pause/play and one to remove the notification and stop the stream, but…
-
0
votes2
answers1767
viewsMobile Cordova Geolocation
I am developing an application that contains a register of the address that the person is, and I would like to get this data directly from the location service, but I would like to know if you could…
-
0
votes1
answer752
viewsActivity background image distorts when you open the keyboard
I’m developing an app that has a background image of the image. But every time I open the virtual keyboard to fill a field, this image is flattened. How do I make it not happen?…
-
0
votes0
answers56
viewsQuestion about android default to communicate with other Activitys
I have an Activitymain, it starts at the beginning and only ends its activity at the end of the application, that is while browsing other activitys of the app this Activity will always be behind. My…
-
0
votes0
answers648
viewsChange background color of selected item in Navigationdrawer
How can I change the background color of the selected item in Navigationdrawer? <ListView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"…
-
0
votes1
answer926
viewsHow to select a particular java listview line
How do I get the line id of a listview? The idea is this: before picking up the selected line, I’ll work with all the lines I’m trying. aList = new ArrayList<HashMap<String,String>>();…
-
0
votes1
answer95
viewsHow to integrate android with visual studio 2013?
Hello folks would like to know if it is possible to integrate the Android in the Visual Studio 2013
-
0
votes0
answers422
viewsDo not let user close application / or perform an action before closing
Personal in my application the user makes an order, this order gets a status again, I want when it closes the application when it is making the order, the status is changed to canceled and sent to…
androidasked 9 years, 6 months ago Mateus Carvalho 1,494 -
0
votes0
answers64
viewsThrowable error returns null
I have a problem I need to receive the memory stream of a webservice that was developed in C#. The following routine worked correctly, but now it keeps falling in the catch and the exception comes…
-
0
votes1
answer86
viewsGoogle play services and setInterval
I’m trying to use google play service to get the user’s position. The problem is, I have a dynamic time frame for sending this position to the server. However, Locationclient does not respect this…
-
0
votes2
answers89
viewsDatabase Stopped
I am with an application that I am running directly on Android phone, and it generates an error message on Logcat 12-05 15:55:18.043: D/ActivityThread(27221): setTargetHeapUtilization:0.25 12-05…
-
0
votes1
answer759
viewsSQLITE cursor picking up last value
How to make the SQLITE Cursor, make the variables not stop at the last value ? I made a Setadapter to which he lists all the Listview data, so far so good, but when I put some variable that is…
-
0
votes0
answers1993
viewsOffline voice recognition
I created an automation application that uses voice recognition. I tested on another phone and it doesn’t work without internet active, know that this error is related to Android version. Is there…
androidasked 9 years, 6 months ago Claudio Ramos 23 -
0
votes1
answer72
viewsScreen guidance on android
I have an Activity that has is declared in the manifest as Portrait, and I have an image gallery, where when clicked on any of the images I launch this code: getSupportActionBar(). Hide();…
-
0
votes1
answer1167
viewsInstall Facebook SDK on Android Studio
I need to use the Facebook SDK in an app of mine, but I just can’t. The app has nothing, I just created a new one. It turns out that the instructions they pass on Developers Facebook are very vague.…
-
0
votes1
answer738
viewsChange the visibility of a layout’s fields at runtime
In a layout for client registration, there are the specific fields for Legal Entities and Individuals. Control of the type of registration is done by RadioButton who are inside a RadioGroup. I…
-
0
votes1
answer418
viewsButton with responsive image
I have several buttons that readjust depending on the size of the device, however, the images inserted in it do not automatically adjust, and end up always with a fixed size. How can I make these…
-
0
votes0
answers119
viewsListview does not appear in the options
In my Eclipse, when I add a Listview, I see an empty space where it should be, it is as if it were a button, but empty and it is not possible to put it on the App screen. Maybe some file is…
-
0
votes0
answers215
viewsLoading Listview via an API
When I run the app, Listview is not displayed on the screen. Is Volley not doing the request? or am I doing the wrong JSON Parsing? Main Activity: public class MainActivity extends FragmentActivity…
-
0
votes4
answers2941
viewsSplit String using comma as parameter
I am trying to get the values of a Listview to send them to another screen by clicking on the item. So I have the following code: @Override public void onItemClick(AdapterView<?> parent, View…
-
0
votes1
answer492
viewsBrowse Tlist and load Tmemo with Tlist information
[Tlist in firemonkey mobile] Guys, I’ve had a problem here for a while. I can’t work with TList in firemonkey mobile, specifically until then tested "Android". If I compile for Win32 works…
-
0
votes2
answers85
viewsProblems with Insert in an Android project in Java
I am new as Java programmer for Android, I am creating an application that he register an email, in the image below he will register the email and above the user will login. But when I try to…
-
0
votes2
answers318
viewsHow to remove a View from an xml layout?
for example... I want that when inflating a layout with a certain class, it removes the unnecessary views and uses only the necessary ones... There is a method to remove views?
-
0
votes1
answer72
viewsIcone Android opens browser with website
I am creating a responsive page and would like to know if it is possible to create an installable app for android/Ios that is only an icon that opens the browser with the address of my webpage.…
-
0
votes0
answers255
viewsLogin with facebook app android
I am creating an app that login with facebook, already downloaded the sdk facebook imported in ecplise, I created my project and now I need to import, so far so good I followed this tutorial…
-
0
votes1
answer84
viewsProblem on android SDK
I’m beginner in development for Android And I came up with a mistake that I think was in SDK Android or some configuration I made wrong. Every time I start the Eclipse this message appears to me.…