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
answer148
viewsHow to access Maps in Genymotion
To use maps in Genymotion, do I need to create an account in the play store? When I access the "Play Store" app…
-
1
votes1
answer894
viewsTake the id of the textview that is inserted in the listview and put in the bd
I have a layout with 2 lists, one complements the other, category and subcategory I would like, when inserting a subcategory by clicking add feed the database with the id of the category that is on…
-
1
votes1
answer29
viewsHow to edit Theme.xml in Titanium?
I need to remove actionBar from my project and the best way I could find was to edit Theme.xml. However, when I edit it, I cannot save it and soon, my actionBar remains active. I tried to put the…
-
1
votes0
answers829
viewsHow to know if my Android app has been uninstalled
I developed an app, which receives notifications and passes information to another app, and shows users online and registered in both apps. I wanted some way to send information to the API when the…
-
1
votes1
answer310
viewsChange file download location
I got a solution to download files on android, but it downloads with a name programmed in the code, and at the root, I wanted to download with the original name of the file, and save in the folder I…
-
1
votes1
answer415
viewsInserting Textview into a Listview
I have a problem. I need to insert a textview inside a listview. Follows the basic method class MyKickAssAdapter extends BaseAdapter { LayoutInflater mInflater = LayoutInflater.from(getContext());…
-
1
votes1
answer189
viewsAlarmmanager does not cancel scheduled alarm
I have the following code on MyReceiver: @Override public void onReceive(Context context, Intent intent){ context.startService(new Intent(context, BackgroundService.class)); } public void…
-
1
votes2
answers570
viewsList of all installed applications
I’m wanting to learn how to create a list with all the apps installed from Android. How do I show in a ListView all apps installed on the smartphone?
androidasked 9 years, 4 months ago Joao Martins Junior 11 -
1
votes1
answer800
viewsHow to receive a notification on android whenever there is a record in a table?
I’m having a problem, I have an android project that I need to receive a notification on mobile whenever there is a new client in the database (in the background too!). but the problem is I can’t…
androidasked 9 years, 4 months ago Felipe Darzan 13 -
1
votes0
answers405
viewsAndroid - ACTION_IMAGE_CAPTURE, Problem to capture image
I’m developing an application that needs a photo of the user. For this, I developed a code that is responsible for capturing and resizing the image. This is code: private File createImageFile()…
-
1
votes1
answer1571
viewsHow to leave imageView behind the buttons?
as the ramaral posted seven code: In your Activity Layout you must declare an Imageview If you want it to be only visible after pressing a button you should include the android:visibility="Invisible…
-
1
votes1
answer38
viewsKeep my app checking for Webservice updates
So my question is this:: Assuming I have a list RecycleView of users in my application, where this list is filled through a request to my WebService. I would like my application to be 'checking'…
-
1
votes2
answers643
viewsHow to set a time to close image when opening
I’m having a doubt how to set a time to image that was opened close. It would be a loop? I’m using ImageView: <ImageView android:layout_width="match_parent" android:layout_height="wrap_content"…
-
1
votes2
answers355
viewsChange Status Bar to transparent in a Fragment within an Activity
I have a Activity which has a theme for its Status Bar, but it has an influence on a Fragment I want another color in the Status Bar. Is there any way I can change the color of the Status Bar just…
-
1
votes1
answer1693
viewsGrab database ID when selecting option in spinner?
Usually I get the ID of a selected object/clicked with the onItemClickListener, but it does not work with the Spinner. I tried that way: spn.setOnItemSelectedListener(new…
-
1
votes1
answer605
viewsCustom Listview occupying 100% of the screen
I created a Custom Listview with some items but as you can see in the image below is an "empty space" on the screen. I would like to know how to make the items occupy all the remaining space on the…
-
1
votes2
answers210
viewsDevice error(Samsung Galaxy S4) when running app, but in Emulator works!
I have a problem, I made an application that consumes a webservice Restfull made in Visual Studio, when running the application of Android Studio, consumes without problems, but when I use the…
-
1
votes0
answers147
viewsListview loses state of lines during scroll
I own a ListView and I use the following layout for Adapter: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/llContainer"…
-
1
votes0
answers98
viewsFloating Action Button in Player - Play Animation for Stop
In my radio app there will be a FloatingActionButton to play. What I would very much like to implement in this Button the animation of the play icon transforming into the stop icon, more or less as…
-
1
votes1
answer652
viewsListview displays only one line, why?
I have a Listview in a layout with more items, and it only displays one line. If I do the same scheme in a code that the layout has only Listview it works perfectly, if anyone has any idea why I…
-
1
votes0
answers329
viewsStatus Bar Android Studio
How do I open an app when making the move of the status bar will create an app style "inoty" how do I make it always active and open a status bar when making the move
androidasked 9 years, 3 months ago Douglas L Dutra 11 -
1
votes0
answers37
viewsIs there a function in the google maps api to make fixed items?
I’m working on an android app and I wonder if there is any way to create routes in google maps fixed and then use them to know the fastest way to a certain destination? Like making bus lines. I’d…
-
1
votes1
answer229
viewsError starting Android Studio
After installing Android Studio, when opening (for the first time) you choose the theme and the following screen appears: If I from 'Retry' does nothing, if I from Cancel appears the following…
-
1
votes0
answers129
viewsStart service with Timertask
I am trying to start an Android notification service with Timertask but returns me the following error: 02-03 16:06:00.164 15051-15379/com.celiogarcia.setapp E/AndroidRuntime﹕ FATAL EXCEPTION:…
-
1
votes3
answers101
viewsIs it possible to put Abels in Listview?
I have several ListView's that I use for browsing, and put as content id's. So, a list that should present country names, is showing the country id. Is there any way to keep those id's list but…
-
1
votes2
answers205
viewsHow to display the result of an operation in Android?
I own 3 EditText. In the first I put the quantity and in the second a value. I needed that on the 3rd EditText instantly present the result of the operation. You can do this on Android without using…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
1
votes2
answers136
viewsAndroid file monitor
I need to develop an application for android where the same work monitoring a certain directory with a certain periodicity and sending new files from this directory to an FTP or any other folder of…
-
1
votes1
answer673
viewsNavigation Drawer Activity
I’m having a problem in an application I’m developing in Android Studio, it has the option to insert a Activity (Navigation Drawer Activity) then I inserted it and put a button to call it. The…
-
1
votes2
answers414
viewsHow to put a subheading at the bottom of the app name in the bar menu
I’m willing to put two things on the bar menu, but I have no idea how you do that. Whatsapp has two things on the menu bar, the contact name and the time that viewed Whatsapp. Is there any way I can…
androidasked 9 years, 9 months ago Ilgner de Oliveira 1,098 -
1
votes1
answer1487
viewsHow to set a text based on the Edittext id and not the Edittext name?
when I set a text in an Edittext I do so. EditText edit = new EditText(this); edit.setId(0+4); edit.setText("Meu Texto"); But I would like to set the text by id because in my case I have several…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
1
votes0
answers275
viewsHow to maintain connection between Android Java server client?
When I call the server I should receive a message saying that connected, only when I send a message to the server the application overflows. This is the code of the button to connect to the server:…
-
1
votes1
answer209
viewsHow to send a string to a web server?
I need to send a string to a server, which in case will be a page of my site. I need to send a txt with the string there, just that. Does anyone know how to do this on Android in the simplest way…
-
1
votes1
answer31
viewsHow to put a background color on a Shapedrawable?
It seems to be something very simple, but I’m only able to put the color of the border, someone knows? Follow the code I’m using: public void borda(View view) { float[] outerR = new float[] {10, 10,…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
1
votes1
answer466
viewsHow to change color a Listview item based on the "onActivityResult" response?
lv = new ListView(this); adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1, vetorNomes); v.setAdapter(adapter); I have a list of names, when I…
-
1
votes1
answer7649
viewsButton with transparent background
I am creating button in my application like this final Button btCategoria = (Button) LayoutInflater.from(this).inflate(R.layout.button, null); btCategoria.setId((int) listenerCategoria.id);…
androidasked 9 years, 9 months ago Ilgner de Oliveira 1,098 -
1
votes1
answer170
viewsGet AIMS e-Crew Schedule information?
There’s an app and website that show you the schedules of the flight attendants. I wonder how these sites pick up this information? It’s via api? Examples are: Website…
-
1
votes1
answer23
viewsDo you display texts in the APP by strings?
I am creating an APP to list the bus lines and when clicking on a line, will open the information of the schedules of the same line. I wonder if you have how to put these Strings directly in the…
-
1
votes0
answers185
viewsSqlite and Android database
Hello, I’m making a small app and need to search database data and display them on the screen. Databasehelper.java public class DatabaseHelper extends SQLiteOpenHelper { private static final String…
-
1
votes0
answers68
viewsTimertask with long intervals
I intend to develop an app that when setting a certain time, schedule a task with timertask to be executed 50 minutes later and soon after that 50 minutes, repeat by 50 minutes in a row. But it…
-
1
votes1
answer150
viewsShared Preferences does not store login using JSON
I’m not able to save the login using JSON, it logs in but when I close the application and start again it didn’t save the login. private EditText editTextLogin; private EditText editTextSenha;…
-
1
votes3
answers931
viewsImages getImageUrl()
I’m uploading images like this: final ImageView img = (ImageView) firstElementView.findViewById(R.id.grid_image); String src = item.getImageUrl(); img.setTag(src); imageLoader.displayImage(src, img,…
androidasked 9 years, 3 months ago Micael Costa 93 -
1
votes2
answers37
viewsHow to change the color of an item or of the entire Backgroud of a listView by onActivityResult?
It seems I can only change the color of an item in onItemClick() and the full background color when populated ListView. Does anyone know how to do that? What I needed was to click on an item from…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
1
votes2
answers818
viewsWhat is the most efficient way to resize bitmaps on Android?
When a device has smaller screen resolutions, you need to resize the bitmaps to optimize its display on the display properly. The problem is that the use of createScaledBitmap can generate a lot of…
-
1
votes1
answer1724
viewsWhat is Recyclerview on Android?
What is the function of RecyclerView in an Android app?
-
1
votes1
answer92
viewsHow to get the screen Density on Android via code?
I am developing an application where images and layouts adapt according to the logical density of the device. You can get the screen dpi from the device through Java?
-
1
votes0
answers28
viewsPrintwriter does not work on Android?
I’m trying to run this code, but it doesn’t work, from the error in Try{}, in Java it works perfectly. public void criatxt(){ String texto = "XXX"; try{ PrintWriter arq = new…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
1
votes1
answer140
viewsHow to center my location by clicking on a Marker?
Hi! I am developing an application that works on Google Maps API v2 and I have defined the method mMap.setMyLocationEnabed(true) to obtain the user’s location. My question is: how do I, when…
-
1
votes1
answer50
viewsWhat is the correct way to put the address inside the Path?
Because I am unable to locate my.txt file. Follow the code: public void criatxt() { String texto = "XXX"; try { String filePath = this.getFilesDir().getPath().toString() + "/meuarquivo.txt"; File f…
androidasked 9 years, 3 months ago daniel12345smith 2,120 -
1
votes1
answer33
viewsApplication on Androidstudio java
I’m designing an android app on Androidstudio, in java and working with database, using Sqlite, has how I list the images being saved in the database in BLOB format?
androidasked 9 years, 3 months ago Ronaldo José 11 -
1
votes0
answers54
viewsI’m having trouble accessing my phpmyadmin using my Android, I’m using Wampserver
When putting the ip of my computer in the mobile browser, says that I am not allowed to access, I ask for help.…
androidasked 9 years, 3 months ago Gabriel Manuel 153