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
votes1
answer1523
viewsWhen I use a "Finish()" to terminate Activity Android uses some Activity ending animation by default?
Because I would like to put a different animation, and if I put an animation before putting the finish() executes the animation and then Finish with its animation.
androidasked 9 years ago daniel12345smith 2,120 -
2
votes1
answer368
viewsAndroid theme support (Themes) in custom components, using Appcompat-v7
I started using the Appcompat-v7, for use the concept of Material Design in my project. Only now I realized that my custom components even inherited from native components, are not applying the…
-
2
votes0
answers433
viewsHow to destroy previous Ragment?
In my Android project I navigate between fragments, in one of these fragments, there is a list that receives information from a json. It appeared the need to update this list every 1 minute, I’m…
-
2
votes3
answers552
viewsHow to convert pixel to dp?
I made an application that is a form, and I did everything via code without using xml, so my textViews and Edittexts were in pixels. No tablet works well, but mobile with smaller resolution was all…
-
2
votes1
answer107
viewsWhich event shows if the android keyboard is active or not?
There is some event or method that shows if the keyboard is active on the android screen, because I need to do this check in a Fragment.
-
2
votes2
answers129
viewsUsing Fragment, Activity Error
I am creating an app and would like to know where I am missing, ta working, but in error Fragment Activity. package com.example.ronysueliton.patospizzas; import android.app.ActionBar; import…
androidasked 9 years, 7 months ago Rony Sueliton 313 -
2
votes1
answer369
viewsError in CPF validation
I’m trying to do a validation on CPF and I’m finding problems. When I type in any number that is not in if, it inserts into the seat normally, but when I type numbers from inside the if I’d like him…
androidasked 9 years, 7 months ago Carlos Leandro Ferreira de Alm 339 -
2
votes0
answers313
viewsGiroscopio in android studio
How do I use Giroscopio in android studio to find out which direction the vehicle with the device is going in? Via GPS.
androidasked 9 years ago Danilo Moura Raimundo 21 -
2
votes3
answers1110
viewsI have 5 threads running in parallel. How do I know when they’re all gone?
If I make one join for each of them, they will perform in sequence, one at a time. I needed to start the 5 in parallel and know when they all finished to do something. Does anyone know if and how…
-
2
votes1
answer349
viewsSnackbar with Action Button not aligned to text
Hello, I wonder why my Snackbar doesn’t get the text aligned with the ActionButton, this happens only when the text is too long. I am placing an example image. Do you know how I make Snackbar to get…
-
2
votes1
answer174
viewsHow to know what "MATCH_PARENT" will look like when the view is drawn?
I’m using this code: LayoutParams par = new LayoutParams(40, LayoutParams.MATCH_PARENT); The second paramentric, the LayoutParams.MATCH_PARENT which represents the height is the size of a horizontal…
-
2
votes1
answer673
viewsHow to create Android app that uses native mobile phone software such as camera, gallery, etc
How do I use mobile resources ? For example: I create an app, that when the user clicks on "Such" button, open the camera of the mobile phone... or the gallery... or alarm clock. I wanted to learn…
-
2
votes2
answers385
viewsError in Mysql connection and Android application
I’m having an error trying to make the connection between my App and the Mysql database. I am creating a direct connection to my bank, I know the best way would be to use a webservice, but I am…
-
2
votes1
answer52
viewsHow to continue selecting after onItemLongClick?
I have a listView,who has a method onItemLongClick that when clicking selects the clicked item. I would like to know how to continue selecting with just one click. If anyone can post an example I’d…
androidasked 8 years, 12 months ago Eduardo Bonfa 149 -
2
votes1
answer58
viewsParameter that controls camera brightness on android
I imagine it’s some parameter in Camera.getParameters(), but I’m not sure what to look for. I’ll try one by one, but if anyone knows what it is it’ll save me a lot of time.
-
2
votes1
answer36
viewsCapture values via a button
Good night ! I am developing an app to perform calculation of the amount to bill from labor to customers according to the type of service. However I’m having difficulty in the last screen where will…
-
2
votes1
answer401
viewsLogin facebook opening alone on android app
I am creating an android application that login with facebook. This is already working, but something is happening that I am not able to solve. According to the examples of the facebook…
-
2
votes0
answers37
viewsWhen using setupWithViewPager lose tab titles
I have a tablayout which contains a Viewpager, and I own two Ragments. When I changed the screen by clicking on the tab1 or tab2, for example, it changed the normal tab, but when I used the finger…
-
2
votes1
answer71
viewsCheck text from file
I have a text file with the following content: Name: Number: Password: What I want to do is read this file and check if after : it has some character. Another question on the same subject: How can I…
-
2
votes1
answer320
viewsHow do I format the value of a double variable on android?
I am making a small application that aims to calculate the BMI of a person, but I am not able to format the output of the value to only two decimal places always looks like: 22.222222 or 31.23232322…
-
2
votes2
answers850
viewsHow to update a listview from the bar action button
I would like to know how I can update a listView from a button on action bar. By clicking this would be updated by taking the data again from the site https://parse.com. This listview picks up…
-
2
votes1
answer1436
viewsGo to another Activity from a list item with parse.com site data
I would like to know how I could do to call another Activity, through a list item where the data is used from the site parse.com. For example, I have this code: public class ListViewAdapterPizzarias…
-
2
votes1
answer90
viewsDoes Webservice (Asynctask) only work with Debug?
I’m making my Android app upload data from a Webservice. In it, I will load date data into a Spinner and, when it is complete, the same dates will load other data types into a Listview, but for now…
-
2
votes1
answer170
viewsProblem updating appcompat-v7
Hello I have a project that is using the version 23.1.0 library com.android.support:appcompat-v7. I was upgrading to 23.1.1 and the following error occurred: Failed to resolve:…
-
2
votes1
answer1518
viewshow to simply place an icon in actionBar?
I want to put an icon on my Actionbar already searched for this information here on Stackoverflow, but the answers I found are very complicated (I’m beginner) and so I wanted to know if it has a…
-
2
votes1
answer101
viewsAndroid/IOS vs Java
Suppose I have an android or Ios app I have a system made in java ee to publish data that will be downloaded from the internet by the application. All this is inside a web server How do I…
-
2
votes1
answer296
viewsHow to create new directories in Android Studio?
I am creating an application in Android Studio that has many screens and many files layout.xml. I wanted to organize them into sub-folders, is possible? I tried to edit the Gradle Script, but many…
-
2
votes1
answer49
viewsProblem with database data visualization
In each code I explain the problem. public void onCreate(SQLiteDatabase bd) { bd.execSQL("create table tabela(_id integer primary key autoincrement, data text not null, orcamento text not null);");…
androidasked 9 years, 7 months ago Rodrigo Lins 27 -
2
votes1
answer115
viewsPhonegap + Cordova + sqlite
I have a problem with a stoned database file. I created a . db file with all columns and contents and compile it along with apk. The last change I made in the bank after performing a new build is…
-
2
votes1
answer3334
viewsChange background color for Textview
I would like to know how to change a background of a text view, because I’m pulling the data from the site parse.with, but I can’t do it, what I’m trying to do is this: public class Pizzarias…
-
2
votes0
answers48
viewsHow to call web service on test with MONKEY
I am using MONKEY for stress testing, but my application has several calls to webservices in several activitys. The problem is that Monkey never arrives at activitys that are opened after web…
-
2
votes1
answer221
viewsHow to recover Activity, instead of creating new, when you click on the notification?
In my app when activity goes to the state onPause I trigger her notifications via Notifitionmanager. I wish she could be restored to the state onResume if a click in the notification. Through this…
-
2
votes1
answer435
viewsHow to place border on a selected item in Listview?
How to place a border on a Listview item when the user selects that item in the android app?
-
2
votes0
answers520
viewsApplication Cordova does not open on device when command 'RUN' and does not log errors
I have an HTML application and I can’t get it to run on android in test mode. I’m using Mac OS, but when using Linux everything worked perfectly with the "Cordova run android" command: the app was…
-
2
votes0
answers86
viewsFragmenttransacion with Fragment Activity
I’m using the Navigationdrawer to display the page options, I adapted one of them to Fragmentactivity for the call of some functions right. But when declaring the transaction of the screens, it does…
-
2
votes1
answer123
viewsStart Development App Result Board Games
I want to develop a android platform app who manages the scoreboard of board games between my friends. I know almost nothing about android, and I need to start. One of my questions is how to save…
-
2
votes1
answer313
viewsFragment:error inflating class Fragment
I’m using Fragment to do the navigation "drawer", ie on topics with options, but I’m found this error, but I’m not sure what it is, follows what it says in logcat: 12-22 20:08:25.774…
-
2
votes2
answers221
viewsMemory problems when loading many images in listview
I made an application where it is possible to take a photo and save its path in the database and then show in a listview along with other information. Everything goes well when there are few images…
-
2
votes1
answer1405
viewsI wonder if it is possible to have a phone mask in a text View
I would like to know how to have a phone mask in a text View field. In my case I have a listview with contacts where in each line of this listview appears the name of the contact and the phone. I’d…
-
2
votes1
answer915
viewsHow to change the size of an Android imageView via code?
I tried using Layoutparams but it didn’t work, I tried layoutParams.width = 80; and it didn’t work. Does anyone know how to do that? I thank you in advance. In my case the picture got too big I…
androidasked 8 years, 10 months ago daniel12345smith 2,120 -
2
votes2
answers1877
viewsHow to check if there is any sqlite database in the application?
I have the following dilemma: I’m setting up an app where I perform a synchronization between a Mysqle database and Sqlite using a Webservice. My database is already available in Mysql, and in my…
-
2
votes0
answers115
views -
2
votes1
answer141
viewsPrevent multiple clicks on Android
I have a user registration screen where I avoid the possibility of multiple clicks to the sign up button through the method View.setEnabled(). Proceed as follows: in the method onClick(), from the…
androidasked 9 years, 6 months ago Geison Santos 4,428 -
2
votes1
answer203
viewsGoogle api v2, I already have the key, however, provided by third parties, how to enable without SHA-1?
I have a key to enable the Google Maps V2 on android, I did everything I had to do in Manifest and Gradle, when running the request, Fragment appears named Google, however, does not load anything,…
-
2
votes1
answer1125
viewsI would like to find the distance in km between two markers how can I do?
I have two markers in this code and I want to find the distance in miles between them. private void setUpMap() { Database_Congregacao database_congregacao = new Database_Congregacao(this); int…
-
2
votes0
answers2482
viewsHow do I use google drive API for sending and receiving audio?
I wanted to know how I can send and receive audio files via Google drive. I never used the Google Drive API, I’m starting now. I did some research on the Internet, but I couldn’t do it. Some…
-
2
votes2
answers652
viewsAndroid apps, what are the advantages and disadvantages of the tools?
Between creating native apps, using HTML, CSS and Javascript together with Phonegap, or C# with the help of Mono, what are the advantages and disadvantages and which context best applies?…
-
2
votes2
answers194
viewsHow to open an image inside an Imageview in its original size?
I have some images within imageView, and I needed to open these images in the original size when I click on them. Does anyone know how to do that? Thanks in advance.
androidasked 8 years, 10 months ago daniel12345smith 2,120 -
2
votes1
answer890
viewsChange the Listview Background color when the key value is found
In my app I have a ListView which is provided through BaseAdapter. Then in the BaseAdapter i have an IF statement to change the list background when the value of a variable was equal to the value of…
-
2
votes2
answers880
viewsHow to put animation "wait" on Android?
I wonder how I put an animation of "Wait" while doing a heavy task on Android. In case, when the user type the zip code I want to run an animation asking to wait while I make the request. private…