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
-
0
votes2
answers183
viewsMake two items in a Listview change position
I’m creating a button called Up, to make an item in the listview go up, while the one above. But I’ve tried everything and it won’t, I don’t know if I’m wrong about logic. But I’ve tried it in two…
-
0
votes2
answers184
viewsVersions of Constants according to Buildtype
I have some constants which I would like to vary according to how BuildType of Gradle. Among them are the URL’s of the API’s that I use in my app, which can be production, homologation and…
-
0
votes3
answers2797
viewsHow do I use Actionbaractivity in an application that runs on android 2.2 or higher?
I want to use Action Bar in my application that will run also on devices with Android 2.2 or higher. I know that I must use the Class ActionBarAcitivity, which is the API provided by Google. I’ve…
-
0
votes1
answer449
viewsHow to take photo via services on android?
I need to develop an app to take photos without the user noticing, as in the anti-theft programs that exist today. I need the phone to open the camera app and take a picture when the phone or phone…
-
0
votes1
answer463
viewsHow to install an apk directly from my application, with Titanium studio?
I need to be able to update an application, without the need for it to be in the Play Store or the client to access the internet to download it. I need something automatic, but without customer…
-
0
votes1
answer1723
viewssetOnClickListener (Unfortunately Myapplication has stopped)
Whenever I try to use setOnClickListener the application to, I have tried several methods to try to fix this problem, but I could not. the Login button is properly set in R, also in the layout, the…
-
0
votes1
answer180
viewsDoes not recognize a Listview element
I’m creating an event of click, for when a particular LinearLayout which sits on a ListView. The attributes of this ListView are in an XML (item_list), but is not able to seek the linear to make the…
androidasked 10 years, 8 months ago user4647 -
0
votes1
answer313
viewsError - You must Supply a Resource ID for a Textview
03-17 08:31:32.283: E/ArrayAdapter(1085): You must supply a resource ID for a TextView 03-17 08:31:32.283: D/AndroidRuntime(1085): Shutting down VM 03-17 08:31:32.283: W/dalvikvm(1085): threadid=1:…
-
0
votes1
answer1064
viewsConvert Bitmap/Drawable to Drawable (int)
I need to convert a Bitmap or even a Drawable into a Drawable (int), because I’m using a Bootstrap for android that needs an object of this type, but as I’m downloading the image of a url and not…
-
0
votes2
answers2314
viewsThe method openOrCreateDatabase(String, int, null) is Undefined for the type Bancodedados
I’m having trouble creating a class that creates and manipulates the database! But in the method criar() gave a problem saying that "The method openOrCreateDatabase(String, int, null) is Undefined…
-
0
votes1
answer114
viewsProblems with Thread on Android
I have a listview to be populated/fed by a webservice, but only load my images with a handler. I want to use a Thread, but only run with a Handler and I don’t understand why... Can someone help me?…
-
0
votes1
answer344
viewsJsoup in Android
I’m having trouble running my Android application with Jsoup. It’s a simple example, but it’s returning nothing. Java class: import java.io.IOException; import org.jsoup.Jsoup; import…
-
0
votes1
answer1009
viewsRead text file via HTTP
I’m creating an app for Android with Android Studio and I’m having trouble reading a text file that is hosted on the Internet. Whenever I try to execute the method checkVersion() it returns the…
-
0
votes4
answers3330
viewsHow to use Asynctask on Android?
I’m trying to get my application to download an XML (RSS Feed) and read your tags to display it on the home screen. But the application closes after downloading before trying to start the method…
-
0
votes1
answer231
viewsAsync Task and/or Application
I’m developing a app that you need to always be connected to the server. For this I thought to use a async task to run the connection to the server in the background but when I switch to Activity…
-
0
votes1
answer182
viewsScrolling between screens
I want to scroll between different screens. For example, create an equal scroll of the mobile menu or the desktop that when pulled one will occupy the space of the other. How can I do that?
-
0
votes1
answer135
viewsERROR while trying to delete news (ANDROID JSON)
At this link teaches to list comments (in my case news) using external database. There is the download of the project. How can I delete a news by selecting and still make one appear Dialog asking…
-
0
votes1
answer1855
viewsCalling new Activity via an Imageview
I need to call a new Activity through the click in a ImageView. Follows my code: final ImageView botaoAbrirMesas = (ImageView) findViewById(R.botoes_laucher.openMesas);…
androidasked 10 years, 7 months ago user3456780 31 -
0
votes1
answer1035
viewsHow to download a file and open it at the end of the download?
I have an Android application, I’m trying to download a .apk and then open it when the download is finished, follow the code used: /** * baixando arquivo na background thread * */ @Override…
-
0
votes1
answer739
viewsPick up date time device phonegap
How do I get the device time date using phonegap?
-
0
votes1
answer624
viewsSynchronize Listview Ids with database
I’m working on a college project where I use a database and a Listview. The problem is when I need to recover the data from one of the Listview items, as I cannot synchronize the Listview Ids with…
androidasked 10 years, 7 months ago Renan Lazarotto 1,025 -
0
votes2
answers1416
viewsHow to run commands in Android Studio?
I need to execute the command: Gradle -q dependencies to check library conflicts in Android Studio.
-
0
votes1
answer215
viewsOrmlite Inner Join in five tables
I want to create some JOIN in five tables like this example: SELECT * FROM TableA AS TA INNER JOIN TableB AS TB ON TA.Id = TB.IdTA INNER JOIN TableC AS TC ON TB.IdTC = TC.Id INNER JOIN TableD AS TD…
-
0
votes1
answer81
viewsAPI 16+ Database Error
Well folks, I’m working on my application, and everything was perfectly fine... I had finished it with your help, but I found another problem. I was testing it on Android 2.3.3 because it was more…
-
0
votes3
answers298
viewsScreenorientation
I created a layout and in it I put the following code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer3888
viewsHow to get latitude and longitude without internet on Android?
How do I get latitude and longitude in Java to the Android without using the internet, only with GPS. I think there is some way yes, because the application "Maps" of Android does not use the…
-
0
votes1
answer161
viewsAndroid supports RMI?
The Android supports the Java rmi? I’m developing on the platform Android 4.0. If supported, please. Please report a report or tutorial on how to do this communication?…
-
0
votes2
answers231
viewsWhat annotation is used in Ormlite mapping for Enum as Foreign?
I have the Client class and the Animal Award, where a customer can have 1 or more pets. I would look like this: @DatabaseTable(tableName = "cliente") public class Cliente{ @DatabaseField(generateId…
-
0
votes1
answer80
viewsProblem with Datepickerdialog
I bought a book to study Android, I’m following and trying to understand how the components work When I click a button, I need you to open a modal with the date component. I’m using SDK 19 with…
-
0
votes2
answers443
viewsDoubt about android using classes
I have the following method implemented and I will use it in various Activities private int dia, mes, ano; String data; String dd, mm; int hora, minuto; static final int TIME_DIALOG_ID = 0; String…
-
0
votes1
answer163
viewsProblems with Android Studio
Today I migrated to Android Studio, I was using until today Eclipse + ADT to develop for Android. So I gave the run in the application and gave this error: the module cannot be android library I…
-
0
votes1
answer647
viewsUpdating Apk on Google Play
I made some modifications in an app that was started by another developer. The modifications went all right and now I want to publish in Google Play. I followed the tutorial…
androidasked 10 years, 7 months ago JamesMartins 97 -
0
votes1
answer130
viewsHow to access the View that triggered one of the events of a Textwatcher?
Explanation: I have a common application where there are several components EditText, where I assign them an Handler that would be this one: TextWatcher handler = new TextWatcher() { @Override…
-
0
votes1
answer618
viewsHow to Capture Usage Time of Apps Installed on Android
I wonder how I could capture the usage time of all apps installed on Android. There are some apps that do this in the Play Store. I have been doing several searches and found that there is a code…
-
0
votes1
answer731
viewsService is stopped when running on BOOT_COMPLETED
People were making an example for a service an application to be started on boot, it seems to start but it breaks off in a few seconds and I can’t understand why, I’m following an example of a book,…
-
0
votes2
answers410
viewsUnknown Error: "null" when running an Httppost with Parameters
Explanation: I own a simple Android app, and also a Nodejs server. I have the following permissions on AndroidManifest.xml of my application: <uses-permission…
-
0
votes1
answer155
viewsAdd reference to a contact in an Edittext
I am working on a project where I need a form in which it is possible to place a Contact. How can I add a reference to a calendar contact? This is possible? My idea was something like: user touches…
androidasked 10 years, 6 months ago Renan Lazarotto 1,025 -
0
votes3
answers902
viewsPass value to a java function
Hello! in Javascript to pass a value to the function I do: <button onclick="myFunction('valor')">Click me</button> and crawl like this: function myFunction(a){alert(a);} and in java on…
-
0
votes1
answer125
viewsWhy does Mainactivity inherit from Actionbaractivity?
I’m creating a new project and my Activity appears as ActionBarActivity: public class MainActivity extends ActionBarActivity someone knows why or how to tidy up?…
-
0
votes1
answer1887
viewsHow to customize java.io.Ioexception error message on Android?
When Android makes an external connection and this url is not available it returns an error. How to customize an error as in the example below: java.io.IOException: Error response: 401 Service…
-
0
votes1
answer218
viewsEvents on buttons
How do I place event in buttons to call another screen on Android? I’m using the Intent, but I’m not getting it.
androidasked 10 years, 6 months ago Rafael Carlos 133 -
0
votes1
answer74
viewsHow to take out the layout name and appcompact Fragment?
Hello, these days my computer crashed and I had to format and then had to install the software for Android development again. Only that after I installed it is different, it is appearing Fragment…
androidasked 10 years, 6 months ago Jhonas Boeno 162 -
0
votes1
answer1909
viewsWhy is the eclipse autocomplete function not working within the Onclicklistener?
I was writing my codes normally when one day I realized that Eclipse (the program I’m using to make Android apps) is not completing my words, for example: I have a variable called 'Functions', when…
-
0
votes1
answer262
viewsApplication closing in user interaction after being summarized
I’m playing with an app that controls the flash from my mobile phone, but the same force close as soon as the user interacts with the application, after it has been summarized. For example: I opened…
androidasked 10 years, 7 months ago Renan Lazarotto 1,025 -
0
votes1
answer73
viewsStartactivity inside Broadcastreceiver
I want to go to another Victoria when I enter onReceive of my receiver, but always stops working on startActivity, the code I’m making is like this: @Override public void onReceive(Context context,…
-
0
votes1
answer634
viewsAndroid with external barcode reader
Hello, I have a screen with fields for typing and a specific field where I will use the external barcode reader. The problem is that the scanner disables the virtual keyboard. Any idea how to leave…
-
0
votes2
answers1597
viewsHow to convert an image to hexadecimal?
Hello, I wonder how to convert an image that is on my memory card in hexadecimal. I have an application that prints a receipt through a thermal printer, it prints some information like date, time,…
androidasked 10 years, 6 months ago user3279428 1 -
0
votes1
answer21877
viewsHow to wake up the screen only by touching the android screen
It would be possible to wake up a device with Android Operating System just by touching your screen, without pressing any physical button like Power or Home, such as on Nexus 5 and LG G2, where a…
-
0
votes1
answer53
viewsFragmentactivity in tab Swiper
I’m not getting to insert a Fragmentactivity for tab Swiper: @Override public Fragment getItem(int position) { switch (position) {case 0: return new HomeActivity(); case 1: return new…
-
0
votes1
answer3255
viewsChange custom spinner selector
I created a custom spinner and a custom dropdown spinner, when using them, the selector is almost invisible and its color also does not help. I wanted my spinner selector to be bigger, it could be…