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
answer51
viewsHow to list all Browsers installed on Android?
How do I list/check all browsers installed on an Android device via Java?
-
1
votes2
answers747
viewsHow to return calculations performed in Service to Activity?
I would like to send the result of a calculation back to Activity, I was trying to use a Binder as recommended, but I cannot recover this value. It would be possible to make Activity know that the…
-
1
votes1
answer163
viewsIs it possible to request HTTP(POST, GET...) with android for any domain?
I have a back-end with PHP with URLS that return data to my front-end with Angular. It works normally because they are on the same domain. In the case of an android app that is outside the domain, I…
-
1
votes1
answer71
viewsDisable second click in Navigationdrawer
I’m developing an app, which contains a menu drawer, but I have a multitoque, that is, when the user selects an item, and quickly selects again, it keeps the drawer aberto. I would like, that when…
-
1
votes1
answer406
viewsCircular Progress Bar Android
Guys, having trouble making a circular Progress bar, would anyone like to explain me and show me some example?. Thank you very much.
-
1
votes1
answer14680
viewsCentralize a textview
I have this layout in my app: And I’m raising him like this: TextView txtCategoria = (TextView)LayoutInflater.from(this).inflate(R.layout.text, null); txtCategoria.setText(listenerCategoria.nome);…
androidasked 9 years, 9 months ago Ilgner de Oliveira 1,098 -
1
votes2
answers107
viewsHow to prevent an Activity from being created again? Is calling it once?
I am making a form and when I finish filling the form I need to change the color of the item of a Listview with the name of the form I just filled and leave the color there independently if I am…
androidasked 9 years, 2 months ago daniel12345smith 2,120 -
1
votes1
answer183
viewsImplement screens in list
I’m working on my first project with ListFragment searching the internet in tutorials and even in the online course I’m doing. When the onListItemClick he sends a Toast to screen, but I want you to…
-
1
votes0
answers93
viewsAndroid - Httpurlconnection cookie
I have a native login screen on android, which the user enters login and password, and does a check via Httpurlconnection if the data is correct, if yes then it saves the cookie, and returns that…
-
1
votes1
answer3806
viewsDoes anyone know a program to decompile an apk and get the source code?
I used 7zip, but it does not decompile the code that is what matters, it decompiles only the xml files. Does anyone know of a program that does this? I thank you in advance!…
-
1
votes2
answers841
viewsWhat exceptions should I capture in a Try-catch?
I have some doubt in try catch in relation to which types of exceptions put. In this example either would be the best option? try { String folerPath = Environment.getExternalStorageDirectory() +…
-
1
votes0
answers28
viewsAndroid Jackson Post
A Question : I’m trying to do a post, but the Jackson library during the Post doesn’t change the name of the field during serialization, how do I do this with Jackson? My class below :…
-
1
votes1
answer116
viewsCardview lost its "elevation" after I started using it in Ragments, how to solve?
Using in activities the elevation works normally, after I put in Fragments, it became "flat".
androidasked 9 years, 2 months ago Marcos Vinícius 71 -
1
votes4
answers197
viewsCalling Gridview event in Activity
I have a Gridview Adapter and in it I possess a ImageButton to delete items. It is deleting correctly, however, every time an item is deleted I need to set the current quantity in one TextView that…
-
1
votes1
answer1145
views"Google account: blocked login attempt" - Android app
Take a look at my code first Loginactivity class package com.softblue.sendemail; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.Message; import…
-
1
votes0
answers59
viewsHow to handle Actionbar’s options?
Hello, in the app I am doing all my activities (except 2) has the extends of another Activity (BaseActivity) where I treat the options available on ActionBar, with this I avoid repeating the code in…
-
1
votes0
answers87
viewsCreating an infinite Listview?
I’m trying to create an infinite Listview to go looking for information on my web service from 10 to 10. For this I am trying to use this example:…
-
1
votes1
answer88
viewsHow to display a listview with only one line with the color changed?
It may seem easy but I’m getting it. I needed in a list of 10 names, to present for example the third name in green color. As I do to get his position, I’m not getting it, I need to present this…
androidasked 9 years, 2 months ago daniel12345smith 2,120 -
1
votes0
answers1297
viewsPhoto saved but not shown in the gallery
Good evening, I’m with a design of a camera that adds in the name of the photo what the user writes in the text fields. The app works only that the photo does not go to the gallery. Only appears in…
-
1
votes1
answer162
viewsCheckbox with Radiobutton appearance
Next bunch of you: I have an android form that has some radiobutton’s and I need that these items can be unchecked when clicked. Ex: I clicked on the first and it is marked, if I click on the second…
-
1
votes1
answer3150
viewsEnable / Disable GPS on Android 4.4.2
Hello. I am developing a tracking application where at a given time is made the request of the user’s location activating your GPS and after that, is made the GPS deactivation. In older versions of…
-
1
votes2
answers3920
viewsHow to set a value on a Spinners?
I have a formulariohelper which obtains the value of Spinners and save to the bank, but I can’t load the value of the bank into Spinners. Like I set the value? public Aluno getAluno(){…
-
1
votes1
answer95
viewsHow to add multiple numbers in Sharedpreferences and always keep the instance of Sharedpreferences?
I needed to add a data in Sharedpreferences and it will wipe out all the data, not "zero" plus my data. I am using the editor.putStringSet("data", dado); to store my data, I needed to keep this data…
-
1
votes0
answers60
viewsRecognize when my Android gives replay to a bluetooth ping
I need to know what it takes for my Android program to detect when mine bluetooth is responding to a ping command on bluetooth. They’re kind of shooting ping with l2ping against my mobile, on my…
-
1
votes1
answer850
viewsUsing another class method
I need to execute a method that is in another class. I think the two are non-activityes classes. The following class has a method called connect(). When this method is executed, at the end of it I…
-
1
votes1
answer1038
viewsTela Responsivas
I’m having doubts about responsive screens on android. I’m almost done with my app, but I’m not getting it to be responsive to various screen sizes. I’m using the Android Studio IDE.…
-
1
votes1
answer788
viewsHow to leave a fixed button at the end of Linearlayout via code (without using xml)?
I got a linearLayout, and I put it like MATCHPARENT to occupy the entire screen of the tablet, however I needed to leave a fixed button at the end of the screen. Does anyone know how to do this?…
androidasked 9 years, 1 month ago daniel12345smith 2,120 -
1
votes3
answers97
viewsHow to make "Adapter.getItemPosition" take only part of the String and hide the other part when presenting Listview?
I have a listview that returns two strings for each row. The code and the name of a country, I would not like to present the code but I need it for when the user clicks the line take the code and do…
-
1
votes0
answers183
viewsIdentify corners in Google Maps
I’m developing an Android app that will use maps while the user drives the car. I need to know if it is possible to use the user’s current position and identify the corners near that position. Is it…
-
1
votes1
answer69
viewsScreen Splitting using Android + Unity
Guys, good afternoon. I have a project where I need to take a view of a particular object at 4 different points and position it in order to look something like this…
-
1
votes1
answer1645
viewsHow to add items dynamically in a Listview that is inside a Fragment?
I’m developing a layout in an Android app that will be used in Tablets, basically the layout main possesses a Toolbar, one Drawerlayout, one Framelayout and a Fragment, as is below: <?xml…
androidasked 9 years, 8 months ago mateusalxd 2,768 -
1
votes1
answer281
viewsERRO; Canvas: trying to use a Recycled bitmap android.graphics.Bitmap
Guys I’m taking a bitmap of a gridview and displaying in another Activity, then when I open 3x the other Activity the app hangs and closes. First action view.buildDrawingCache(); Bitmap bitmap =…
androidasked 9 years, 8 months ago Alisson Hirle 69 -
1
votes1
answer343
viewsError sending an int parameter through an Intent
Guys I’m making an app that gets a user code and it’s in hexadecimal. I convert it to decimal and insert it into Shared preference. So far so good. At the time he will send the parameter to the…
-
1
votes1
answer574
viewsHow to read file that is inside the . apk?
I’m having a little problem developing an app. I need to read the information of a file that is inside the . apk of my app, ie. That file you need to read is inside my app and not outside it. This…
androidasked 9 years, 1 month ago user1657394 41 -
1
votes1
answer3938
viewsIs Xamarin a viable option for mobile development?
I need to develop for mobile and I was thinking of Xamarin as an option, and then I went to do some research and found out that: The Xamarin is paid, and the price is half salty for a cheap…
-
1
votes2
answers579
viewsHow to convert a date that is in string format in the database when doing a query?
I have a date that is in string format in the database "dd/MM/yyyy" and I needed to return in my query the dates from today. How can I do this conversion in the query to compare with today? Thank…
-
1
votes0
answers29
viewsIdentify if the app is in the background or just switched from Activity
Is there any way to determine if the app was for background or just if it switched from Activity?
-
1
votes1
answer214
viewsAdding a Edittext dynamically and modifying the layout_width, layout_height and
I’m trying to add two Edittext dynamically, so far so good. Now as I do to move the weight property on the screen, I can only use wrap_content or match_parent.…
-
1
votes0
answers113
viewsHow do I correctly import using Maven in Android Studio?
I imported the org.apache.commons:commons-email through the command ALT + SHIFT + CTRL + S in Android Studio. The class identified without problems but I can not compile the project! PS: I entered…
-
1
votes0
answers87
viewssetError() overriding the Actionbar
I have a screen that the user changes their data, and as validation I use the setError() to specify which element has the incorrect value. But I have a problem when I have scroll on the screen, the…
-
1
votes0
answers86
viewsBuilt-in Activity/Fragment camera as Instagram
I have an app where sometimes the user needs to take a picture of a receipt during a confirmation process and would like to have the camera inlaid on the same screen at this time (rather than…
-
1
votes1
answer427
viewsHow to remove the back button on android
How do I remove this back button from my application?…
-
1
votes1
answer318
viewsIs it possible to create a cross-platform hybrid application with Phonegap?
With the advent of the possibility of creating mobile applications for various platforms using Phonegap, as an example, I found on Adobe Phonegap’s own website the chance to create a hybrid app,…
-
1
votes1
answer845
viewsReduce the size of a Bitmap
How do I reduce the size of a Bitmap.For example, take a photo of 600kB and reduce to 50KB. Obs:In the java.
-
1
votes1
answer221
viewsError creating Class on Eclipse Android
When I will create a new project on Eclipse Android it shows the following errors: Detail: Just downloaded the apis 4.0 and 4.2 and lower + extras and build tools.…
-
1
votes3
answers783
viewsActionbar in Android Studio 1.4
I upgraded my Android Studio to version 1.4 and am having problems implementing Actionbar in one activity. The application performs validation of a user’s data through the MainActivity and then…
-
1
votes0
answers99
views"Outofmemoryerror" error using Volley
I’m making an application where I have a URL that returns a JSON, through the Volley library, I’m taking the content of this URL and turning into string, this process shall be carried out on each 5…
-
1
votes1
answer691
viewsListview is catching up
I’ve been ListView layout.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"…
-
1
votes1
answer1868
viewsHow to add an Actionbar/Toolbar to an Android 2.2 project?
I have a project/app developed on Android 2.2. The same runs without any problem, but as the current devices are abolishing the "menu" button or in some cases use virtual buttons, it became…
androidasked 9 years, 1 month ago Aprendiz-CE 11 -
1
votes0
answers867
viewsHow to leave Imagebutton edges rounded?
My XML: <item> <shape> <gradient android:angle = "270"/> <corners android:radius = "25dp"/> <padding android:left="5dp" android:top="5dp" android:right="5dp"…
androidasked 9 years, 1 month ago Douglas William 321