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
answer757
viewsImage in listview with Sqllite / Drawable
I have an app that does a corporate phone search on a Sqllite database. It’s working normally, but I need to get some image into some of these companies. The database field would be only the image…
-
1
votes1
answer692
viewsCreate list with files in different folders on android
Can anyone give me an idea of how to put together a list, as items that are within separate pasture? Example: pasta1: archivos1 and archivos2 pasta2: archivos3 and archivos4 the list would be:…
androidasked 10 years, 1 month ago Diogo Odelli 47 -
1
votes1
answer4475
viewsEdit item within Listview
Hello. I am working on a code that loads items inside the Listview through a Adapter. Within each item (item_list.xml), I inserted two buttons being one to delete the item and another to edit. The…
-
1
votes0
answers41
viewsAuto-resizable images with Jquery Mobile
I’m using the classic example of listview present in documentation of jquery mobile. However, when using images of different sizes, I would like the image to automatically be the size of the…
-
1
votes1
answer1438
viewsUsing onclick and onitemclick methods on Actionbaractivity
I’m building my app in android studio, I created a normal acitivity that has actionbar support, in this acitivity I load a list of users but I can not fire these events, how to solve this? My list…
androidasked 10 years, 1 month ago Thiago Porto 292 -
1
votes1
answer330
viewsConnection to localhost does not work webview Android
If I try to access the server’s localhost directly through Chrome I can log in but through an application the page is empty, follow the code: public class WebActivity extends Activity { private…
-
1
votes1
answer1809
viewsHow to turn an image into a qr code with Zxing?
I’m developing an android app capable of generating and reading qr codes, the application already encodes and decodes strings, but now I need to do this with images. I’ve tried some paths like…
-
1
votes3
answers12679
viewsHow to change the color of the boot via code on android?
How to change the color of the button via the code, because when touching the button I want it to change the color, the color is inside the drawable.
-
1
votes1
answer4842
viewsHow to Restore Factory Settings from Android Studio?
My Android Studio IDE is giving many problems to compile my android project... How do I "reset" it?
-
1
votes1
answer474
viewsAndroid Studio does not save project changes
Before this problem happened, I compiled and recompiled my projects without any problem. But at the moment, when I compile my project, the IDE compiles the original project state, i.e., it compiles…
-
1
votes2
answers898
viewsProblem in database connection class
I’m having problems with my Mysql database connection class in Android Studio. Error: 10-16 15:04:02.872 532-532/com.example.dev.mbstore W/dalvikvm﹕ VFY: unable to find class referenced in signature…
-
1
votes1
answer603
viewsError accessing "Java Build Path" in Eclipse
When I try to access MEU_PROJETO_ANDROID - Properties - Java Build Path, the following message appears: the Currently displayed page contains invalid values The archive Androidmanifest.xml is like…
-
1
votes1
answer465
viewsHow to reduce a decimal number in java?
For example, for example... Calculating 8/6 I will have a periodic tithe equal to 1.333333... But I just want to show the user only 2 digits after the comma, that is, 1.33. How can I do this?
-
1
votes1
answer2629
viewsAndroid Studio with Mainactivity Problem
I started using Android Studio today, and when creating the App Project I came across a problem: I can create, but the Mainactivity class is full of errors and I haven’t changed anything in the…
-
1
votes1
answer340
viewsWeb Service returning invalid value
Good people, recently I asked a question with the title: Application displaying this error: Error Parsing data org.json.Jsonexception But by researching I came to a different conclusion in which I…
-
1
votes1
answer838
viewsAndroid Alarm / IOS with Phonegap
Good evening, I’m just developing an application for parties. In this application lists the city parties with date and time, tickets and tals.. I’m having a hard time creating a feature, I need to…
-
1
votes2
answers736
viewsHow to return global variable within a Requesttask class
Well I use the Requesttask class to do some things like: protected string doInBackground(String... Uri) protected void onPostExecute(String result) so I want to return the variables to do other…
-
1
votes2
answers336
viewsAndroid: Problem searching last id inserted with Sqlitedatabase (ORM Lite)
I am having a problem executing a query (with Ormlite) that adds the return to 'ultimaConfiguration' in which you should get the last 'id' inserted in the Configuration table. the method that…
-
1
votes1
answer274
viewsAndroid Api for PDF file creation
What are the free file creation api available pdf in Android?
-
1
votes0
answers189
viewsBootstrap Android
I’m trying to make a project using some Bootstrap components, but it’s giving a XML error in my Layout. The error: The following classes could not be instantiated The article of this project with…
-
1
votes1
answer1948
viewsHow to change tab when sliding on the screen?
I have an Activity that has 2 tabs and wanted to know how to change tab not only when clicking on one of them, but also when sliding (left and right) on the screen. My Activity: public class…
androidasked 10 years, 1 month ago Pedro Rangel 2,747 -
1
votes1
answer485
viewsError compiling project in Gradle
It’s giving me the following error message when compiling my project and I’m not getting it right I’d like some help if anyone’s had this problem…
-
1
votes2
answers1640
viewsAdd progressbar to my webview
Hello, I want to add a progress bar to my webview. I saw a tutorial and it didn’t work properly, because the progress bar keeps loading eternally. I will post the code of how it was, I wanted to…
-
1
votes1
answer271
viewsWhen running an Activity I want the execution to wait for the shutdown to continue, or run sequentially the code
How do I run an Activity and after closing it continue executing the code from where it stopped, example: listmarcacoes.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override…
-
1
votes1
answer239
viewsHow do I open a Service from a Broadcastreceiver?
I’m creating an app that intercepts a text message via BroadcastReceiver, more from that I want to receive this text via broadcast open a service. probably this is done via Intent more I can’t do.…
-
1
votes0
answers1773
viewsProblem loading an android app news feed?
Well, I’m having trouble with an app that shows a news listing, on some smartphones where the list was supposed to appear with the news the screen is blank, I searched on the internet and found that…
-
1
votes2
answers196
viewsDoubt with Dialog
I’m using Dialog to display a certain information in my APP, I wonder if it has any function for me to check if the dialog is already open to not open again. public void Dialogo_Iluminacao() { final…
-
1
votes2
answers101
viewscheck function always returning true
i have a layout with several edittext (16) and wanted to make a check if it was changed. when I call this layout I load all my edittexts with database data, having the user the option to save/,…
-
1
votes1
answer1070
viewsChange Actionbar Menu Background
Ola, there is some way to change in XML the background color of the options menu that appears in ActionBar?
-
1
votes1
answer686
viewsEnable android keyboard "Search" key
here again! In some apps we can notice a button on the keyboard with the drawing of a magnifying glass.. that keyboard, or button, if it is necessary to be enabled in the application? I tried…
-
1
votes2
answers89
viewsHow to erase a word at once?
I am using this method to delete the last character typed in a Textview: texto = txtTexto.getText().toString(); int length = texto.length(); txtTexto.setText(texto.substring(0, length - 1)); When a…
-
1
votes1
answer144
viewsHow do I load the application as user id?
In my app you have a user registration. Each user has a name and email, I would like when you start the application to save the default user id (or reload the application when I change the user)…
androidasked 9 years, 8 months ago Allan Chrystian 483 -
1
votes1
answer2175
viewsExport Sqlite files to CSV
I need to give the option for the user to export a desired database table to a file in the SD card, so it becomes personal and it can import to another device later. I have an application where I…
-
1
votes1
answer1478
viewserror while trying to generate android apk
I’m trying to generate apk , more is giving error , not understanding Error:Execution failed for task ':app:packageDebug'. > Failed to read key from keystore Evente log 19:33:33 Gradle build…
-
1
votes1
answer3898
viewsFocus Edittext Android
How do I get focus on one EditText but I’m still in trouble? I’m making a ordering system, I have 3 EditText (product, quantity and discount) and a button Add. I need that when the user click the…
-
1
votes0
answers152
viewsInsert with Inner Join and various conditions in Where clause
What is the best way to make one SELECT with INNER JOIN and with various conditions using Sqlite Android? I thought I’d do it this way: SQLiteQueryBuilder _QB = new SQLiteQueryBuilder();…
-
1
votes0
answers211
viewsHow to put Action Mode on top?
I am using this property in manifest.xml: android:uiOptions="splitActionBarWhenNarrow" 1- The options menu appears at the bottom, following the figure below: 2-And when a click occurs on an item,…
-
1
votes1
answer53
viewsForce refresh Gallery app on Android 4.4
I have an application that handles images, in it has options to move and delete images, when I delete an image is sent a boradcast so that the android gallery application recognize that the image is…
androidasked 10 years ago felipe.rce 1,969 -
1
votes1
answer599
viewsUse a private key for all apps
Why use a private key (other than why post to Google Play)? It’s better to have a key and Keystore for all apps or each app with its own? Having a key and Keystore for all apps influences something?…
androidasked 9 years, 8 months ago felipe.rce 1,969 -
1
votes1
answer969
viewsPrevent the service from being closed
Hello, I have an android app that tracks gps signal, works normal but every time it gets in the background it closes alone. I already researched on the subject and saw that the android controls the…
-
1
votes1
answer83
viewsIn the android eclipse, when the emulator stays in landscape the program does not change?
In the android eclipse, when the emulator stay in landscape the program does not change continues in portrait how to solve it.
-
1
votes0
answers92
viewsIs there any documentation/Example of Signalr for Android?
I’m trying to use Signalr to send msgs to devices with Android OS, I found a library Signalr Java, however I can not find any documentation be official or not. Is there any documentation of Signalr…
-
1
votes1
answer5354
views -
1
votes2
answers72
viewsI need you to return your name by clicking on the list
I’m recreating one of my activitys to work with Action Bar, with a lot of help from Mr @Wakin I was able to make it work: protected void onCreate(Bundle savedInstanceState) {…
-
1
votes0
answers91
viewsAndroid Time Square Calendar XML Error
I’m trying to build a custom calendar for Android. And for this, I’m using the Android Times Qquare library, based on this Project. I imported the JAB from here. When using XML I took example from…
-
1
votes1
answer434
viewsAndroid Toolbar hide Search when it is open
I have a Toolbar (actiobar) that contains a search and when I change from Fragment, I want this search to disappear. If the search has closed, just do a setVisible(false) that it hides, however, if…
-
1
votes1
answer46
viewsSimpleadapter Auto complete
The code below is a adapter that I use to create an autocomplete in my application. mAdapter = new SimpleAdapter(this, mPeopleList, R.layout.custcontview ,new String[] { "Name", "Email" }, new int[]…
-
1
votes2
answers297
viewsUse the return hardware button to another function
I have an app with several Activitys, whenever I change Activity I run the following commands: Intent intent = new Intent(gerenciar2.this, excluir.class); intent.putExtra("tabbanco", tabbanco);…
-
1
votes1
answer461
viewsPick up various values and play within a variable
I needed to get all the answers inside Boolean respostas1 and play inside another variable so I can send it to the Mysql database. The way I did, he’s returning me all false. For example, I have 4…
-
1
votes0
answers8920
viewsHow to open projects in Android Studio?
I downloaded several projects ready for study purposes in Android Studio. They are projects like calculator, calendar, etc. But I can’t open them in Android Studio in the way I think is correct. I…