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
-
0
votes0
answers117
viewsProblem while saving file on Android Lolipop from second generation moto-g
Good morning, I have an app that works normally on all versions of Android from-the 2 to the first generation moto-g version, this app is very simple, I describe the details I need to add in the…
-
0
votes1
answer97
viewsManipulating android imageView
I have an image view on android, I wonder how can I exchange this image via code ? Thank you
-
0
votes1
answer69
viewsHow to kill all dialogs on the screen at once?
I do a check and play 3 dialogs on the screen, but if the user cancels one of them, they should all close. Does anyone know how to do this? I don’t even know if it’s possible. I thank you in…
-
0
votes0
answers161
viewsHow to calculate the hash value of a specific byte array
How I calculate the hash value of a specific byte array? I’m using MD5 encryption and the code to calculate what I’m using is this: byte[] dataRegCodeToCompare = md5.digest(toHash); The variable…
-
0
votes1
answer32
viewsHow to close Drawer after changing orientation?
How do I get my Drawer to close after a change of orientation? Example: At first I opened the Drawer, right after I turned my smartphone horizontally, now I want this Drawer that April previously…
-
0
votes1
answer74
viewsStart a new Fragment when searching
I need to know how when people give enter in the search bar, the application pass what was typed to another Fragment and start it. Currently I arrived at the following code, but it is not working.…
-
0
votes1
answer154
viewsMeasure access performance to Android’s Sqlite database
Good afternoon, How can I measure access performance to Android Sqlite database? More specifically database entry and selection.
-
0
votes0
answers47
viewsAndroid does not recognize parse.parse.initialize
I’m on my first project with Android consuming the parse API. I followed the tutorial to the letter and always get the same error: could not find method com.parse.Parse.initialize I use ADT with…
-
0
votes1
answer170
viewsIonic project does not run on android
I’m trying to run an Ionic project on android but when I run ionic run android returns an excesses. How to solve ? Ionic info Your system information: Cordova CLI: 5.3.3 Ionic Version: 1.1.0 Ionic…
-
0
votes1
answer23
viewsVote indicator
I want to make a simple app for android vote count. Only instead of showing numbers, I want you to show a bar that as the vote goes up, it goes up, it changes color, like it does in "Who gets…
androidasked 9 years ago Carlos Ximendes 267 -
0
votes1
answer45
viewsUse android layout randomly
Good people, I intend to "call" a layout randomly, the problem is to call it, I thought to store all layouts in an array and based on the randomly generated numbers call the layout at that position…
-
0
votes1
answer96
viewsUpdate Android Application Data
I don’t have the project running yet, but I’m developing an app that shows the menu of a restaurant Universitario. The part I’m in doubt about is updating the menu weekly. I already used FTP to…
androidasked 9 years ago Gustavo Rotondo 149 -
0
votes1
answer535
viewsListview in numeric order - Android
In my project, I have to leave an option for the user if he wants to view the list by mileage order or by price. In my case, I’m filling out this list for a ArrayAdpter, through a class to inflate…
-
0
votes0
answers49
viewsDoubt with CPF validation
Good afternoon, I’m trying to do a validation on Cpf and I’m finding problems... When I type in any number that is not in the if, it enters in the bank normally, but when I type numbers from within…
androidasked 9 years, 7 months ago Carlos Leandro Ferreira de Alm 339 -
0
votes0
answers672
views -
0
votes0
answers88
viewsHow to create table with android email plugin
Hello! I’m breaking my head since morning and can’t make it work. Using only these HTML commands i need to create a table. Follow the commands if you do not want to enter the site: The table needs…
-
0
votes1
answer140
viewsPassing an Editview name to a Textview between Fragments
Guys, I have a project that uses a Drawer navigation, so Mainactivity’s Mplements is already "busy", so many methods of doing this don’t work in my case. I have a mainactivity that controls the…
androidasked 9 years, 7 months ago Rodrigo Lins 27 -
0
votes2
answers934
viewsInsert selected SPINNER item into SQLITE
How to identify the selected item in the SPINNER and insert it into the SQLITE database. I can do the Insert in Sqlite using the data provided in Edittext, however I am not able to create a way to…
-
0
votes1
answer293
viewsHow to create a Datepickerdialog pre Lollipop
I’ve done everything and I couldn’t make a Datepickerdialog like this... for pre Lollipop versions. The code I’m using for now: DatePickerDialog dlg = new…
-
0
votes1
answer80
viewsOnscrolllistener does not work Onitemclicklistener
Onitemclicklistener does not work when clicking on a survey client. Hello. I have a screen that is a Listactivity, when I open it, it brings customers perfectly from the bank, running the…
-
0
votes1
answer842
viewsIs there a graphical interface Apis for Graphs on android?
I searched a lot on the Internet but found nothing corresponding in Portuguese and in English I found some things but no resolution about it. Does anyone have any knowledge about the existence of a…
-
0
votes1
answer807
viewsHow to Share Image and Text
In my application I have a share button, until then it only shares an image I was wanting it to share a text too , a reference of my application the name Code I use to share image int drawableId =…
androidasked 9 years, 7 months ago Ilgner de Oliveira 1,098 -
0
votes0
answers44
viewsIndependent datetime
I am developing an application for password generation "time on based TOTP", but I’m having difficulty when the mobile time zone is disabled or the user modifies the date/ time. I’ve thought about…
-
0
votes1
answer1292
viewsLoad images in listview
I have a listview with this layout layoutlist.xml <?xml version="1.0" encoding="utf-8"?> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content"…
androidasked 9 years, 7 months ago Ilgner de Oliveira 1,098 -
0
votes3
answers11860
viewsTextview break lines
My code opens a net txt file and puts it in a textview. The problem is that it joins all the lines together. How to break the lines? Another question is how to delete the tags from the text file and…
-
0
votes1
answer431
viewsFragment within Viewpager calls no method
I have an activity (MainActivity) containing a PagerFragment who owns a ViewPager. On the pager I have 4 different tabs. Within each tab I own one Fragment 1 which can be replaced by using the…
-
0
votes1
answer2031
viewsDistorted background image in Android Studio
Personal created an image for the background of my app, I made it according to the resolution of the smartphone I was testing, but it was distorted, then I remembered I was using Actionbar, so the…
-
0
votes1
answer70
views"nullpointerexception" error when switching from Activity
I have a problem and I wish someone could solve it for me. I am new in the field of java and android programming, I developed a project in which I tested and in debug mode ran everything right. But…
-
0
votes0
answers88
viewsURL Restful service working, but on ANDROID returns null
I’m trying to develop a service Rest for my father’s store, I’m able to bring the results in JSON through the URL, but when I try to execute the same method on android to try to fill the object, it…
-
0
votes0
answers183
viewsProblem while passing database data to Textview android
I am unable to display database data to Textview. BD public MessageEB buscarConfiguracoes() { String[] colunas = new String[]{"data"}; Cursor cursor = bd.query("dados", colunas, null, null, null,…
androidasked 9 years, 7 months ago Rodrigo Lins 27 -
0
votes1
answer40
viewsProblem with database data update (Android)
I can’t update the data in the database. In the database class are the two update and search functions. public void atualizar(MessageEB dados){ ContentValues valores = new ContentValues();…
androidasked 9 years, 7 months ago Rodrigo Lins 27 -
0
votes0
answers159
viewserror when selecting android gallery image in my annotation app
Guys is the following, I have a very simple diary notes app in which has an option to select and attach a photo in the note, the photo can be taken at the same time with the camera or imported from…
-
0
votes2
answers60
viewsIntegration of TSF with Android Studio
I wonder if someone has already done or knows how to accomplish the integration of Android studio with TSF. So far only found forms of integras with Intellij.
-
0
votes0
answers52
viewsError when sharing android app by facebook sdk
I want to share the link of my android app by facebook using facebook sdk with a Sharebutton the facebook application starts but soon closes and launches the following error. I/ERROR:: Failed to get…
-
0
votes0
answers99
viewsHow to export database?
I need to export my database to a text file. I’ve seen some questions like this around, but none with a cohesive or coherent answer. Follows excerpt from my code: //ACAO DO BOTAO CADASTRAR public…
-
0
votes1
answer231
viewsHow the Google Play Books app "blocks" books
We are developing an application similar to Google Play Books for the Institution I work with, I would like to know how the process works for the file to be "private" to the application, blocking…
-
0
votes0
answers55
viewsSave Data from Notification
I’m trying to implement a Notification daily. The time of this Notification is chosen by the user through a TimePicker that appears when clicking on a LinearLayout consisting of 2 TextViews where…
-
0
votes0
answers46
viewsHow to go to a second Activity if user is logged in facebook sdk
Next, an app with a login screen with the facebook login button is implemented right.. wanted to know how to do if the user is already logged in go straight to a second Activity, if not back to…
-
0
votes1
answer47
viewsI can’t create second activity
I can not create a new activity in Android Studio, appears the message "Package name is not a Valid package name"…
-
0
votes0
answers50
viewsIoexcepion on Samsung to get Media Player file
I’m having a little problem, I’m running a video in the background of a layout, in other devices works normal but in Samsung I can’t access the video and take the Exception java.io.IOException:…
-
0
votes1
answer95
viewsWeb Service Images Java ZIP Android
I need my Android app to download a large shipment of images and store on the Smartphone disk, but I need to decide what would be the best format to download these files, because the images should…
-
0
votes0
answers216
viewsError 400 android for web service
I’m getting error 400 when sending parameters to the web service. @POST @Produces("application/json; charset=utf-8") @Consumes("application/json; charset=utf-8") @Path("realizarvenda") public String…
-
0
votes1
answer756
viewsHow to check if a server’s response returns (200 OK) in java ?
I am developing an android app, and would like to check if a site or a URL is active
-
0
votes1
answer171
viewsI cannot import the lib aacdecoder correctly
Although I have already unpacked the lib contents in both the libs folder and jniLibs folder, I can’t import the classes. I’ve already rebuilt. Any help is welcome. Thanks in advance. UPDATE ->…
-
0
votes1
answer1859
viewsIntent to call FACEBOOK
The following is this shoot an Internet and the same call the Facebook app. I managed to send email Intent sendIntent = new Intent(Intent.ACTION_VIEW); sendIntent.setType("plain/text");…
-
0
votes0
answers58
viewsAuthentication failure - Google Maps Api
Hello. Since last week I have been having a problem with my application that uses the Google Maps API V2. Simply, my key has stopped working. After that I have created new keys and it no longer…
-
0
votes1
answer263
viewsHow to generate thumbnails of a bitmap using Asynctask?
I have a Fragmentactivity that has a listview, in each item there is a button to open a Dialog, in this Dialog another listview is run with an Adapter that has a Textview and an Imageview, the list…
-
0
votes0
answers94
viewsAndroid app can’t pull Wordpress data
I developed an application in Java for Android, together I installed in my server in Hostinger Wordpress with the REST API. However, after running the application on my mobile, it can not download…
-
0
votes1
answer278
viewsHow to view posts from a facebook page?
I want to view posts from a facebook fanpage in an app. I’ve been doing some research and some people helped me and told me to use the Facebook API. Pis well, I am using, but, as facebook does not…
-
0
votes0
answers78
viewsGCM - message not enough and no error
https://github.com/analistacarlosh/google_cloud_messaging When I send on the server returns me successfully sending, according to the following message:…
androidasked 9 years, 6 months ago analista.carlosh 63