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
votes1
answer123
viewsDoubt of Switch
I have a dialog with Switch and programmed with Click to change and now I need to do the same thing when the user drags the Switch off to on or the other way. public void Dialogo_Setor() {…
-
0
votes1
answer659
viewsDynamic layout with invisibility, cannot restore element position
My point is, simple fact is I don’t know much about this yet. I’m having a problem with invisibility, I have a vertical Linearlayout with two buttons and when I click on the first appears another…
androidasked 9 years, 8 months ago Pedro Miguel 3 -
0
votes2
answers731
viewsExtract JSON array data on Android received by Datasnap
Good afternoon. I would like to know how I can extract the data received by the server using Datasnap from Delphi. I’m doing it this way, but it’s returning an error: lista_versoes =…
-
0
votes1
answer2195
viewsHow to go back to an Activity already created without recreating it again?
I know that activities on Android are stored as a stack. But I needed to use the button onBackPressed() and go back there are 2 screens behind without recreating this screen. With the Intent it…
androidasked 9 years, 1 month ago daniel12345smith 2,120 -
0
votes1
answer77
viewsError when terminating a java service on android
Hello! I am in error when closing the service of my application: 03-13 13:34:13.572: E/test(9039): Exception 03-13 13:34:13.582: E/AndroidRuntime(9039): FATAL EXCEPTION: main 03-13 13:34:13.582:…
-
0
votes0
answers392
viewsHow to open a specific folder using Android using Intent
My application records videos in Pictures/Mycamera folder. There is some way to open, the default Android gallery, only in this folder? I used this code and it didn’t work. Intent intent = new…
-
0
votes0
answers128
viewsAndroid.Camera2 - Rotation Error
Good night! I’m trying to implement the android.hardware.camera2 in a project, but I have a problem in the rotation of the camera! The following happens, before taking the photo, with the phone in…
-
0
votes0
answers56
viewsStream JSON between devices with Wifi Direct
I need to transmit data between devices via JSON and store the data on Sqlite. That is, there will be a device responsible for receiving the data and at the end will send a "OK" message to the…
-
0
votes1
answer199
viewsAsynchronous chat on Android
I’m developing an Android app where the home screen asks for user login. Simply put, a user can see the list of other registered users. I now need to implement an asynchronous chat. That is, the…
androidasked 9 years, 1 month ago PHP developer 205 -
0
votes0
answers39
viewsProblems with Lib Pdfview
I’ve had the following problem for days: I am using the Pdfview library to upload a PDF to my application. https://github.com/JoanZapata/android-pdfview Sometimes the PDF disappears, becomes a white…
-
0
votes0
answers83
viewsActivity with bug that is breaking the layout
There is an Activity that gives a bug once in a while, it gets the appearance of the image I posted, then when I click on it, it goes back to normal, but this is random, there are times that do not…
-
0
votes0
answers213
viewsList Adapter does not update after removing
The situation is as follows: I have a SeparatedListAdapter and with it I create 3 sections for my listview. Inside the sections, add 3 Adapters and 3 ArrayLists. The problem is that in each of the…
-
0
votes1
answer18
viewsViewflipper does not detect Motionevent after inserting Scrollview into it
Use Viewflipper with 4 "pages". Worked, until I insert Scrollview on each of the pages. How can I resolve?
-
0
votes1
answer1743
viewsUse a variable in an Activity declared in another Activity
In my application I have a Sharedpreference variable that stores an int value for me. This value has to decrease as the user performs some actions, as if it were a counter. Let’s say that each time…
-
0
votes1
answer258
viewsI’m using openGL on android, time to emulate error
I am testing an example found on the internet and at the time of execution gives me the following error on Logcat 03-23 09:43:22.286: E/androidruntime(1036): FATAL EXCEPTION: Glthread 72 03-23…
-
0
votes1
answer164
viewsRecyclerview grouped together
I’m trying to make a grouped recyclerview but I’m having enough trouble. A while ago I saw a lib that would serve me but I don’t remember where I saw. I made a drawing to explain my doubt better, I…
androidasked 9 years, 1 month ago Thiago Porto 292 -
0
votes1
answer104
viewsLaunch Exception on the onCreate of an Activity
I am working on the development and refactoring of some Activity's that has similar behaviors in our projects, so to avoid code repetitions, for common functionalities, I created some Activity's…
-
0
votes1
answer794
viewsIn the Actionbar Menu, how to allow the icon of an item to be always visible, and the text only when there is space?
I’ve been trying and researching for some time the possibility of having a behavior in my Menu of ActionBar, as follows for some items: Icon (android:icon): always visible in the ActionBar; Text…
-
0
votes1
answer60
viewsHas anyone already managed to integrate the card.io plugin into a Cordova project for android?
I’m trying to make a plugin integration Card io. on a Cordova project for Android and the only reservoir I found was this and the instructions are not consistent with zip (namely the name of one of…
-
0
votes1
answer211
viewsWhy can’t I instantiate an object by clicking my button?
The operation of the button is correct, it executes all previous lines. However, when instantiating an object Email displays the error. public void send(View view) { EditText text = (EditText)…
-
0
votes0
answers47
viewsWhy my Asynctask Freeza?
The moment I instate an object EmailTask the app hangs =( public void send(View view){ EditText text = (EditText) findViewById(R.id.editText); Switch iluminacao = (Switch)…
-
0
votes1
answer67
viewsSending Email direct from the application
Good morning, I am developing an application in which I need to take a String Array and send by Email directly from the application, would anyone have any notion of how I can do this ? Thank you…
androidasked 9 years, 1 month ago Alan Martins 123 -
0
votes2
answers987
viewsPhonegap Build how to change Cordova version
When publishing my application on google play the same was rejected, the reason was this: Security alert We would like to inform you that your app was created in a version of Apache Cordova that…
-
0
votes0
answers49
viewsAdvertising error
I’m trying to put advertising in my application, my application has two screens the first screen I managed to put like this telainicial.xml <com.google.android.gms.ads.AdView…
androidasked 9 years, 8 months ago Ilgner de Oliveira 1,098 -
0
votes1
answer1996
viewsError while trying to consume Webservice: Server did not recognize the header value
I am facing the following error when trying to read a Webservice: SoapFault - faultcode: 'soap:Client' faultstring: 'O servidor não reconheceu o valor do cabeçalho HTTP SOAPAction:…
-
0
votes1
answer425
viewsEmpty drawable folder Android Studio - None of the resolution options appears
I created a new project in Android Studio Version 1.3.2 and it does not appear any of the folders that specify the resolutions corresponding to them ex: Drawable-hdpi, Drawable-ldpi. I’ve changed…
-
0
votes1
answer76
viewsApplication to give directions by gps on android?
I was thinking about developing an android app for bus/bus users to find stops. The idea would be to have my coordinates the coordinates of the stop and see the distance , but I also need…
-
0
votes1
answer38
viewsComo definir a categoria de um app no android
How I define the category of my Ex app. media, tools, social... It would be in manifest.xml or playStore?
-
0
votes1
answer72
viewsExtract apk to put in playstore
I’m having problems with XML of my colors. When I try to finish the extraction, is giving error, but the application runs on my phone, I’ve done clean and build and that’s okay, but on the other…
-
0
votes1
answer34
viewsCapture Form Expandlelistview Fields
I have a ExpandleListView with each item having its own layout. This layout has Editexts, checkbox, etc. I need to capture what is typed and selected in each item of the expandle listview. Has…
-
0
votes2
answers928
viewsHow to enable the button next to Android to go to a specific field?
I have a form with 4 Edittexts and when I finished filling the first one and clicking the next I needed to go to the third field. Does anyone know how to set this to the next go to a specific…
androidasked 9 years, 1 month ago daniel12345smith 2,120 -
0
votes1
answer352
viewsDo not allow onBackPressed to run
In my application, when the user logs in if he or she presses the onBackPressed() from his smartphone the app should not return to the previous screen. When he logs in and I change Activity I set in…
androidasked 9 years, 1 month ago Mateus Carvalho 1,494 -
0
votes2
answers444
viewsWhat is the correct way to call a method from a class that inherits from an Activity?
Because if I instantiate the class with "new" and call the method equal to Java it doesn’t work. I have a class that inherits from an Activity and I needed to use her method in several classes. Does…
-
0
votes1
answer993
viewsAndroid sqlite - Return _id logged in Listview only one value selected using Where condition
Good evening guys, I’m new here, I’m new to Android programming, but I decided to do my TCC, a project on Android. by doing alone, finding material on the Internet, without taking Android lessons,…
-
0
votes1
answer85
viewsGoogle Analytics engagement hit. Can I create an "automatic"?
For those who don’t know, to calculate the "average session time" of a user, Google Analytics proceeds as follows: https://support.google.com/analytics/answer/1006253?hl=pt-BR To clarify what an…
-
0
votes0
answers147
viewsFunction does not work after installed the application
This is the function that when installing does not work. document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { document.addEventListener("backbutton",…
-
0
votes1
answer59
viewsDetect absence of light in Android camera
I need to capture the image of the Android camera and detect if the user puts his finger on top (dark). Is there a library that does it simply? Thank you,
-
0
votes0
answers521
viewsHow to Capture Device Microphone Sound
How to capture the device’s microphone sound. Better specifying. I only need the volume of the captured sound. The idea is to call a method to a given volume. It is possible?
-
0
votes1
answer674
viewsListview occupy the entire screen
I have this listview main.xml <ListView android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/praias" android:layout_above="@+id/adView" /> I was Wanting the…
-
0
votes0
answers11
viewsLogin View that opens in Webview
<?xml version="1.0" encoding="utf-8"?> <LinearLayout android:layout_height="wrap_content" android:layout_width="wrap_content" android:orientation="vertical"…
-
0
votes1
answer140
viewsBuild for iOS and Android
I have a question about the build for iOS and Android. I recently lost the sources of an app I developed on these two platforms, but the apps are already in stores. I wondered in Apple support if it…
-
0
votes1
answer25
viewsProblems with get_blob using Cursor
I saved an image by turning it into a byte array, in a column in the Sqlite data-type byte. When I do a cursor to fetch this image from the bank using the class Cursor and the method get_blob(),…
-
0
votes1
answer179
viewsKSOAP ILLEGAL PROPERTY
I made the webservice using Android and KSOAP, now I need to consume the webservice... The specified method needs to recover all users from the database (idusuario,username) Guys, I’m making the…
-
0
votes1
answer1918
viewsReturn a query with all data from a table for android
Good afternoon guys, I’ve been having a question for a long time but I’m just trying to get it out now. I have an app that communicates with an online database remotely through a PHP Web Service. I…
-
0
votes1
answer125
viewsImport Android library in Java project: Noclassdeffounderror
I am trying to import an Android library into a Java desktop project. But the library doesn’t find any classes that are related to import android.os. I’m having trouble with class Handler…
-
0
votes1
answer82
viewsLike does not return data
I have a function in mysql that returns a decimal value. In this function it has a like. When I test sql in mysql the value is returned if I enter a letter or more than one. Ex: LIKE 'Home%'. As for…
-
0
votes0
answers79
viewsI can’t identify the error on Android
If anyone knows this is wrong. 04-09 13:45:42.403: E/androidruntime(5902): FATAL EXCEPTION: main 04-09 13:45:42.403: E/Androidruntime(5902): java.lang.Runtimeexception: Unable to instantiate…
-
0
votes0
answers316
viewsHow to change the scroll speed of listview?
The default listview scroll is very fast, and as I turn off the "Recycle" of my listview because I am painting some items, I realized that it is getting slow when I swipe over the list. Does anyone…
androidasked 9 years ago daniel12345smith 2,120 -
0
votes0
answers27
viewsThe eclipse is returning this error "R can not be resolved to the variable"
I was programming normally until I clean up my project to remove the warnings, the eclipse has successfully cleaned up but displays me this error R can not be resolved to the variable In all java…
-
0
votes0
answers392
viewsWhy does my Playerprefs (Unity) not work on Android?
That’s my first question and first post here! Well, I’m playing a game on Unity android-facing and created a javascript to save and calculate some values. Here’s how it works: My game has some…