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
-
2
votes2
answers132
viewsEquivalent of onCreate()
I’m reconstructing a set of objects so I can reuse them in other applications. These objects are not activities and only have a set of practical functions that I want to call at any time of the…
-
2
votes1
answer147
viewsPlace gallery with text
I’m trying to put a product gallery in my app, and I wanted the image and the text below, I’m using the viewpager, however the text ta getting on the side, and the images very far away from each…
-
2
votes1
answer167
viewsCan you inflate a class?
There are many methods that you inflate a layout.xml but I need to inflate a class within a tab, anyone know what I can do? I’m suffocating in here. To inflate layout.xml use this code:…
androidasked 9 years, 5 months ago daniel12345smith 2,120 -
2
votes1
answer169
viewsList View with Textview and Imageview
I’m trying to make a ListView with TextView and ImageView(obtained through a URL), when only with TextView was appearing normal, but when I added the code to show the images, the screen turns all…
-
2
votes1
answer481
viewsHow to create APP-like clock layout
Good morning to you all. Could someone give me a help on how to create a layout similar to the Android clock APP? I would like to do something very similar with these screens. If you can help me…
-
2
votes2
answers602
viewsDoes Eclipse Logcat for Android display Log messages?
public void ImprimeLog(){ Log.i("Funcionando",""); Log.e("Funcionando",""); Log.v("Funcionando",""); Log.w("Funcionando",""); Log.d("Funcionando",""); } In Android Studio works, but Eclipse is not…
-
2
votes1
answer139
viewsManipulate onPostExecute from another Activity
I have both classes below: Dataload.java public class DataLoad extends Activity { SQLiteDatabase mDatabase; Session session; public static String jsonString = ""; @Override protected void…
-
2
votes0
answers113
viewsUsing the youtube android API
I’m in need of a help here with youtube android player, can anyone help me? It’s the first time I use . For example I think I’ve already added the library but private YouTubePlayerView youtube;…
-
2
votes2
answers903
viewssite does not work in mobile version
I made a site that in turn should be responsive it will have to work on portable devices but I used a feature called Animate.css of this file I used the following effects :…
-
2
votes1
answer1653
viewsResize Images from Camera
I’m working on an application that accesses the photo library and updates an Imageview with the selected photo in the mobile library. I have an LG G2 and my camera is configured by default to take…
-
2
votes3
answers487
viewsExecute code before executing the first Activity
I have the following problem: I have a splash screen which will be called only if it is the first execution of the application. If it’s not the first execution I’d like to call another Activity. I…
androidasked 9 years, 10 months ago Valter Junior 253 -
2
votes1
answer282
viewsHow to change Webview size
I got a WebView tall (height) of 0dp defined in the XML of the activity. How can I change the height to 300dp programmatically?
androidasked 9 years, 4 months ago Tiago Coelho 739 -
2
votes0
answers54
viewsUpdate Main via an Intentservice
I have an application that works together with GCM (Google Cloud Messages), which consults the server and when there is news sends a notification to the user. I need to update my Mainactivity…
-
2
votes1
answer69
viewsAndroid server
I would like to know how apps like this, provide a web service through the smartphone? Is there a Tomcat that runs on Android? or something that does this? Ps.: Google showed me just the Talking Tom…
-
2
votes1
answer49
viewsPhp script in java ? runs in the background?
I have a question. I have a script which takes about 40 seconds to execute. I’m thinking so if I have run on android, the user if not willing to wait the 40 seconds, what happens he closes in the…
-
2
votes2
answers814
viewsChecking Time in java
Given a list of times ex.: String[] times = {"11:00", "12:00", "13:00"}; I want to take my current time and compare with the list which is the next hour, eg.: current time is 11:30, taken from the…
-
2
votes1
answer1348
viewsHow to create a List and Sublist?
I’m looking for a popular one Listview based on two tables, one so-called category and the other subcategory, and I would like it to look something like this: When I typed a name for Category on…
-
2
votes2
answers130
viewsVideo view overlaying another Video View on Tabactivity Android
I have a TabActivity with two Tabs, both have a VideoView (Man|Woman). When I start one of the Tabs and then switch to the other, the video of the first still running underneath the other video. How…
-
2
votes3
answers2056
viewsLayout for all screen sizes
I just started messing with android and I came up with a big question. How I make a layout to work in all screen sizes? From what I’ve searched, there are specific layout folders for each size. So,…
-
2
votes1
answer1621
viewsHow to put button on a Listview?
I have a model that I use in my projects, of list with image, I want instead of the image on the side of the button, just button and title. Look at my Adapter: Adapter public class AdapterListView…
-
2
votes1
answer138
viewsDoes the GCM deliver the messages in real time?
I have two apps that need to communicate and I don’t want to keep asking the server if they have something new, I wanted something that would come out of one app to the other or from the server to…
androidasked 9 years, 4 months ago Mateus Carvalho 1,494 -
2
votes1
answer3167
viewsHow to add an edge to a Textview per code?
I am making a dynamic form and would like to add an embroidery around a set with a Textview and an Edittext as in the code below: TextView tv = new TextView(this); tv.setText(vet[0]); EditText et =…
-
2
votes2
answers308
viewsHow do I access an Arraylist of Fragments after a screen rotation?
I was trying to programmatically add to my Activity a list of Fragments that implement some Cardviews. These Cardviews have some Textviews that I would like to set from my Activity, and in fact, it…
-
2
votes1
answer4232
viewsAndroid Sqlite: Displaying bank content in textView?
I would like to know how I do to display content from the Sqlite database in textviews. I am using the following method to display in a Customlistview: public Cursor getAllData () { String buildSQL…
-
2
votes1
answer57
viewsAndroid Layout (Box Dialog)
I’m trying to build a boxdialog for a listview. I’m having trouble finding an example to base and develop my solution. Does anyone know any material I should know about? Here is a picture of the…
-
2
votes1
answer113
viewsChange color of overflow button
I wonder how it mainly does to change the color of the overflow button, if it is not possible, change the image, to SDK minimum 10
-
2
votes0
answers141
viewsSend data from the app with locked cell screen to the server using voice command
Good afternoon. I wonder if there is a way to create a service in my application where when the user said something you take the content of what he said and send it to the server, but with the cell…
-
2
votes1
answer79
viewsWhy does the count continue from the previous item and not from the 0?
I have a problem. I made a method that calculates the count from clicks on screen and throw that count into a EditText, but the problem is that the counting continues from the previous item and not…
-
2
votes1
answer1167
viewsWhere can I get the Android source code?
I’m writing a documentation, in which I need to know what the source code is so that an application can check the entire mobile device, behind settings that the user has not made, for example: if…
-
2
votes3
answers464
viewsComponents are not in class R
I’m building an agenda, and for that I’ve created a Activity where would be a list of all contacts: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
2
votes1
answer479
viewsProblems trying to open the Navigationdrawer with the Home Button on the Toolbar
I’m trying to open the Navigationdrawer of my application in my Main Activity through the home button available on Toolbar when using Actionbardrawertoggle, but when pressing the button my…
-
2
votes2
answers198
viewsListview infinity on android
I have an app that consumes a web service, only I have a generic call that searches all users and this taking a long time because I have several records, I want to do so the user goes down the…
-
2
votes2
answers1943
viewsUpdating Listview when I come back from a screen
I have a Listview that has a button that goes to another screen that when filling this screen and clicking the save button, it returns to Listview but I could not find a way to update this Listview.…
-
2
votes2
answers196
viewsDownload Genymotion Plugin to Eclipse
Guys, I can not install the Genymotion plugin in my Eclipse, it does not appear to make the download option, please help me]1…
-
2
votes1
answer39
viewsSending a photo with public privacy
Through the code below, I can send a photo to the photos of the user who is logged in, and the photo is successfully sent. But the photo goes with privacy Friends. How do I send privately Audience?…
-
2
votes1
answer91
viewsAvoid overlapping of Listview
I have a problem with ListViewI work with 2 ListViewAnd I want that when I click one, that the other disappears and that they don’t overlap as they have been. I just want when I click and open the…
-
2
votes2
answers384
viewsRun callback on close android keyboard
I have a app running with Cordova and Ionic. In this app i would like to effect an action in particular controller when the keyboard closes completely. Today I’m using…
-
2
votes1
answer132
viewsHow to use View Animation
I’d like to know how you would use View Animation ,to simulate a GIF. For example: I have a picture of a sword, this sword is up, so do something like it goes right, clockwise,going around and going…
-
2
votes1
answer1498
viewsAndroid Web Radio Mobile App
Good evening guys, does anyone know any tutorial or ever worked how to make a radio web application? It will only stream audio streaming that is already online.
-
2
votes1
answer359
viewsWhich one calls sharing?
I wonder which Intent draws the screen below:…
androidasked 9 years, 3 months ago Ismael Junior 286 -
2
votes1
answer151
viewsHow to send a die to an already created Activity?
I’m in the Activity A and I sent you a note from putExtras() to the Activity B that has not yet been created, in this case it worked, but now I have to send a data from Activity B to the Activity A…
-
2
votes1
answer422
viewsDeveloping layout for various types of mobile resolutions with Cordova
I am developing the layout of an application developed using Ordova, however I would like to know how to develop for the various types of resolutions that exist in mobile devices, would have some…
-
2
votes1
answer341
viewsMobile multiplatform development
I am a Java programmer and need to start in mobile development (Android/IOS/Windows Phone) and I would like to know what is the best way. I’ve been reading about frameworks you develop in…
-
2
votes1
answer76
viewsPretend the device doesn’t have GPS
I wonder if there is any way to "cheat" the device during debug by saying that it has no GPS. I don’t want to just disable, otherwise during development the GPS will be found. I have the purpose of…
-
2
votes1
answer2489
viewsReal-time monitoring with location
I’m creating an app on "Android" where I can locate moving cars on the map, which would be the right way to send my location and monitor cars on the go, which maps api I should use?
-
2
votes2
answers97
viewsHow to differentiate an Edittext with the same name and the same id?
public void criaForm(){ for (int i = 0; i < 5; i++) { EditText et = new EditText(this); linearLayout.addView(et); TextView tv = new TextView(this); linearLayout.addView(tv); } } I created several…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
2
votes2
answers276
viewsInsert sqlite in android app
I’m developing a sqlite database for the application part. At this time I am using the Sqlitebrowser, and would like to know how to do to grab the database and put to the application read this. I…
-
2
votes0
answers61
viewsParse as backend service
It’s the first time I’m using Parse in a project, I’m going through a somewhat complicated problem. I have to keep my user data offline, this user has a arraylist as an attribute. The problem is…
-
2
votes3
answers57
viewsHow to prevent the user to enter a "." point before any number?
I’m using the TextWatcher to make other changes, but I’m stuck on this part, I’m taking a value double and using it for various calculations so I cannot receive the value ". 55" for example. If I…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
2
votes2
answers1212
viewsHow to make a Listview "Clickable"?
I have a simple phone book system where there’s Activitys to: Register; Edition of the register; Removal of the register; And one last to see all contacts within one ListView. All records come from…