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
-
3
votes2
answers81
viewsToolbar is behind the Layouts
Hello, I am developing a home screen, and has 1 Toolbar and 2 linearLayouts dividing the screen into 2. The problem is that Toolbar is "behind" the layouts and does not appear when it runs. how I…
-
3
votes1
answer7563
viewsLightweight and stable alternative to Android Studio
I need to do an Android project, but I don’t want to use Android Studio because it is very slow and full of bugs on my computer. Which IDE or alternative framework I could use? A basic requirement…
-
3
votes2
answers2053
viewsTime comparison
Please, I’m trying to compare hours (like Open Now / Closed Now). But I’m not getting it. To save the current time, I’m using: object.put("h11", h11.getText().toString()); object.put("h22",…
-
3
votes1
answer91
viewsHelp with onitemclick listview
I’m trying to get a Toast appears as soon as user chooses an option from Listview, however, when the user chooses the option, it is first loaded to Acticity and then the Toast, and what I really…
-
3
votes1
answer574
viewsChange text color in Alertdialog
I’m creating an Android app and would like to know how I change the color to red of the phrase "SPI equation" in this Alertdialog ? AlertDialog.Builder dlg = new AlertDialog.Builder(this);…
androidasked 8 years, 12 months ago Vinicius Clemente 365 -
3
votes1
answer424
viewsI want to put more than one paragraph in my android xml, do you have how?
I’m trying to do something very simple. I want when the user press the "msg" button to appear a message with at least two short paragraphs just below the button, but I’m finding it difficult to put…
-
3
votes1
answer244
viewsUse a class in another class
good morning. I’m new to Java, but come on. I have a java class and need to use all of its methods in another main class. There’s a problem, I’m already using a extends in both classes. I need to…
-
3
votes1
answer100
viewsKnow which checkbox is clicked
I have 20 static checkboxes, when I click on one of them I run a function through the onClick. This may be a stupid question, but how do I know exactly which of the 20 checkboxes was clicked? I…
-
3
votes0
answers366
viewsGoogle login does not work after posting to the Play Store
My code is all right. When I use the application from an emulator, or generating APK and installing on the devices the login with the google account is performed perfectly. The problem arose when I…
-
3
votes1
answer116
viewsMainactivity does not find activity_main
I try to call the components of my activity_main and he does not think, what can be wrong?…
androidasked 7 years, 11 months ago Felipe Duarte 6,284 -
3
votes1
answer35
viewsGet the drawable used as a Checkbox image
Whenever I have saved the image associated with a checkbox through the method imagem = minha_checkbox.getButtonDrawable(); always gives me a mistake called call requires API level 23 (current min is…
-
3
votes1
answer195
viewsCalling a method using Spinner selection
It is possible to call a method using a Spinner android? I need to be selected the option and based on this selected option I need to send a request to the webservice, and this return me the other…
-
3
votes1
answer87
viewsDialog appears only after it has been called
Hello! In my application, I have a Button, that when clicked, opens the device’s camera so the user can take a photo: @Override public void onClick(View v) { //dialog da minha aplicação final…
-
3
votes1
answer795
viewsError while emulating AVD in android studio
error while trying to emulate a device in android studio He lets create the device, but at the time of emulating this error, I already searched, but not getting anything related.…
-
3
votes1
answer1470
viewsHow to customize a Toolbar on android?
How do I add more buttons to my Toolbar?…
-
3
votes1
answer715
viewsHow do I create an event when someone types something in Edittext?
I would like to create an event as the user enters some word in my EditText, but I don’t know how to access it.
-
3
votes1
answer1131
viewsHow to implement voice and video calls in my apps
I would like to know how I can implement video and voice calls (similar to Whatsapp) in my Apps written in JAVA for Android. Is there any open source SDK that makes this easy?
-
3
votes2
answers800
viewsNavigation Drawer calling Activity - Close the menu by clicking on the Activity item if it is the current one
I created a navigation Drawer. To use in several Activities using a standard class for it (DrawerBase.java) and Xtendo her in Activities where I want Navigation Drawer to open, but I have the…
-
3
votes2
answers394
viewsSpinner together
I have a Spinner who is responsible for the States of Brazil. And another Spinner responsible for Capitals of Brazil. I need you when you go selected the State another spinner of Cities be unlocked…
-
3
votes2
answers187
viewsError save data from sqlite register
I am in error when saving data from a people register in Javanullpointerexception sqlite: invalid int:(51)3452-2470. This error started to occur after I applied a mask. Follow the codes below.…
-
3
votes2
answers364
viewsHow to create Checkbox via programming
How to create several Checkbox's via programming?
-
3
votes2
answers483
viewsDynamically change the layout of Buttons
I have two Buttons on the screen, these are visible or not visible depending on the situation. There is a third situation, which should leave both visible, but does not fit on the screen. So I’d…
-
3
votes3
answers196
viewsRemove from Integer List
I have a ImageButton the imgB1: When I click on imgB1, add to a list integer, 1. If you click again imagB1, he removes 1 and puts 6. List<Integer> list = new ArrayList<>(); When I click:…
-
3
votes1
answer85
viewsCapture music running in another person’s app
Hello, on Facebook has a button that shows which Spotify song is running. Is there a way to do that in my app? I’ve looked for information but I can not find how to do it on Android. What I want is…
-
3
votes2
answers300
viewsAndroid: Saving Data in Files
I’m having trouble using files on android. Save the file and use quietly until close the application, when I open the app again the file is recreated and I lose the recorded data. I have tested…
-
3
votes2
answers374
viewsError while subtracting with no value fields (Android)
I got two camps like double, where the values should be subtracted. But when I do not enter any value in the field, an error occurs and the application closes. How can I solve this problem? Follows…
-
3
votes1
answer469
viewsAndroid use findViewById from other Activity
I need to assign a value to an element that is in another Activity I’m trying this way: MainActivity activityprincipal = new MainActivity(); WebView view = (WebView)…
-
3
votes4
answers163
viewsDeserialize Json and place values in views
Well, what I want to do is an Activity where a Json is consumed. The problem is that all tutorials show only how to return a Json in a listview. What I want is a structure more or less like this:…
-
3
votes2
answers103
viewsString deserialization
I caught the Retrofit Drivers field from the following json: { "Drivers": [ { "DriverID": 0, "Latitude": -23.642276336, "Longitude": -46.634615118 }, { "DriverID": 1, "Latitude": -23.64227916,…
-
3
votes1
answer1502
viewsHow to save a gallery image and click on Activity?
I would like to know how to save a gallery image and click on Activity in version 2.3.3 of the Eclipse emulator, because my code only works when I test on my Android device 4.1 and even then when I…
-
3
votes2
answers4807
viewsHow to use gradient in any component of Android?
How to use the degrade effect on any component of Android? As for example the navigation bar , or a simple TextView?
-
3
votes2
answers19503
viewsWhat is foreground and background on Android?
I wonder what means first or second plan on Android.
-
3
votes1
answer252
viewsButton that sends email to contact the developer
How do I create a button that the user click sends an email to another preset email?
-
3
votes2
answers810
viewsSqlite Database does not work on Unity Games compiled for Android
I’m using the Sqlite as a game database made in Unity that works perfectly on Unity Editor, but when I build for Android the game simply does not access the bank (nothing is informed or released).…
-
3
votes1
answer75
viewsObsolete html.fromHtml for Android N+
In Android 7.0 (API level 24) the static method fromHtml() of the public class Html became obsolete I don’t know why, if you know tell me. See an example of how it was used:…
-
3
votes2
answers825
viewsCreate directory and add files to query later on android
I am new in the area of Development. mobile, I am developing a simple app that uses the library Tesseract-OCR in Android Studio and I came across the following situation: I need to store some files…
-
3
votes1
answer3646
viewsIntent to open link in browser does not work
How do I get my button to send the user to a link? String url = "LINK"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i); I tried this way but it didn’t work…
-
3
votes2
answers2415
viewsHow to get your Android device ID with Telephonymanager#getDeviceId()?
I’m using this code to catch the ID of the device Android. TelephonyManager telephonyManager = (TelephonyManager) getActivity().getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); id =…
androidasked 7 years, 7 months ago Reginaldo Rigo 3,638 -
3
votes1
answer1252
viewsAndroid Encryption and Encryption
I’m trying to learn how to use encryption to encrypt and decrypt messages. I’m with a class called Encripta which has the methods, the encryption works perfectly. My method of deciphering…
-
3
votes2
answers667
viewsHow to implement Swipe To Refresh on Webview?
I want to implement Swipe To Refresh on my Webview, is that possible? I know you have Pull To Refresh but I’m not able to download add-ons (dependencies) at the moment. I did a lot of research on…
-
3
votes1
answer5883
viewsWhat is it for and where can you use C#?
A lot of people talk too much about C#. What is the real functionality of it today? It’s serious that it can be linked with Javascript and CSS? It serves to create applications for Windows, Android…
-
3
votes1
answer244
viewsHow do I know if a socket is "listening" on the server side?
When I use the function isConnected() of java.net.Socket, on the client’s side, and she returns to me true can I make sure the server is "listening"? How else can I know? Only with a waiting time…
-
3
votes1
answer77
viewsDisplay colors in percentage
I’m trying to make an app to take a photo, display in imageview and extract colors with the Palette library. All of this I’ve done. What I need is to display the result (Population) in percentage of…
androidasked 8 years, 8 months ago Modesto Barreto 61 -
3
votes0
answers100
viewsHow to request permission to access sdcard on Android 6+?
I have an app that accesses sdcard, everything was working perfectly, but I noticed that Android 6 has a permissions system where the user has to accept the permission not when the application is…
-
3
votes0
answers2708
viewsLog in to Webservice via Android
And there folks all quiet? My question is this:: I’m trying to create a login screen on Android and the registered data is in a Mysql database, to establish the communication I have a working Rest…
-
3
votes1
answer334
viewsHow popular is Alertdialog in Android Studio?
I’m taking a shit here from Java and Android Studio. I have already created an Activity + Dialogfragment, Location information does not pass from the Activity screen to Dialogfragment! Now I’m…
-
3
votes1
answer104
viewsCapture the current user location in a time interval and send it to the server
Fala galera. So I need my app to send the user location to my remote server every x minutes. I would like to know what would be the best workflow for this to happen in the right way. I think the way…
-
3
votes1
answer3748
viewsLoad imageView using image path
I have a listView loaded with BD data on a screen, on another screen my app hits a photo and saves the path of the photo in BD, until then I could do normal, now how to put the image in the…
-
3
votes1
answer896
viewsHow to change the name in the top bar dynamically when a Fragment is selected?
I want the name in the top bar to change according to the Fragment that is selected, for example, I chose the screen to list customers, so in the bar would appear "List Customers", but I’m not…
-
3
votes1
answer1152
viewsHow to use a Spinner in a Alertdialog?
I’m in doubt how to put a spinner in a Alertdialog, I already have the codes ready, just need to insert the spinner. Array: <string-array name="categoria_array">…