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
answer362
viewsAndroid Studio 2.1.1 - Rendering Problem
My Android Studio 2.1.1 (Windows XP) is giving problem when opening: the virtual mobile screen is gray instead of white. With this, any item I insert into my project is invisible.…
-
1
votes1
answer270
viewsHow to open the file manager and when clicking on a photo, change the src of an Imageview?
I am developing an APP where it is possible to create an account, so I want to know how to click on Imageview, open the smartphone gallery, and when clicking on an image, the Imagrview src was…
androidasked 8 years, 4 months ago Diego Sousa 41 -
1
votes1
answer29
viewsGray button on an old version of Android
I’m making an app, where the buttons are green,and turn green when I test on Android 6.0, but when I test Android Kikat the button turns gray.
-
1
votes1
answer231
viewsApp Cordova does not work as expected
I made a simple application using Apache Cordova in the Visual Studio 2015, and added the Angulajs. When I test on Riple emulator works as expected: So I’m going to APK to test on the physical…
-
1
votes0
answers42
viewsSelect cities with Sharedpreference
Only when I click on "Itaborai" that saves the preference, how do I select the other items in the list view among other activitys? As an example, the customer clicked on "Itaborai" when he opens the…
-
1
votes0
answers72
viewsActivity does not open after thread
I’m on an Android project and I have an Activity that doesn’t open, well starting from my main Activity I already have a button that calls another and everything occurs as expected I can make the…
-
1
votes2
answers561
viewsHow to avoid automatic closing in Dialogfragment?
I developed a login screen, as can be seen in the figure below, following the section "Creating a Custom Layout" of official documentation. The only problem I’m facing is that the dialog closes…
-
1
votes1
answer37
viewsJava Android - Save Events
How do I save events to an Android Java APP? for example, a program has a checkbox, I open it and leave, when it returns it will be unchecked.How do I make the information that she is checking is…
-
1
votes2
answers136
viewsHow to generate a unique code for each device?
I need to do a draw and for that a unique code has to be generated for each device. Even uninstalling and reinstalling the app, the generated code has to be always the same. How to solve this?…
-
1
votes0
answers15
viewsOutOfMemoryError x loadAd(adRequest) x AdActivity
Good night. Someone knows the class AdActivity? And does anyone know if I can use it without a problem finish()? Context acontext = null; AdActivity adActivity = (AdActivity) acontext;…
-
1
votes1
answer975
viewsGet method values to have result in ANDROID calculator
Friends, now the doubt is the following, I need the operation "+", be present to accomplish the sum, but always leave 1+2 and never the two make the sum. Does anyone have any idea what it might be ?…
-
1
votes0
answers58
viewsProblem saving camera image to server
Come on, guys, I’m having a problem saving a camera image on the server. I put a standard image in my Image View and this image is clickable, triggering the android camera. When the photo is taken,…
androidasked 8 years, 4 months ago Grégori Machado 65 -
1
votes1
answer412
viewsHow to add a view dynamically to android as registered in mysql
I would like to know how to add a view (Relativelayout) dynamically in my xml, as records are found in my Mysql BD... (My connection is made through Volley lib)
-
1
votes2
answers96
viewsNullpointerexception when deleting register
Good morning. I have a problem I can’t solve. I am developing my first Android app and bumped into this error, Sqlite can not work with Context. I did some research and I couldn’t find a solution. I…
android sqlite nullpointerexception android-context android-recyclerviewasked 8 years, 4 months ago Charles Presidente 91 -
1
votes2
answers384
viewsError while removing Arraylist item
I’m "playing" with the canvas (android) and I’m having trouble removing element from an Arraylist. The app works like this: The user clicks on the screen, a ball appears that goes up but I want to…
-
1
votes1
answer53
viewsError launching app and "Run As" menu with no options
I have an application, the code has no error, but I do not see the option to select the emulator, see the image, I’m having this message: The Selection cannot be launched, and there are no recent…
-
1
votes1
answer84
viewsHow to upload a video to a screen?
I’m making an application in Android Studio where I have the main screen (Mainactivity) that has a menu with several links and one of them calls a Fragment(Videofragment) where when loaded should…
-
1
votes1
answer51
viewsHelp To Cancel Asynctask
Good afternoon, I use this method to receive the result of a search, and implemented in the code the oncancelled to stop my Asyntask , but the same not for the process, when I go to another screen…
androidasked 8 years, 4 months ago Ronaldo Santos 99 -
1
votes0
answers178
viewsHow to remove SMS after it has been sent?
I’m trying to send the SMS through Smsmanager and then delete it from the items sent. I am running the following code: SmsManager sms = SmsManager.getDefault();…
-
1
votes0
answers26
viewsPush Notification opening new copy of the app?
I’m trying to create a push notification but push always opens a copy of the application and I want it to open my application again if it is in the background. How to do this ? I’m trying like this…
androidasked 9 years, 2 months ago FernandoPaiva 1,562 -
1
votes1
answer58
viewsHow to stay 'listening' to see if SMS arrived on Android
I am implementing a Two-Factor Authentication service where I use a gateway for sending user registration validation codes. I want to implement an automatic check on android to check if the message…
androidasked 8 years, 4 months ago Mateus Carvalho 1,494 -
1
votes1
answer246
viewsAnimate circular form Activity
I would like to make a transition effect by calling an Activity. When the image, in this case a circular, is pressed Activity grows from a circle with the same radius of the image until it fills the…
-
1
votes1
answer101
viewsStill need to restore Activities when rotating the phone?
A little while ago, every time an Android app was developed, you had to worry about the data that was on the screen when you rotated your phone (change the orientation). As explained in that post it…
androidasked 8 years, 4 months ago Jorge Rabello 105 -
1
votes1
answer46
viewsApplication returns null when instantiating custom component
Good night. I need to make a component AutoCompleteTextView search the information directly from the server and for this I am following the following article:…
-
1
votes2
answers492
viewsforce user to fill in edittext
I have some Edittext and I need them all filled in, in case the user does not fill in and try to press the button to continue the text boxes should show an error. put that button in the action bar…
-
1
votes2
answers146
viewsHow to close a running audio
I’m creating an application that performs a sound or a song, but I can’t make the sound stop. This way I am forced to stop the application manually so that the sound stops. How can I stop the music…
-
1
votes1
answer53
viewsLink model information to a Listview correctly
To retrieve an object from my domain from the event AdapterView.OnItemLongClickListener linked to my Listview added to the Viewholder of the Adapter used by this a reference to my domain object.…
-
1
votes0
answers30
viewsI can’t create a listview in google maps API for Android
I’m creating an Android app with Google Maps API that allows me to map accessibility problems of the streets of Rio de Janeiro. My program today allows the user to perform N map demarcations, look…
-
1
votes0
answers60
viewsUnpopulated listview on all tabs on first access
Hello, I have an Android application of an electronic questionnaire. Should be presented the same questionnaire in tabs, are 7 tabs. The application downloads web issues from an XML. I’m using the…
-
1
votes1
answer110
viewsView Spinner Progressidialog?
Well I need to do a long task so I did a Progressdialog to inform such task, however the spinner that should be appearing seems hidden or something. protected void onPreExecute (){…
-
1
votes1
answer122
viewsHow do I only get links from my domain to open my application?
If I click on a link related to my site, I would like in the list of applications that can open that link (Google Chrome, UC Browser and etc), also appear my application, which is a very simple…
-
1
votes0
answers88
viewsShow a Webview history in a listview that is in another Activity
Hello, in my project I have to display the history of a Webview in a Listview, I already have a code for it but it only works if Listview and Webview are in the same Activity. What I want to do is…
androidasked 8 years, 4 months ago Just a Anonymous 11 -
1
votes1
answer177
viewsDisable GPS via code on Android 4.2 up?
How can I disable GPS via code, without user intervention?
-
1
votes2
answers33
viewsEvent listening in a lib
I’m building a lib but at the end of the process that it performs I need you to let me know that it’s over, how can I implement it? any ideas? In the project that uses the lib do so: Lib lib= new…
-
1
votes2
answers199
viewsI’m not able to exbir a listview that uses an Arrayadapter<String>
I have a main class that inherits from Activity where I have my views, but I needed to create another class that inherits Arrayadapter. However I am not able to present my listview, the strange…
-
1
votes1
answer695
viewsProblems connecting to my computer using external ip
I am trying to make a java application that will serve as a server so that an android application establishes a communication by Socket with the computer that my program is open on the port that it…
-
1
votes2
answers421
viewsRetrofit 2 Android objects
There’s no way I can get the valuables. The value received by JSON are these: { "status": true, "valores": { "galo": { "nome": "galinho", "valor": 300, "ultima_consulta": 1386349203, "fonte":…
-
1
votes2
answers459
viewsEdittext without Focus by Activity
Is there any command in the Activity that prevents a EditText to receive focus even with the user clicking? Or this can only be done by XML? I have a repository that is connected to a database and I…
-
1
votes4
answers2422
viewsHow to open a keyboard when you "focus" on an Edittext?
I have an Edittext where I used the requestFocus() to get his Focus. I put the setFocus(true) and the setFocusableInTouchMode also. When I open Activity, requestFocus() works, but does not open the…
androidasked 8 years, 3 months ago daniel12345smith 2,120 -
1
votes1
answer43
viewsValues of Activity fields are deleted after event in Dialogfragment
I have an Activity that has some text fields. Two of them open a Fragmentdialog when clicked. Dialogs display a list of values that are taken to the Activity via Intent when selected. When this…
-
1
votes0
answers1394
viewsKernel update system on Android
Browsing the site https://android.googlesource.com/ I realized that there are many people making changes to the source code of the Android system. I even know that bug fix patches and…
-
1
votes0
answers169
viewsOverlay imageviews
I want to make a layout with images superimposed this way but I can’t overlay the images within the same Activity or Fragment someone can help me?…
-
1
votes1
answer46
viewsIs it possible to have interaction when updating my app?
How can I change sharedPreferences or add a folder at the time of my app update? I have a C app that I’m running on Android with the SDL library and every time I update the app the application files…
-
1
votes0
answers77
viewsArduino android and socket
How to make Arduino communicate with android using socket network protocol, to send and receive data? Traffic information captured in Rduíno, in this case of humidity and temperature.
-
1
votes0
answers260
viewsINTENT call not found
The Delphi application calls a java application Activity and in the call displays the following error: android.content.Activitynotfoundexception: Unable to find explicity Activity class…
-
1
votes1
answer384
viewsWhat is the ideal network protocol to communicate an App with Arduino?
I realized the creation of an application through Android Studio. I have a Mega Rduino, Shild Ethernet and infrared sensors. I would like to communicate my website with my application. Ex: I was…
-
1
votes1
answer219
viewsUser Resize photo in Imageview
Good morning, I would like to request some information source, tutorial or example, how to resize a photo in an Imageview, because I did not find anything about it in my searches. I am developing a…
-
1
votes1
answer153
viewsClick on the Gridview photo and show in another Activity
I’m developing an app that contains a gallery and found a tutorial that showed how to fill the GridView with photo taken from camera. However, I’m having trouble doing something for when the photo…
-
1
votes2
answers588
viewsPass Activity object id to another
I’m trying to pass the id from my object to another activity using Serializable, but it’s returning to me a damn mistake that I can’t fix. Obs: my object already implements serialiable My code is…
-
1
votes1
answer549
viewsHow do I update a proprietary app?
I have an app that should only be used by a number x employees, so it’s not on the playstore, but wanted to know how I can make available updates and install them.