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
answer207
viewsAndroid Google Maps API
There is the possibility to plot route in the Google Maps with information on traffic, accidents and average time of arrival at destination? Or any lib of the type making such a request?…
-
1
votes0
answers31
viewsCheck if another Application is alive
I have an application that runs 24 hours a day generating some data, and it used to crash from time to time when it needed to send the data to a web server. Then came the idea of dismembering into…
androidasked 8 years, 9 months ago Christian Beregula 1,512 -
1
votes1
answer88
viewsMainactivity with Login
I would like to know how best to use an application with Login (in relation to activities). I’m using Mainactivity with a Navigation Drawer, and when opening the application it checks for…
-
1
votes1
answer26
viewsLow performance when converting Blob to Bitmap
I’m using the following code : BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 4; bitmap = BitmapFactory.decodeStream(blob.getBinaryStream(), null, options); The…
androidasked 8 years, 9 months ago Rodrigo Santiago 1,822 -
1
votes1
answer33
viewsDisable Fabric Answer
I have the Crashlytics added in my app. Today out of curiosity I enabled the Answer on the Dashboard of the Fabric.io. I would like to disable it is possible? I searched for several options on the…
-
1
votes1
answer231
viewsListview Fragment
The list is loaded into the Fragment with the selection of the Actionbar menu item. However, when I click on a different tab than the one that has Fragment with the list, and return to the tab with…
-
1
votes2
answers3625
viewsAndroid, pick up id of an item from a listview through long click
someone knows how to pull an ID from a Listview item through the SetOnItemLongClickListener and could tell me if this method would work with an item being displayed from the database?? The code of…
-
1
votes1
answer133
viewsHow to dim the size of a Blob image?
I have an image in Blob in the bank, it is in high resolution, I needed to decrease the resolution of it. Does anyone know how to do this? I thank you already.
androidasked 8 years, 8 months ago daniel12345smith 2,120 -
1
votes3
answers1124
viewshow to show data from a sharedPreferences in a Listactivity
I’m starting to work with Sharedpreferences on android, a simple and fast way to store static and primitive data. However, my problem is showing these values stored in a Listactivity. I’ve looked…
-
1
votes1
answer46
viewsPlayer com onGoingNotification
I have the following code: private Notification ongoingNotification() { NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Intent intent…
-
1
votes1
answer86
viewsI cannot create a new Activity
I’m doing a project that uses the v4 support jar. However, when I create a new Activity, the project gets errors, as it informs that support v7 is required. There is possibility to continue…
-
1
votes2
answers294
viewsJava error inserting picture into spreadsheet. Apache Poi
I am trying to insert an image into a sheet using Apache POI , but I am getting the following error : 03-03 20:21:50.898: E/SELinux(28413): selinux_android_seapp_context_reload: Error reading…
-
1
votes0
answers100
viewsHow to maintain the position of a Listview when an item is changed?
How to maintain my position ListView, containing a EditText, when the value of this EditText is amended? Call from the class that fetches the data in the database: /* Instancia da classe…
-
1
votes2
answers330
viewsHow to create notification with custom layout?
I wonder if it is possible to create a notification (Ongoing Notification) using an xml? if yes, could pass me a basic with buttons and picture? XML: <?xml version="1.0" encoding="utf-8"?>…
-
1
votes1
answer313
viewsProportional area use with Gridlayout
I’m having the following difficulty, after searching exhaustively on Google and not finding an answer to this my doubt, I decided to ask here, I would like to place a Textview next to a Button, so…
-
1
votes1
answer45
viewsJSON does not complete when sending by Bundle
I’m trying to get the return of a push on android through the Bundle, but I’m having some problem performing bundle.getString("Message"); as it does not take all my reply which is in JSON format,…
-
1
votes2
answers922
viewsLoad Map in Fragment - Android
I’m creating an app with 2 tabs in Swipe, loading Fragments. Since the first is a Listfragment (which is ok), the second should load a map, but, after I tried to insert, crashes the application and…
-
1
votes1
answer140
views"Error: Identifier expected" when trying to compile a project with res/raw videos
I’m making an application only to manage videos that are already inside the application inside the res/raw folder, but when I compile without calling the videos, it gives the errors: Error:…
androidasked 8 years, 8 months ago Rafael Nobrega 194 -
1
votes1
answer106
viewsGame javascript no Framework Cordova or phonegap
Good afternoon, I created a little game for web with javascript, I wanted to port it to android, after searching I found Cordova or phonegap, which is pretty cool, but when I compiled the game for…
-
1
votes0
answers42
viewsrequestLayout() improperly called by Listview
I have the following error, when I call my screen of categories they load normally, I go to the second tab called expense that loads a list, so everything well, when returning to the first tab, the…
-
1
votes0
answers287
viewsFragment does not appear in a Toolbar with Tablayout
I am trying to show 2 list layouts in the same Activity using Viewpager, but for some reason the layouts are not being shown on the application screen (they are blank), however, when debugging,…
-
1
votes0
answers83
viewsVoice Recorder with Pause
I’ve been looking, but I didn’t find anything, the most I found were recorders with just stop, my application the pause is essential. If anyone can help me.
-
1
votes2
answers303
viewsAndroid app => Unfortunately project has stopped
I’m studying Android and want to make a simple parameter pass to another Activity but the application is finished in the emulator and logCat shows a Nullpointerexception, someone can help me? Class:…
-
1
votes0
answers31
viewsHow to receive feed changes instantly?
I’m trying to make a podcast player and I have a question about the feed system. I thought of doing a sync button, which would be able to return the updated list of podcasts when pressed. But I…
-
1
votes2
answers600
views -
1
votes1
answer63
viewsExpanded notification
I have the following codes (XML and notification respectively) for a notification plus it this small, I would like to let it expanded to suit everything XML <?xml version="1.0"…
-
1
votes0
answers922
viewsPrint via bluetooth using PHP on ANDROID
Hello! I am participating in a project made in PHP, which will run on ANDROID (via Phonegap). The app will print to a portable printer via bluetooth communication. The printer is already paired with…
-
1
votes1
answer108
viewsBy pressing Play button more than once the sound plays simultaneously
My problem is this: I have an Android application that runs a Player, containing a "play" button, after the click appears "stop" and performs the sound. Works in a Navigation Drawer, so far so good…
androidasked 8 years, 8 months ago Gerson Santos 38 -
1
votes1
answer334
viewsUser login with Webservice
I would like to ask the connoisseurs of Java (Android) to guide me in this code: Mainactivity: @Override protected void onCreate(Bundle savedInstanceState) { Log.d("TESTE", "Iniciou MainActivity");…
-
1
votes1
answer225
viewsJava check two tables inside Sqlite
I have a database that has two tables, being them EstoqueDBQ and FilaDBQ, I need to create the following logic. If the value exists in the table Filadbq and in the EstoqueDBQ, this value should be…
-
1
votes1
answer539
viewsPrevent Edittext from opening keyboard when I enter the layout
Whenever I enter a layout that has a EditText, It opens the digital keyboard by default for me to write something. I wanted to stop this, I wanted him to show the keyboard only when I clicked on…
androidasked 8 years, 8 months ago CristianCotrena 1,145 -
1
votes1
answer2564
viewsIs it possible to modify any game?
It will be possible to modify an action or add some new object in any game using java? For example: add a new monster to the game, add properties, increase player speed, life etc.
-
1
votes1
answer1165
viewsHow to make a simple image gallery for Android?
I need to create an image gallery where I swipe to move to the next image. I’ve been doing some research and I’ve found a lot of ways to do something similar to what I want, but I got very confused.…
-
1
votes1
answer295
viewsHow to take data from a form and play in a PHP Array
I have an Android application, which creates a TXT file in PHP, bringing the data from the XML form of Android itself. See the code: $f = fopen('POST_DATA.txt', 'a'); fwrite($f, 'ID: '.$id."\r\n");…
-
1
votes1
answer537
viewsString Error CPF Android
Does anyone have a CPF code for validation on Android? I have the following code: public static boolean validateNotNull(View pView, String pMessage) { if (pView instanceof EditText) { EditText…
-
1
votes0
answers103
viewsTurning Meters into Pixels
I would like to turn a metric value into pixels to add to a Marker. In earlier versions it used if as follows: import com.google.android.maps.Projection; Projection projection =…
-
1
votes0
answers29
viewsProblems with Autocompletetextview
I’m wearing it for the first time Autocompletetextview with Json back through the google the streets. Everything goes well until the moment I click on the street and get let’s imagine that I click…
-
1
votes1
answer117
viewsGradle error app:processDebugGoogleServices'
I have an error trying to generate APK in Android Studio, this being demonstrated the following message: Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the…
androidasked 8 years, 8 months ago dnsfirmino 401 -
1
votes0
answers227
viewsThe JSON array does not want to pass everything to my listview
Here’s my mistake, when I run the app in the emulator, the app does not receive a single title from array JSON, does not close the application, the only error that is in logcat, was supposed to be…
-
1
votes1
answer36
viewsError generating APK file values from Google Analytics
I’m having a problem in google Analytics when I will generate the APK this being demonstrated the following error message. .../app/build/generated/res/google-services/release/values/values.xml…
androidasked 8 years, 8 months ago dnsfirmino 401 -
1
votes0
answers89
viewsPushnotification does not close [Android Wear]
My project has several types of notifications. I created an ENUM where I store the type and id of the Notification. final Intent intent = new Intent(getApplicationContext(),MainActivity.class);…
-
1
votes1
answer608
viewsIon Json Android
I’m working with this library https://github.com/koush/ion and I am unable to manipulate the data return via JSON of the following format…
-
1
votes1
answer583
viewsListview of Android database - Close application with error
I’m implementing a registration with Sqlite3 on Android and so far okay, the problem is in the call of Activity data listing when the registration is successfully performed, when making the call to…
-
1
votes2
answers449
viewsColor Spinner Progressdialog - Android
How do I change the default color of Progressdialog (Spinner) on android? Below is the code I’m using: ProgressDialog progress = new ProgressDialog(this); progress.setTitle("Título);…
-
1
votes1
answer113
viewsSet Linear background layout from String variable
I have a function that takes a number (in the String format) as a parameter and checks if it is between the numbers 1 to 5. Here is the function: if (fundo.equals("1") || fundo.equals("2") ||…
-
1
votes2
answers185
viewsAndroid app restarts if it gets out of focus for a while
My app is an intermediary for a service request, e.g.: (UBER). What happens is that the main screen of the business, which is the one that the professional is moving to go find the customer,…
androidasked 8 years, 8 months ago Mateus Carvalho 1,494 -
1
votes2
answers90
viewsUpdate all table records with Sqlitedatabase.update()
I have the following code to update a field in my table. I wonder if I could change the "note" and "missing" fields in all table records. Example: put all records with note = 8 and missing = 5…
-
1
votes1
answer87
viewsHow to add a Progressbar to a Pageradapter?
I have a Viewpager that uses a Pageradapter to make an image slide. In my class extending Pageradapter I have an Asynctask that loads images from the internet and plays in Imageview. How can I put a…
-
1
votes1
answer35
viewsA service can be killed by android?
I know that depending on the time that one Activity be in a state of onPause() and if the device needs to release memory it will kill this Activity. I wonder if the same happens with the service…
androidasked 8 years, 7 months ago Mateus Carvalho 1,494 -
1
votes1
answer2285
viewsCoordinate - Latitude and Longitude Android
I need when recording a client on Android, pick up the location where the phone was when it was recorded. My question is: How to get latitude and longitude on Android (ex: getLatitude())? How to…