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
answers4919
viewsHow to change the color of the Statusbar?
How do I change the color of this part of the app? I wanted to put everything in the same green color as this one below.…
-
3
votes1
answer442
viewsConvert java.util.date to java.sql.Date
With this line of code I can get through java.util.Date for java.sql.Date? java.sql.Date sqlDate = java.sql.Date.valueOf(String.valueOf(date)); Taking into account that date this format : Sat Jul 01…
-
3
votes1
answer516
viewsAndroid Studio 2.0 Render Error
Every time I open a layout file no preview appears and an error appears in the event log. It is not a specific layout, are all layouts. Has a question the same as in the English version, but it…
-
3
votes2
answers3965
viewsWhat Development Environments (IDE) for Android and IOS using Lua?
I want to know what Development Environment options to develop applications for Android and IOS using the Lua language.
-
3
votes3
answers3871
viewsHow to put hint on a spinner?
I have a Spinner, where the user should select his gender: So far everything works well, but I need to leave a hint written the word sex in the spinner component, as well as in the image below: Code…
-
3
votes2
answers536
viewsWebview updating URL page when rotating the screen
I’m running a test on the webview and it’s ok. But when I turn the smartphone it updates my page url. I would like to keep the rotation without this update, keeping it on the screen that the url is.…
-
3
votes1
answer2073
viewsHow to automatically run a method outside of Activity onCreate()
I have a Mainactivity who owns 4 buttons, when the user selects some of them, the button method calls another Activity, which will display a query made in a XML in a Listview of this new Activity.…
-
3
votes1
answer342
viewsChange Httpparams code to httpurlconnection
I have a code that connects json to a mysql database, but Httpparams is obsolete in the version of java I’m using, so I’d like to know how to do it or how best to put new parameters and maintain…
-
3
votes1
answer198
viewsAndroid VM - Connection Error
Dear friends, good morning! I’m not getting connection on my android emulator, could anyone help me? I’m using Visualstudio Emulator for Android. My project is compiling, and running right, but I…
-
3
votes2
answers224
viewsError using sendMessage() method of the Handler class. "Message not posted or already removed"
I am studying about Threads and Services and I know that to run a longer process, such as looking for internet signal or download, I must put it to run in a Background Thread and not in the UI (User…
androidasked 8 years, 7 months ago Gabriel Linassi 65 -
3
votes1
answer226
viewsUpdate Seekbar as it plays the audio
I created a seekBar to see the progress of my audio running on MediaPlayer, but of all the methods I used to update the seekBar, the only one that worked was this below: new Timer().schedule(new…
androidasked 8 years, 6 months ago Gabriel Linassi 65 -
3
votes1
answer1880
viewsHow to view or download any PDF file in Webview?
I tried to find some solutions to the problem. But there are only codes that download a specific file. I have a website that opens in a webview. On the page there are several Pdfs. I need a code…
-
3
votes1
answer1109
viewsSplit(), using | (pipe) as separator, does not correctly separate the text
I’m developing an app for android and now did the part of Httpurlconnection, I put everything right, I pointed out url and took a test with System.out.printl(line) and on the console prints my…
-
3
votes1
answer933
viewsUpdate application every 5 seconds
Good night. I need to make an application that makes an http request every 5 seconds and brings the same result that is in Json format. Well, this part of requesting and obtaining the data I’ve…
androidasked 8 years, 5 months ago Luis Ferreira 33 -
3
votes1
answer2238
viewsPass value to Textview
I am passing a value to a textview, but that do so after my variable receives this value. public class ariesFragment extends Fragment { public String[]textoSeparado2; public ariesFragment() { }…
androidasked 8 years, 5 months ago user46736 -
3
votes2
answers754
viewsInsert data and "primary key" into Firebase
Good morning, I’m starting with programming, and I have the following question. 1. I can enter data in firebase, but when I try to enter it again only happens to replace the data instead of entering…
-
3
votes1
answer1380
viewsProblems with the layout of the application in several cell phones
I have an app that I made and emuiled using my cell phone lg G2 mini, when emulo it gets all straight, the form the way I designed in its proper corner. When I install the same apk on other phones,…
-
3
votes2
answers4139
viewsHow to set placeholder in Edittext?
I created a small app for Android containing only one Activity. In it I put two components Edittext. I wish to define placeholders in them, as in HTML5 inputs, but find no solution.…
-
3
votes2
answers818
viewsHow to count the number of occurrences of a String in a Jsonarray?
I’m trying to show the occurrence of the strings of "specialty" that are in my JSON, however, when I try to show the count of each "specialty" I cannot succeed. JSON [ { "id": "20", "medico":…
-
3
votes1
answer734
viewsHow to call Fragments in Drawernavigation?
I created a new project in android studio and chose to use the navigationDrawer, created my screens now I would like to call them. How do I implement this method and switch windows in menu of an…
androidasked 8 years, 5 months ago Carlos Diego 683 -
3
votes1
answer44
viewsDoubts with timessquare Calendarpickerview
How to disable the day of the week example:I have calendar, I spent the day of the week by parameter in the case Monday, Thursday and Sunday to schedule service. How do I disable Tuesday, Wednesday…
-
3
votes1
answer5357
viewsHow to center the entire layout
I have the following layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"…
-
3
votes1
answer85
viewsSmsmanager on Dual Sim phones
I have been researching the subject, but I have not yet seen any definitive solution to the problem. Well, my application does send SMS from Smsmanager however, it does not ask which chip to use…
-
3
votes1
answer96
viewsHow to view equations on Android?
Does anyone know how to display mathematical equations in Android apps? Actually there’s something like Latex where I put $f(x) = \frac{x^3}{\sqr{x}}$ and it shows on Texview: Does anyone know if…
androidasked 7 years, 1 month ago Jônatas Trabuco Belotti 656 -
3
votes2
answers2331
viewsCompare Latitude and Longitude in Python
I have an application where an Android client sends the coordinates to a Python server, which should put such information in a Mysql Database if the client is within an area (an 8-vertex polygon, to…
-
3
votes2
answers282
viewsLike timing an Interstitial ad?
How to Time an Interstitial Ad? Example:. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); interstitialAd = new InterstitialAd(Main.this);…
-
3
votes1
answer57
viewsIs it possible to create a different app version for each android version?
It has components that are not supported in previous versions of android, but has alternatives to them. Has some way to maintain ideal components for the ideal versions and alternatives for those…
-
3
votes3
answers153
viewsPassage of values between Fragment and Activity
I have a fragment that consists of several buttons. The goal is that when I press one of these buttons the fragment disappear and pass the value associated with that button to the activity that is…
-
3
votes1
answer84
viewsHow to rescue a variable from an Actor in Libgdx?
I have the following Actor: public class Carta extends Actor { Sprite sprite; public static int val, pos, peso; Texture texture; public Carta(int valor, int posicao) { val = valor; pos = posicao;…
-
3
votes1
answer68
viewsWhat is the difference between a Toolbar and another view?
I’m learning to use the toolbar on Android development and saw that the use of it is very similar to other views, I saw that you can put it without being at the top, that you can put items inside it…
-
3
votes1
answer161
viewsUpdate without Where
How to make an increment only on Child period of all students enrolled in Firebase? Ex.: in SQL, I would use: UPDATE alunos SET periodo = periodo + 1 Updating all students to their later period. How…
-
3
votes1
answer37
viewsIs it possible to have native content(layouts, classes) in a hybrid application?
I need to run some native Android layouts and classes in my Ionic project there are some plugin?
-
3
votes1
answer327
viewsError in app theme
Guys I implemented some tabs in the app I’m developing with Fragments and had to use the theme of Appcompat but started giving this error: Caused by: java.lang.Illegalstateexception: You need to use…
-
3
votes1
answer336
viewsData sharing between android apps
I created an application that works as a calendar, where it is possible to register contacts with some more fields with respect to the schedules that comes preinstalled on the device. My question…
-
3
votes4
answers3003
viewsAllow uppercase letters only in Edittext
I know I can make the Edittext screen is always rotated, now I want to know if there is a way to only allow uppercase letters at the moment the user is typing something.
-
3
votes1
answer988
viewsAlternatives for not using Webview
There are alternatives other than webview android to use? I’m having a problem that from what it seems, a lot of people have that is to run videos on the tag video of Html5. Many people say that the…
-
3
votes1
answer160
viewsFramework to read json google maps api
I was wondering if there is a framework to read the data that comes in the json of google maps Directions? type, take the data and put in variables that I can take and use in the rest of the…
-
3
votes0
answers71
viewsEvent triggering multiple times when using Recyclerview
I’m having a problem working with RecyclerView. Man Adapter has the following code: public class CustomAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { private…
-
3
votes1
answer56
viewsHow to create a non-circular geofence area?
From what I saw, the geofence creates a circular area from the measurement of the radius, in case it creates a circular area, but it is possible to create a non circular area? For example a square…
-
3
votes2
answers120
viewsCreate a Generic Adapter
Good evening! Dear friends, I have a question , has anyone ever come across the situation of having several lists but with similar information? a simple listing of information coming from the…
-
3
votes2
answers2044
viewsHow can one Fragment call another Fragment?
I have an app with a screen and on this screen there is a Fragment. In this event there is a button that, when clicked, I want to call another Ragment and that stays/replaces the Ragment button.…
androidasked 7 years ago GustavoSevero 2,567 -
3
votes1
answer79
viewsImage and text autocomplete
I’d like to make a Autocomplete on Android (java/android studio) with text and image, so I found a site that shows a very practical example of how to do, I tested and worked perfectly but…
androidasked 8 years, 4 months ago searchsolucao 31 -
3
votes2
answers219
viewsHow to create custom Toolbar like Acmarket
I want to create a Toolbar same as Acmarket, but I don’t intend to use CollapsingToolbar, I just want to create a similar Toolbar, someone help? <android.support.v7.widget.Toolbar…
-
3
votes2
answers154
viewsToolbar stands in front
I have a problem where my Toolbar is in front of my view. I have a scroll view and when I slide it up it looks like this. Follows the xml: <LinearLayout…
-
3
votes0
answers67
viewsDrag View to open new Activity
I think it doesn’t need code because it is in extremely simple layout, just to give example. My question is how to do to hold and pull that Toolbar up, the Activity corresponding "climb" together.…
androidasked 6 years, 10 months ago Léo Santos 114 -
3
votes1
answer6619
viewsButton with image and text
I have a button that has round borders and when it is selected changes color. A certain text is associated with that button. It turns out I want the button to have an image plus the text and I can’t…
-
3
votes1
answer766
viewsDownload file using React Native
I have an Android app that when running accesses a file and lists some information on the screen. The point is, it only works if there’s an Internet. What I need is to download the information and…
-
3
votes0
answers25
viewsApplication does not create file in external memory
I’m using the following code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_pdftest); Button Btgerar = (Button)…
-
3
votes2
answers138
viewsI am trying to extend Stringrequest from Volley package, but the import is not working, why?
This is the code I use to import. import com.android.volley.Response; import com.android.volley.toolbox.StringRequest; And here below is a print of my screen showing that I’ve installed the Volley…
-
3
votes1
answer2951
viewsERROR: android.view.Inflateexception: Binary XML file line #0: Error inflating class Textview
When using the LayoutInflater with this XML gives the following error: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…