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
answer2438
viewsOpen App when booting android
I made an Android App on Intelxdk, is working normal, now I want it to open automatically when I turn on the phone. I know there are some apps on playstore that do this, but at first I didn’t want…
-
2
votes1
answer403
viewsError installing Android Studio
Guys, I have the following error when installing Android Studio: I have already set the variable, and already installed the JDK Even so, the error persists!…
-
2
votes1
answer8939
viewsHow I use the Progress bar
I have an android app, which brings latitude and longitude. I wish the moment he’s ordering him to put up a bar for feedback . follows the location code private void start(){ locationManager =…
-
2
votes1
answer386
viewsProblem while doing method that checks which button was clicked
I am creating a screen with 3 buttons in which each button clicked will need to be redirected to a different site. I implemented this code, there is no error, I can even click the button, only when…
androidasked 8 years, 6 months ago Carlos Diego 683 -
2
votes1
answer244
viewsIs there a session variable in Json [web service]?
Well, the mini world of my project is as follows:: I am creating an application, where I will consume a database by the json method, where I validate the logged-in user, however when I am asked to…
-
2
votes0
answers60
viewsHow to discover android version programmatically?
I’m new in android and I need to get the version of Android Device in a direct way, without having to consult, for example: if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB_MR1) Has as?…
-
2
votes1
answer718
viewsHow to create button in a Simpleadapter with event click excluding item
I set up a list in an android app that is a simple list using SimpleAdapter. What I need now is to delete the item from the list, but I don’t know how I would do it because I couldn’t get the…
-
2
votes1
answer44
viewsCorrectly exchange text using Textswitcher
I need to use a component TextSwitcher with the intention that when the user moves this TextSwitcher to the right as well as to the left the text of the same. For this I created a variable of type…
-
2
votes1
answer90
viewsError returning list to Activity
I made an implementation on Android to return all bluetooth devices (paired and connected) in a list. It all worked properly to return the paired devices. For connected also worked, if I go by debug…
-
2
votes1
answer372
viewsSqlite MAX function - Grab the highest value
I have in the Sqlite a field called date_start, which saves the date of a walk. This one, it’s like Long and keeps the date on milisegundos. I would like, through a query, to return the highest…
-
2
votes1
answer58
viewsAuto Scroll for Specific View
I have a Scrollview with several elements inside, Linearlayout, Images, Textviews etc. In the header, above the scrollview I have some buttons, in the Onclicklistener of one of them I want to make…
androidasked 8 years, 5 months ago Marcelo López 129 -
2
votes5
answers1534
viewsIonic 2 - Status Bar
I am unable to change the color of my Status Bar with Ionic 2. I have checked the documentation and am doing the following. app js. import {StatusBar} from 'ionic-native'; app.js (constructor())…
-
2
votes1
answer168
viewsWebsite does not open in my Webview
I made a browser using Webview, but when I call loadUrl(); it opens the page in the default Android browser. How do I open it inside my browser?
-
2
votes1
answer712
viewsForce keyboard opening
I have this dialog in my application public void alertaLocalizar(View v) { LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view =…
-
2
votes0
answers120
viewsVery slow Httpurlconnection implementation when running
I’m using the class HttpURLConnection to make the connection to a site that returns a JSON and I did the following encoding: URL url = new URL("http://hmkcode.appspot.com/rest/controller/get.json");…
-
2
votes2
answers1368
viewsHow to get the coordinates (X and Y) of a click on an imageview?
I’m making an application that has an image that occupies the whole ImageView, and when the user clicks at some point on that image, the X and Y coordinates corresponding to the image are obtained…
-
2
votes1
answer118
viewsInsert marginRight in a Textview from Java code
I made the following code to insert Textviews in a Linearlayout already defined. public void inserirLacunas(){ LinearLayout ll = (LinearLayout) findViewById(R.id.layoutLetras); for(int i = 0; i <…
-
2
votes3
answers852
viewsCache.properties, file not found
Hello, I installed Android Studio on my notebook (OS: Windows 10) and when I managed my basic application "Hello World" I tried to run on my mobile and appeared the following error: Error:Execution…
-
2
votes2
answers451
viewsTransforming Image into Base 64
I am transforming an image I send by camera in Base64 but the image is all black, I do not know what is wrong, follows below my code app.encodeImageUri(mediaFiles[i].fullPath); //Aqui envio o…
-
2
votes3
answers1384
viewsTurn Audio & Video into Base64
I wonder if it would be possible to turn videos and audios into Base64, I already posted a question related to transforming image into Base64 and you helped me, but now I need to do the same for…
-
2
votes1
answer106
viewsAlert works immediately if the time is longer than the closed Larm
This is the code I have : alarme.setRepeating(AlarmManager.RTC_WAKEUP, horas, 86400000, alarmIntent); The goal was to send a notification after 24 hours and it works after 24 hours the problem is…
-
2
votes1
answer262
viewsCheck if webview is loaded
I need to check if the webview is loaded in order to execute a javascript function that is found in the webview, but I don’t know how to check if the webview is already loaded 100%. follows the…
-
2
votes1
answer68
viewsWhat is missing from the custom listAdapter I created?
I’m looking to insert a listview into a Fragment. When I use the default layout "android.R.layout.simple_list_item_1" works smoothly, but I want to create a different layout with two text views per…
-
2
votes1
answer670
viewsHelp with connection to sql server 2008 and android database
I made, following a tutorial, the connection of Android Studio with SQL Server 2008 R2 (already existing), with which I was able to make the connection normally, only I have a problem. I can make…
-
2
votes0
answers308
viewsConvert ASCII Database Postgresql return to UTF-8 in Java Ksoap
Have app Android that consumes from a webservice where the database is Postgresql and the ASCII type. When I try to print the string returned in the app he defaults the lyrics with accentuation, for…
-
2
votes1
answer753
viewsUnderstanding Httpurlconnection, Outputstream, Inputstream and Buffered Writers requests for Mysql database use
I am developing an android application that will have access to a database MySQL using webservice. I saw some tutorials on the net and in a tutorial in English able to make the connection and…
-
2
votes1
answer291
viewsAndroid error while compiling missing lib - System cannot find specified file
Good evening, I had added some libs to my android application, but then I changed my mind and removed them but when I go to compile the code is giving the following error Error:Execution failed for…
-
2
votes1
answer90
viewsandroid.widget.Framelayout$Layoutparams cannot be cast to android.support.v4.widget.Drawerlayout$Layoutparams
I’m trying to close the Drawer when I click on an item, however I’m getting the error: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams…
androidasked 9 years, 2 months ago Douglas William 321 -
2
votes2
answers1306
viewsHow to know the orientation of the screen?
Which code perceives and returns the orientation of the screen? If the cell phone is standing or lying down ?
-
2
votes2
answers427
viewsWhat is the sequence of executions for Asynctask?
I need to synchronize data between the server and client application on Android and for this I created several classes ASyncTask, one synchronizes the Third Party, the other the Financial,…
-
2
votes1
answer313
viewsRecyclerview enviezada(diagonal) - android
I need to create a recyclerview, on android, whose items are uploaded, as per the image i tried to use a Shape on the background image but there is click problem. When I use Hape, clicking on the…
-
2
votes2
answers235
viewsHow to create an application without a title bar?
I intend to create a web app with a WebView. How can I create an application without a title bar that isn’t fullscreen?
-
2
votes0
answers46
viewsHow to obtain current Latitude and Longitude?
I’m creating an android app that should get the latitude and longitude of customers, I wonder if to do this without needing internet access
androidasked 8 years, 4 months ago João Filho Freire Lopes 107 -
2
votes1
answer4636
viewsWhat does alpha testing, beta testing and production mean in Google Play Developer Console?
I’m making my first app and when I was uploading to Google Play Developer Console I was in doubt in which area I upload because it appears 3 options: Alpha Test, Beta Test and Production.
-
2
votes1
answer1105
viewsAndroid - Align Layout above the keyboard
I have the following layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/view_login"…
-
2
votes2
answers61
viewsHow to update the background colors of the lines of a listview?
I have a listview that when I click on a line, it sends information to the server that returns a status. I needed to change the color of the line in my Adapter based on this information. How do I…
-
2
votes1
answer65
viewsAlertdialog.Builder with undue space
I have a space at the bottom of my custom Alertdialog. I don’t know why it’s happening, knowing that I didn’t set any margin or padding at the end of my view. If anyone can help. Here’s a real print…
-
2
votes0
answers76
viewsMy spinner always assumes the same image
I’m populating my spinner through an Arrayadapter but now to display it always shows the same image for all items. Can anyone explain where the bug is? Here’s my mainactivity public class…
-
2
votes1
answer335
viewsDoubt about the operation of Basedapter and Listview
My code is as follows: in the method getView of my BaseAdapter, i add all created views to a list (I need this to do a certain thing). In that same Basedapter, I have a method getQuantViews that…
-
2
votes2
answers599
viewsClick on a Menu, and change the icon of the others
Good afternoon, my question is this:: I have a submenu, where the user will select the map Layer. These Submenu’s will have an image of check in to indicate which one is selected. Follows the xml:…
-
2
votes2
answers3051
viewsPopular Spinner with Sqlite Database -
I have the following table in the database: CREATE TABLE turma(_id integer primary key autoincrement, nome varchar(20)) I need to fill out a SPINNER with this data, so that the class NAME is…
-
2
votes0
answers687
viewsDatabase with QRCODE
Good morning guys, I want to generate a QRCODE that pulls information from a database, on android I will make the QRCODE reader using some api zxing or Barcode. Has anyone ever done anything like?…
-
2
votes1
answer381
viewsCheck if GPS is enabled in all versions of Android?
I use this code to check if the GPS is enabled to display a dialog: LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); boolean GPSEnabled =…
-
2
votes0
answers39
viewsAndroid kills a tcpdump process
I have a Java app that runs on Android. This app starts a Tcpdump Process process = Runtime.getRuntime().exec("su -c tcpdump -s 0 -v -w /sdcard/capture.pcap. This works and generates the file,…
androidasked 8 years, 4 months ago Jonas Pontes 21 -
2
votes0
answers409
viewsError saving data to Sqlite database
create table works, but when you set the code to save, the application compiles but does not save. Which can be? SQLiteDatabase winlife; EditText edt_meta; EditText edt_tempo; EditText…
-
2
votes2
answers642
viewsWhen I install apk it is installing more than once the app
I am using Android Studio, while I run emular to install the apk, during the installation occurs to install more than once the app, getting two icons (two apps). How to solve this?
-
2
votes1
answer132
viewsAndroid Graphic Data Listing
Good morning, I have an application where I can visualize the customer data in a graphic and listing form, I wanted a suggestion from you which component I could use in mobile to view the data in…
-
2
votes1
answer359
viewsSave Edittext and Datepicker in Shared Preferences
I’m trying to save an edittext and a datepicker but they save both with a dice of the two. The date Picker when clicking Editext2 it opens the calendar where you click and it selects the date for…
androidasked 9 years, 2 months ago Bruno Marna 41 -
2
votes1
answer235
viewsRequest with Volley Webservice does not recognize json
I am trying to make a POST request with Volley Android, but my Webservice does not recognize the json file that is sent as parameter. With the Google Chrome Postman plugin Webservice consumes…
-
2
votes2
answers908
viewsMap of Google Maps does not open after the app launched
I’m using the Google Maps Android API, but it’s not working when I send the app to Google Play. In debug it works normally and when I run the application by Android Studio too, but when I launch the…