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
-
5
votes2
answers179
viewsObject type for Time type data (Ex: 1 min 56 seconds) in Android/Java?
I need to work with times, such as a chronometer (not my case), which at the end of its execution would have to keep its value. So I thought of some possibilities like: java.utils.Date: only that…
-
5
votes2
answers315
viewsCan I put an image of the internet on an Imagebutton?
It is possible to create a imageButton and within it put an image of internet. I can do that with webView, but it is possible to do with the imageButton?…
-
5
votes1
answer565
viewsPhonegap does not change package name
I’m using the Phonegap build to generate the APK. When uploading to the Play Store, however, he says that the name of the app is "com.phonegap.ww". I opened the APK with the APK Editor and it…
-
5
votes6
answers922
viewsListview very long
I created a ListView that features the songs of my sdcard, but as you can see in the image below it is very long regardless of the amount of items, I want its height to be smaller to display more…
-
5
votes2
answers813
viewsAlarmmanager only stores an Alarm
I have a problem related to AlarmManager, For example, if I program an Alarm for 16:00 and another for 16:30 only the second is generating the notification, different from the second. I did some…
-
5
votes1
answer201
viewsGoing back to the top of the screen when writing in the field
I have the following error: I have a list and a field, every time I edit any text Edit from the list, it loses focus and goes to the top of the screen, notice the gif that at each letter of the word…
-
5
votes1
answer260
viewsHow to inflate a class on Android?
I needed to inflate a form into a tab, always make the form in xml, but this time I did it via code, someone knows how to display my class instead of xml in a FragmentTab? Code to inflate an xml in…
-
5
votes1
answer2476
viewsPhoto taken by camera returns reversed
Is there any way not to invert the photo after updating it in an Imageview? For example, the application I’m developing accesses the device’s camera and after taking the photo, updates Imageview…
-
5
votes2
answers1027
viewsStart app with splash screen image
I want when my application was started, an image would appear and then open the application itself. Similar to the Youtube app that when starting, a picture of the Youtube symbol appears and then…
androidasked 9 years, 4 months ago Pedro Lucas 51 -
5
votes2
answers2726
viewsSend Whatsapp message by link on the site
I would like to know how to send a message by a link to a certain number. I have already managed to Android, but for iPhone doesn’t work. Link: <a…
-
5
votes2
answers1800
viewsHow to return Activity call data to the one who called it?
I saw several examples of passing data between Activity of a Textview receiving data from a Edittext. Which is the best way to do the reverse, I explain: I have a reader that reads a barcode and…
-
5
votes1
answer2999
viewsCreate button via code
It is possible to create a Button through code, rather than design mode (xml)? For example: I will create a screen with a EditText, enter a number, and click on a Button. After that, it will be…
-
5
votes2
answers599
viewsWhat are the names of the Tabs (Tabs) that are being used in the new apps?
It is a tab that when you slide the contents of Tab to the side goes to the new tab. In the new Youtube update they implemented this and I wanted to know the name to implement in my app. Youtube tab…
androidasked 9 years, 4 months ago daniel12345smith 2,120 -
5
votes1
answer6498
viewsHow to Build a Webservice to Synchronize Android and Mysql Sqlite Database
I built an android app that stores basic information about a contact in Sqlite: Name, Telephone, E-mail, Address among others. I searched a little and from what I understood, what I can do is use a…
-
5
votes4
answers2064
viewsWhat are the main differences between Handler, Thread and Asynctask?
The Android documentation can end up being a little confusing for those who are starting to understand better what are the differences between a Handler, one Thread and a AsyncTask. Handlers sane…
-
5
votes1
answer3559
viewsWebservice REST Simple
How to create a simple REST-type Webservice that does HTTP communication from an Android device with the server, using the PHP language? My goal is to make Requests and receive as a result Response…
-
5
votes1
answer110
viewsWhat are Native Hybrid and Web Applications?
Hello folks I’m a little lost in the study of mobile computing I’m studying these 3 types of architecture for mobile development someone knows the definition of these development architectures ?…
-
5
votes1
answer1390
viewsHow to read . txt file?
How do I read a file .txt which is written in lines and check if in a row that file has a value if you have made a check on checkbox. Example: txt files: 123 234 2456 If you have the file 123,…
-
5
votes1
answer1203
viewsWhat is the best method to log in to android and webservice php Restful?
I am building an application that needs login, I have already created the webservice in php using Slim. I am currently using a POST, passing a json with email and password for the webservice to…
-
5
votes3
answers302
viewsAccess web images application
I am beginner in android app development; I have the following question: if I want to make an application where the images used are not within the project, but on the web, what is the best way to…
-
5
votes2
answers4578
viewsAndroid Toolbar: center title
I’m trying to center the title of mine Toolbar but I can’t. I’ve tried to use Theme (did not work) and I have tried in Java code (however in Java code as I am using the API 13, can’t use the…
-
5
votes1
answer148
viewsHow do I start Maps in a specific place?
How do I make the App, when opening Google Maps, zoom in on a specific place (for example, a specific coordinate)? The codes of the demo it shows ALL continents when initializing being necessary to…
-
5
votes1
answer857
viewsHow to get the features of Android device
I am beginner in Android development with the SDK platform and would like to know how to get the user device features. Ex: IMEI, Android version, handset model, etc.
androidasked 9 years, 1 month ago Adolfo Andrade 53 -
5
votes2
answers928
viewsBest practices in the interaction between Activities
I’m developing an app just to validate the interaction between activities through intents. I created 5 ImageButton with an image for each one. Each button represents a movie and if the user clicks…
android android-studio android-layout code-reviewasked 9 years, 1 month ago Luiz Henrique Ugliano 651 -
5
votes1
answer1084
viewsHow to get the coordinates of a point at a certain distance from my location?
Speak guys, I’m making an app, and in an app Activity need from my location to "zoom" in the maps as the user slides a seekBar, as per the image. I’ve been thinking about using the Bounds feature on…
-
5
votes2
answers600
viewsError using apache Httpclient class
I’m trying to develop an app in which will communicate with webservice, but by the time having to use the Httpclient or other classes related to apache library gives error as it does not exist, I…
androidasked 9 years ago Alan Martins 123 -
5
votes1
answer197
viewsFire Asynctask class exception
The class below is responsible for obtaining data from a WCF Rest service: public class MyAsyncTaskGeneric<T> extends AsyncTask<String, Void, T>{ private final Class<T>…
-
5
votes1
answer977
viewsButtons invisible in emulator but visible in preview
Why do buttons I create in xml not appear on Avd? In the layout they appear with a gray color, but when I touch to run in the emulator they are simply invisible. If I put some text on the button,…
-
5
votes2
answers1215
viewsDoubt about the Apache version 2.0 license
I am developing an app with Cordova, the app can be downloaded free of charge, only some internal features will have some cost. I needed to use this plugin…
-
5
votes2
answers1016
viewsHow to create Production Application Error Report (Client)
I am looking for a way (efficient and practical) to capture globally all Exceptions not dealt with by the application (the ones that lead the application to crash or "Application stopped working!").…
-
5
votes2
answers287
viewsHow do I index my app in Google searches?
How can I get my app (Android) to start appearing in Google searches? Edit: Look at these prints: Or…
-
5
votes1
answer118
viewsAndroid Protection Reverse Engineering Client-Server
I see that it is very common applications Android (games for example) are modified through engenharia reversa. Even using obfuscação and other anti reverse engineering techniques, it is difficult to…
-
5
votes4
answers334
viewsAdvantages of Inner Class
Since I started programming for Android (I believe due to Google examples), I have a habit of creating internal classes for functionalities related to Activity. Example: If the Activity connect to…
-
5
votes1
answer331
viewsAndroid and HTTP request field X-auth-token
I am trying to send a token, through an Android application in the 'X-auth-token' header field. This request is sent to a PHP server, where I use Codeigniter. Android HttpClient httpClient = new…
-
5
votes1
answer301
viewsSync Android x Web
I am developing an application that will work offline on android and sync with a version web. I have a API that will mediate this synchronization. Currently the version android has a timestamp to…
-
5
votes1
answer1457
viewsMethod does not override method from its superclass
I’m new in Java and I’m learning app for Android and on my way, I ran into this mistake: Method does not override method from its superclass The word @Override is underlined in red, but I could not…
-
5
votes2
answers337
viewsNo data in Json Array on Android
I’m having a problem bringing data into an Array on Json. It seems that it does not run Try catch, but in the result variable it brings all the data. I would like to take the name field, but it does…
-
5
votes1
answer705
viewsHow to update Listviem after deleting an item?
When I click on an item of mine Listview, i open a dialog with 3 buttons (Edit, Finish and Delete). By clicking delete, I would like to make the Listview be updated. Man Adapter is in a separate…
androidasked 8 years, 8 months ago dnsfirmino 401 -
5
votes2
answers676
viewsHow to access the SDCARD on Android 4.4(API 19)
Currently I have an application running on 100 phones with android 2.3(established by the client), but are changing the phones to 4.4 and use the sd card to store and then display as product…
-
5
votes1
answer295
viewsRetrieve the last saved photo and insert it into a View image every time Activity starts
I’m doing a job and I created a page that simulates a profile, so when a user is logged in, they can log on to that page and take a photo to be saved there. So, as soon as the photo is taken the…
-
5
votes2
answers194
viewsWindows Universal Apps C++ vs C#
What’s the difference between C# and C++ to develop universal apps? I saw that in the templates of Visual Studio 2015 for C++ there is a group Cross Plataform with app templates for android and Ios.…
-
5
votes2
answers1211
viewsPassing data between Activity Android
Well, I’m making an app and I have a login screen that connects to the database from a web service, only q I’m having a problem want to get the user id and user name to pass this data to another…
-
5
votes1
answer281
viewsText gradient android
It is possible to create a gradient in the text (and not in the background) of a textView using only XML? I know using Shader it is possible to do with code(here) It is possible to do this using…
-
5
votes2
answers7398
viewsstartActivityForResult() and onActivityResult() in Fragments
I have a MainActivity that allows me to open two Fragments. The class Fragment_1 has a Button that in his Listener opens a second activity through the following call: Intent intent = new…
-
5
votes1
answer360
viewsHow do I add Google Analytics to my Android app?
I want to use Google Analytics to collect more information about using my apps, such as adding Google Analytics to my Android app?
-
5
votes1
answer332
viewsDocumentation for creating files in PDF format
I am some time analyzing free libraries for creating PDF for use in commercial applications on Android, and so far I have not found one that meets all my expectations, functionalities and licenses.…
-
5
votes1
answer1457
viewsHow to save locations from a map to an Sqlite database?
I plan to save sites displayed on a map to a Sqlite database so that the user can consult them in the future and add a description. Here’s my class Description... public class Descricao { private…
-
5
votes4
answers602
viewsHow can I replace "String.isEmpty()" in Java?
I got the following: data = new Json().execute(URL).get(); System.out.println(data); if (!data.isEmpty()) { //erro neste data.isEmpty I have a mistake: has an error: Call requires API level 9…
-
5
votes3
answers317
viewsHow to not distort the layout when opening the keyboard?
I have a linear layout with a form. Whenever the keyboard is opened it distorts my layout leaving my Buttons in half, is there any way to keep my layout intact when the keyboard is opened?? Some…
-
5
votes3
answers2000
viewsHow do I get a Facebook profile picture?
I’m having trouble downloading the profile photo. When I add this line, I start the id: userIds2 = profile.getId(); Class public class MainFragment extends android.support.v4.app.Fragment { private…