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
votes1
answer50
viewsAndroid Studio does not run script ( KVM MISSING )
Good morning, I have Android Studio running on my normal Windows , the emulator works too. I installed debian on oracle’s VMBOX, on the processor I enabled the VT-X/AMD-V option I installed andorid…
-
0
votes2
answers1327
viewsSkip a line in the textView
How to skip a line in a textView in Android Studio? Or even regarding the formatting of the text itself, leave some part in bold for example? there is something integrated automatic or I would have…
androidasked 8 years, 2 months ago Junior Klawa 331 -
0
votes1
answer1745
viewsPass data from an Activity to a Fragment
I need to pass the String result that is in Homeactivity for Mapsfragment, but I do not know how to do, I am beginner and do not understand much about the subject. Homeactivy package…
-
0
votes1
answer166
viewsWhen clicking a button the Keyboard closes using Ionic
Has anyone been there? , I would like the keyboard to remain open, like Whatsapp, messenger, that you send the message and the keyboard remains open. I’m using Ionic and developing for android 6.0…
-
0
votes1
answer50
viewsI can’t get out of the mobile app
I have following problem with phonegap, while trying to execute the following instruction: navigator.app.exitApp(); The android just leaves in the background the application, the screen fades even…
-
0
votes2
answers608
viewsHow to change the color of the floating button and insert a text into it
I would like to change the color of the floating button and put a small text but do not know how to do, could help me
-
0
votes2
answers724
viewsPass a string from an Activity to a fragment maps
In Homeactivity, I get the string result from the server, it contains all the data I need, separated by comma, so with the method I tried to pass to the Fragment of this error FATAL EXCEPTION: main…
-
0
votes2
answers243
viewsGoogle Play Services generating errors
Hello. To add the Google Play Services the dependencies, the image error is shown. I have no idea why, or how to fix it. The error is only shown in the file values-21.xml After remove the Google…
-
0
votes2
answers54
viewsHow to test an event on the keyboard (Editorinfo.IME_ACTION_DONE)
I am performing automatic tests and would like to know how to catch the and evendo IME_ACTION_DONE keyboard. Follows the code: @Test public void shouldSearchUserOnMap(){ SystemClock.sleep(2500);…
-
0
votes1
answer2246
viewsBest Database for Android Application
Guys, I have a question on which bank to choose for an android application: Sql Server or Sqlite? I have a little Crawler, which doesn’t need to run every time, just once, and when there’s some…
-
0
votes1
answer1273
viewsKnow if Activity is open (Broadcastreceiver or service)
I would like to implement a function that can check if Activity is open, because when I receive the notification through GCM (Google Cloud Messaging) if Activity has opened will only upload the…
-
0
votes1
answer76
viewsAndroid SDK error could not be found
After clicking on the file Main.xml this error appeared: Android SDK error could not be found. How can I fix this?…
-
0
votes0
answers226
viewsRadio Button Cardview(List/Recyclerview)
I have a Recycler View with Cardview questions. Each question has 3 radio button(yes, maybe, no) as the answer. Until then everything was working, except that; When we answer the questions. The…
androidasked 8 years, 1 month ago Eric Clauber 1 -
0
votes0
answers288
viewsSpinner with Custom Items (image with round and color background)
How do I make one for one Spinner be filled with items, containing an image and the round background with a color? See in the image what I need:…
-
0
votes2
answers234
viewsJSON treatment returned from PHP
I would like to know how to manipulate the data JSON below. If the structure is correct, and if not, how change the structure of it? { "postagens":[ { "URLIMG":"1.jpg", "NOME":"Jhonatan",…
-
0
votes1
answer124
viewsadMob interstitial delay
I have a problem with delay in some interstitial ads adMob, which can cause undue clicks, until these days it was all right, but I don’t know why from one hour to the next started with this. My code…
-
0
votes1
answer692
viewsClear old notifications the moment you enter the app
Someone knows how to clear old notifications from my app from the moment I enter the app through the Icon, not the notification itself. Whatsapp does this on android, but can’t find a way to work…
-
0
votes1
answer152
viewsMeaning of Warning: Possible overdraw
I have an app that shows Warning: Possible overdraw: Root element Paints background @color/md_elegance_green with a Theme that also Paints a background (inferred Theme is…
-
0
votes1
answer46
viewsNullpointerexception when query in Sqlite
I have a problem that is seriously damaging the development of my application. It aims to draw a question (not implemented yet, I’m using a fixed value for the question id) through a query in…
-
0
votes1
answer45
viewsSending Arraylist and General value to another Activity
I am creating an Activity, for example A and in it I have to add data of Releases (This class I Serialized), as name, type, etc... and I add also the updated general value on the screen and I have…
-
0
votes1
answer281
viewsError while running an Httpresponse in Android Studio
I am trying to send a string from an Android app to a PHP page, but when I send it, an error occurs in the method Httpresponse Response=httpclient.execute(httppost); In case anyone can help me with…
-
0
votes1
answer554
viewsBlack screen when compiling Android apk for Delphi X5 for Asus Live
I’m simply creating an application with a button, nothing else, just to run an app on Asus Live, but when I send the app to the phone it simply gets all black screen and after a while closes. The…
-
0
votes1
answer80
viewsTraversing String html
Good afternoon! I’m getting an html string to display in a webview. Inside that string may or may not be images, but for me to display it, I have to pass a base URL before src= "crmResources/,…
-
0
votes1
answer49
viewsWhat API to use to create a gallery
I need to create a gallery but I don’t know how to load the images from the card in the view. Can anyone help me which API to use?
androidasked 8 years, 1 month ago AlexSusama 117 -
0
votes1
answer82
viewsCreate themes in the Android app
Guys, it is possible to customize the color of the action bar on Android, because I’m developing an application and I wanted users to be able to choose the color of the application they like best.…
-
0
votes0
answers401
viewsExecution failure in Android Studio (Error:Execution failed for task ':app:preDexDebug'.)
In the execution of my project is occurring the error below and I have already searched in several places, but none fixed for my problem. I hope someone can help me. I’ve restarted Android Studio…
-
0
votes0
answers191
viewsRun audio on an Android Webview
How do I execute audio from a url using a Webview in this case a radio URL, follow the code below. WebView mWebView; mWebView = (WebView)findViewById(R.id.webview); WebSettings webSettings =…
-
0
votes2
answers488
viewsWhen should I create a class?
I know it sounds like a really silly question, but I’m starting now in the world of programming (focused on mobile). When I create an app it gets all the functions within the Activities, then I…
-
0
votes1
answer190
viewsI cannot fix this java.lang.Nullpointerexception error
I am creating a simple app to show the images in a kind of gallery but I am unable to show the images in the view by Adapter. Always give this error Nullpointerexception Adapter class: public class…
-
0
votes2
answers1014
viewsHow to solve the cannot find Symbol variable problem?
I am trying to upload an image in android studio but I have a problem that appears an error cannot find Symbol variable in RESULT_LOAD_IMAGE someone knows why this error my code goes below: Click…
-
0
votes0
answers51
viewsParse relational query in a single Httpget call
good morning. This question is for the Android environment. I use ADT. I need to implement in Parse a Car table and a Manufacturer table. Car has the model and manufacturer fields. The Manufacturer…
-
0
votes1
answer68
viewsCursor count returns more values but only adds one item in the list
I am consulting a table of Clients, I am selecting all test affine, but what is happening is that when playing the query on the cursor and giving a getCount it returns 4 as expected, but when giving…
-
0
votes1
answer84
viewsonClick on the menu
Good Afternoon, in my application I have a menu with two items and are ifRoom, when I put my function to save the match it shows an error in Logcat but I do not know how to solve... someone could…
-
0
votes1
answer287
viewsHow to make an Edittext Material Design style?
Could someone give me an idea of how I can do this Plain text:…
-
0
votes1
answer71
viewsBlocking any other application via Service
Speak guys, I’m creating a business application and I need to block any other application that the user tries to open. I’m creating a service for it, but it’s not working. When executed, it does not…
-
0
votes1
answer220
viewsRecyclerview makes imageview disappear
Simple. Recycler View makes imageView disappear after I scroll back to the top of the list. For example, in the case, the first image simply disappears. It was like that:…
-
0
votes1
answer60
viewsText update in Notification
I need to update a text in the notification bar but I can’t keep calling the same notification because in the tests I did when I call again it flashes my notification. I have an app that picks up…
-
0
votes1
answer77
viewsAndroid - Sharedpreferences
It’s not working my sharedPreferences. public static final String PREF_NAME = "TelaApresentacaoActivityPreferences"; @Override protected void onCreate(Bundle savedInstanceState) {…
androidasked 9 years ago Douglas William 321 -
0
votes0
answers266
viewsI cannot get data from the Openweathermap API When I use GPS Coordinates as an Argument
I’m trying to make a small application that consumes the API OpenWeatherMap but to use the location of the device to do so, the coordinates. I was able to get the coordinates of the device however…
-
0
votes2
answers194
viewsNullpointerexception error using Boolean type
I’m having problems again with this project, the application runs normally opens the screen to register and everything, but when you click on the button to save it simply closes the app, but the…
-
0
votes1
answer174
viewsFragment using Appcompatactivity
I’m getting this mistake: onPrepareOptionsMenu Menu in android.support.v4.app.Fragment clashes with onPrepareOptions Menu Menu in android.app.Activity attemping to use incompatible Return type.…
-
0
votes1
answer255
viewsError while displaying information in Android + Firebase listview
I’m having two problems with this program... the first is that when registering it does not enter the first loop replay msm being td straight... it jumps and displays the message "no data"The second…
-
0
votes1
answer1320
viewsTranslate date long format from English to Portuguese
I’m converting a String to Date SimpleDateFormat dateFormat = new SimpleDateFormat("EE MMM dd HH:mm:ss z yyyy", Locale.ENGLISH); Date convertDate = new Date(); String dd =…
-
0
votes2
answers154
viewsHow to turn a system out to string?
I want to display a message on the device screen. The message is in System.out.println("Mensagem "); how do I turn into a string and print on screen using a textView?…
-
0
votes1
answer737
viewsCreating a datepicker Android Studio
I’m wanting to create a datepicker as image below. But when I create one, it gets that way. Msm when I use some example that creates one according to the first image, it ends up being equal to the…
-
0
votes0
answers31
viewsAndroid listview view view listViewItem
I have a listview that part of the line is only displayed when expanded. The problem is that when the line is expanded next to the bottom of the screen you cannot see all items. How do I know if the…
androidasked 8 years, 1 month ago Edson Santos 416 -
0
votes0
answers75
viewsFill the entire screen area through Gridview cells
I have a project that has a Gridview with several cells and I need the cells that make up Gridview to fill the entire useful area of the Smartphone screen. With the following XML code it did not…
-
0
votes1
answer41
viewsHow do I disable a function when and old android API
I have the function View.OnScrollChangeListener which has been deployed to API 23 only. In the previous API example of Kitkat API 19. This function does not work. Like I do in my code oncreate when…
-
0
votes1
answer199
viewsRemove selected item in new selection in spinner
Hello I would like to remove an item already selected in the android spinner. Example: ItemA ItemB -> SELECIONADO ItemC ItemD Since Itemb is selected I wouldn’t want it to appear in the list when…
-
0
votes2
answers41
viewsonKeyDown when Spinner is open
Hello I’m trying to do an action when a user closes the spinner using the back button of the device. But the "onKeyDown" event does not run when the spinner is open, only if it is closed. How could…