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
votes2
answers560
viewsHow to view data from a Cordova database?
I wonder if there is a way to access and view recorded data from a database Cordova? I have an app mobile (Android and iOS) and I know I can view the logs using log or alert but, is there any way to…
-
2
votes2
answers8992
viewsHow do I update my application’s APK when the user requests it?
Explanation: I have an application that is constantly made quite changes, and every time I do, I get a new version with the same Private Key(Keystore), I mean, when I send the new *.APK install on…
-
2
votes1
answer135
viewsAndroid map Version 2 with supporte library
I’m using the Android maps v2 api. I have in my Activity the following statement <fragment android:id="@+id/map" android:name="com.google.android.gms.maps.MapFragment"…
-
2
votes1
answer1333
viewsHow to show the content of a received SMS on Android in a text dialog?
I’m developing an Android app that sends an SMS request to a remote device and receives back a reply, also via SMS, which should be presented to the user. To receive the SMS I used the following…
-
2
votes1
answer159
viewsProblem with internal database
I’m trying to manipulate an internal database with the following code: sql = "CREATE TABLE IF NOT EXISTS tipo ([codigo] integer autoincrement,nome text not null);"; bancoDados.execSQL(sql); sql =…
-
2
votes1
answer469
viewsPush notification on a local network (case without internet)
I studied in the services of GCM for sending and receiving notifications to the android, but I have the following doubt: If I am in a local environment, and the data server is in same environment,…
-
2
votes3
answers1461
viewsHow to update Textview from Asynctask?
I saw in this example, updating the field TextView from within the AsyncTask but I can’t repeat that in my code, and it seems to me that’s not even possible or it’s? protected String…
-
2
votes1
answer197
viewsDifference in onCreate(Bundle) parameter
I had a doubt here reading Ricardo Lecheta’s book, android, in which I saw no explanation neither in the book, nor found on the internet. Some examples use the onCreate function like this:…
-
2
votes1
answer1016
viewsHow to grab images from a folder on Android?
I made an example of a ListView where it is used ArrayList to fill in the TextView and ImageView. But I’m improving it by taking data from a Mysql database, with respect to the `Textview all right,…
androidasked 10 years, 7 months ago JamesOrtiz 319 -
2
votes3
answers1444
viewsOrganize XML’s layout in the Android project’s Resources(res)
Problem My project is growing and with it, the amount of files in the layout folder, and it is already becoming somewhat difficult to find a specific file, since they are not grouped in any way,…
-
2
votes1
answer222
viewsUpdating the text of a Toast without waiting for it to disappear
I’m creating an app for testing and I’m using toasts to validate my tests. I usually define a Toast as follows: Toast.makeText(this, "Texto que eu quero que apareça",Toast.LENGTH_SHORT).show(); Is…
androidasked 10 years, 6 months ago Renan Lazarotto 1,025 -
2
votes1
answer2723
viewsData update Sqlite Android
How to take the information that is on the screen and do an Update in the database. Code displaying information in Edittext. public class DatabasesDAO extends SQLiteOpenHelper { private static final…
-
2
votes1
answer347
viewsRestart requestLocationUpdates() with Sleep
How do I start the requestLocationUpdates() with Thread.sleep(); in the Android? My code: public void onLocationChanged(Location loc) { Date d = new Date(); SimpleDateFormat sdf = new…
-
2
votes2
answers246
viewsHow to notify the user that an FTP file is up to date?
I’m developing an android application that lists and opens files from a directory via FTP I need my application to notify the user that there is an updated version of a file through a Toast or any…
-
2
votes1
answer5616
viewsDownload USB to Motorola Drivers
I want to test my Android apps directly on my Moto G, but I’m not able to connect it to Eclipse, because USB driver is missing. And the download link on Android Developers…
-
2
votes1
answer771
viewsHow to run audio file using Audiotrack class?
I intend to make an app to play drums, but, as I’m starting now to develop for android, I’m having difficulty. I need to play an audio file with the class AudioTrack (because it has the lowest…
-
2
votes3
answers5189
viewsHow to pass editText value to attribute to int type on Android?
I have a question about the value store coming from EditText for attributes of type int of a class. For attributes of the type String I do so:…
-
2
votes3
answers422
viewsDoubt about extends Application
Developing for android I can create a class that extends Application. How would I do it in java? There is this or tagging?
-
2
votes2
answers1107
viewsUpdate the value obtained in an Edittext
Next, I’m having a problem taking the value in an Edittext and displaying it in a Textview. The value displayed when using a string, is "null", and when using int, is 0. I believe this happens…
-
2
votes2
answers1429
viewsImage layout dynamically after photo is captured
How do I create a layout exactly like this (The layout is equal to both left and right): I’ll explain how I intend to do this and if possible help me because I don’t know how to do it this way: I am…
-
2
votes1
answer627
viewsImage upload using Webservice C#
I would like a help to know what is the best way to upload an image using webservice c#, I have tried several forms and several examples but could not. I tried to convert an image to string Base64,…
-
2
votes1
answer327
viewsAndroid: Improper layout change due to animation
Guys, I have a problem here and I’ve posted on international stackoverflow, but no one answered me, so I’m posting here to see if you have any charitable soul to help me. Come on!! I simply wanted…
-
2
votes1
answer4309
viewsAndroid minSDKVersion and targetSDKVerion
What’s the difference between minSDKVersion and targetSDKVerion? Androidmanifest.xml: <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19" />…
-
2
votes1
answer327
viewsDoubt about Registration ID in Google Cloud Message
I want to implement GCM in my project, but I have some questions and I needed to take them all before doing. Well when I log a device into the GCM server, is the id it receives unique? If I…
androidasked 10 years, 4 months ago Gabriel Duarte 565 -
2
votes1
answer613
viewsProblems with Asynctask crashing the application
I am developing a online chat which should update alone all the time, the problem is that each query hangs the application for a half seconds. I had already asked a similar question in: How to make…
-
2
votes1
answer60
viewsAndroid Test - Call Method
I wonder if in android Unit test would have the possibility to call isolated methods of code, or if only calling activitys, buttons... I searched several places and found nothing talking about…
-
2
votes1
answer98
viewsNull Pointer with Location Manager
I have the following code which returns NullPointerException on the line: lat = location.getLatitude(); private GoogleMap mMap; private String provider; private LocationManager locationManager;…
-
2
votes1
answer133
viewsHow to make getHeight() not return 0 before the Draw method?
I have a problem where I need to make a ball appear in the middle of the screen getHeight()/2, the real problem is in the function init() where the value of getHeight() return me 0, which should…
-
2
votes2
answers672
viewsIdentify Dual Sim Card on Android
I’m trying to identify yes card on the Galaxy Y smartphone however, this smartphone is dual chip and I can not display. I did some research but I just found how to identify only one sim card…
androidasked 10 years, 4 months ago Douglas Mesquita 809 -
2
votes1
answer920
viewsProguard.cfg Android file
How do I "obfuscate" my classes, methods, variables and etc in the proguard.cfg Android configuration file? My intention is to hinder decompilation (reverse engineering) of the project.
-
2
votes3
answers210
viewsHTML tags with Regex
Here’s the thing, I’m using the following expression: <div class="teste">(.+?)</div> And that’s the content, for example.: <div…
-
2
votes2
answers1729
viewsHow to make components responsive in various screen sizes
Hello, I was wondering how to make the components responsive to various screen sizes, e.g.: I have an image view but it gets a size on the tablet, and the same size on a small phone, IE on the small…
-
2
votes1
answer73
viewsDifficulty to understand "extends Application"
Good night, I’m having trouble understanding an example I’ll try to explain without posting the entire font I think will be easier to understand I have a class called GLOBAL that extends Application…
-
2
votes2
answers4898
viewsHow to update the app version on Google Playstore?
After publishing version 1.0 of my application, and I with a new version of the same project (2.0) and want to update. How do I submit? Do I need the Keystore only? The new apk has to stay next to…
-
2
votes1
answer341
viewsI cannot replace the fragments displayed in Viewpager
I am retracing the navigation of an application so that it works as follows: the application consists of a single activity that initially displays a ViewPager with three views (Fragments), and in…
-
2
votes1
answer3631
viewsGraphics on Android
I need to implement a bar chart in an Android app. Can anyone help me? I only found google-Chart but did not understand how to apply to the app.
-
2
votes0
answers156
viewsDrag and Drop similar to the android shortcut screen
I’m using Android 4.0 to develop, I need to develop a drag and drop in my app and I will like to do as the shortcuts screen, a table 4x4 on the screen. With this the elements will have 16 defined…
-
2
votes1
answer144
viewsAndroid - take the splash screen from the back-stack
I’m finishing a college job where an app should present a splash screen and then a login screen. I would like it, as soon as the splash screen was finished, it would go out of history. The structure…
-
2
votes1
answer149
viewsPrevent animation from repeating when changing the orientation of the device
I’m working on a screen that contains an animation that is repeated every time the screen is rotated. I searched but found no precise information of what I need to do so the animation does not…
-
2
votes1
answer853
viewsPopular a Listview with Arrayadapter
I need a popular ListView. I have a class that represents the Entity Cliete, a class that is responsible for the database database and finally a class ClienteDAO, that the data of the entity remains…
-
2
votes1
answer792
views -
2
votes2
answers77
viewsHow to leave the fields with the same style?
I don’t like to keep repeating code and I believe there is a way to leave, for example, two fields or more with the same style of formatting: Down below I got two EditText they have something in…
-
2
votes2
answers813
viewsCreating a double array (not a multidimensional array)
I need to pass two values of the kind double for a AsyncTask in my application. I tried to define an array using the following code: double latitude = location.getLatitude(); double longitude =…
-
2
votes2
answers161
viewsExporting my project, proguard error
Exporting without proguard all occurs normally, but when active this error: [2014-09-14 01:59:01 - meuapp] Proguard returned with error code 1. See console [2014-09-14 01:59:01 - meuapp] Warning:…
-
2
votes1
answer2236
viewsHow to leave my app open waiting for the server to send information
I’m creating a client app that once it changes the status of some component on the server the server will send to the client so that the user can view it. I need the app to be open by receiving…
-
2
votes2
answers5630
viewsKeep image next to text inside a button
Maybe it’s a simple situation, but I’ve already cracked my head a little bit here and I haven’t succeeded yet. I have a button, and inside it I upload an image and text. <Button…
-
2
votes1
answer565
viewsHow to transform Json into an object with dynamic fields using Gson on Android?
I have the following json: {"Data" :{ "Description": "app", "Campo2": "app2", "Campo3": "app3"}, "Instring" : "1", "Token" : "Zoebarw9nimk9o"} The "Date" field may contain 1:N fields. To illustrate,…
-
2
votes1
answer1615
viewsHow to copy SQLITE database from internal memory to SD card command Linux
Good morning, you guys, One day I managed to find the database of an android application I am doing in the internal memory via Linux commands, the application is in Delphi XE but the storage…
-
2
votes1
answer124
viewsHow to show ad when closing my app
I want to show my ad when the user presses to "return" where I should release this code: Adbuddiz.showAd(Activity);
-
2
votes1
answer80
viewsInstallation error: INSTALL_FAILED_CONTAINER_ERROR app Eclipse
Hi, I’m having some problems with an app.. I’m trying to run on AVD, but it gives in comfort Installation error: INSTALL_FAILED_CONTAINER_ERROR.. I went on Android Manifest and changed the…