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
-
3
votes1
answer680
viewsHow to Implement Navigation Drawer with Map in a Fragment
I created a project Navigation Drawer in Android Studio the one that comes ready. Now on one of fragments, need a map with a location. How to implement?
androidasked 9 years, 3 months ago Daniel Kchevi 125 -
3
votes2
answers96
viewsError generating custom Listview
Hello, I’m trying to accomplish the implementation of a ListView custom on Android, but I’m not getting it. It’s something simple, I’ve done other times, but I can’t see where I’m wrong.…
-
3
votes1
answer1438
viewsEnable Webview Downloads
Hello I’m developing an app with WebView and I realized that it is not possible to download files from the web. I tried to download a Dropbox file, It is possible that before downloading the file an…
-
3
votes1
answer158
viewsCommunication between Fragmentes and Eventbus
In my application I have 1 Activity, and in it using Slidingtablayout and a Tabsadapter, I’m calling 3 Fragments. By clicking the save button, I want to recover the contents of the 3 Fragments, and…
androidasked 9 years, 3 months ago JamesOrtiz 319 -
3
votes1
answer272
viewsUpdating data from one Active to another
I’m making an app android that uses communication telnet and receives data every second (ActivityTelnet). I would like to treat part of this data in another activity(Activity1). But when I’m in…
-
3
votes1
answer1247
viewsChange Actionbar button icon
I have this layout with this button of heart , it has as inside of the event of click of this button I change the icon I was hoping to trade my heart for this heart when you click the answer below…
androidasked 9 years, 9 months ago Ilgner de Oliveira 1,098 -
3
votes2
answers85
viewsFixed and unique value on Android in Unity 3D
I’m having trouble getting a unique and fixed value in C#, I need to get a value like this, for security reasons of my software. I’ve tried using the SystemInfo.deviceUniqueIdentifier, but…
-
3
votes0
answers682
viewsHow do you create PDF file from ZERO (without frameworks)?
Well, I’m analyzing some possibilities to generate PDF’s on Android (offline), and none is fully satisfying, either by the license, features, large size framework, or support version of Android…
-
3
votes1
answer428
viewsError trying to create a database connection (Mysql)
I tried to make a connection to the Mysql database using AsyncTask, but is giving error in the class responsible for the connection, the MysqlConnect: The constructor Log() is not Visible I’m…
-
3
votes2
answers934
viewsIs it possible to use Actionbar on Android natively?
I’m doing some test applications and I ended up coming across something that has caused me many doubts, the Android support libraries. I tried to develop an application that uses Actionbar natively…
androidasked 9 years, 9 months ago mateusalxd 2,768 -
3
votes1
answer1919
viewsPerform an action only when the app starts for the first time after installation
I’m making an android app that needs to show a message when starting for the first time. For example: the user installs my app and runs it. In this run, the app shows a message for the app to get a…
-
3
votes1
answer67
viewsIs it possible to implement the onLongClickListener method on the map?
I am developing an application that works on Google Maps API v2. I’ve already defined the method onClickListener() to open a WindowManager in order to display the name of the point of interest and…
-
3
votes2
answers1106
viewsHow to open an Activity from a java notification on android?
How to open an Activity by clicking on the notification. The detail is that I want it to reopen again even if it is open in order to update the data of it. I’m using: int icon =…
-
3
votes1
answer61
viewsAndroid restriction - 3g
I want to restrict 3G access to a single domain (that of my system) to save employees 3G access. But if the employee access via WIFI can be all released (because there will be no extra cost).…
-
3
votes1
answer4547
viewsHow do I block the back button (that little arrow on the hardware)?
I need to block that arrow so that the user does not come back, anyone knows how? Thanks in advance.
androidasked 9 years, 2 months ago daniel12345smith 2,120 -
3
votes1
answer181
viewsOrganize list based on an integer value of its elements
I have a ArrayList of a class of mine that contains variables String and integers, as a name and punctuation. When I display it through a Adapter I would like the list to be in descending order, but…
-
3
votes0
answers114
viewsAndroid + Opencv: Surfacetexture has been abandoned
I’m developing an Eclipse application with Opencv. The application consists of detecting and recognizing objects (predefined in the database) in real time. Initially has a menu where the user can…
-
3
votes1
answer336
viewsBlocking the Webview cache
I’m designing a Webapp, and I use a Webview to open a specific url within the app! Only the app is caching everything, so in case I come to make any changes to the site, the app doesn’t "compute"…
-
3
votes1
answer54
viewsHow to implement UI like the recent Lolipop
I am trying to implement UI like the recent Lolipop need to know if it is possible and if I can do it with Recyclerview and Cardview?…
-
3
votes3
answers126
viewsIs it safe to keep the context of an app in a Singleton?
I have the habit of keeping the context of an Android app saved inside a Singleton as follows: public class Global { private static Global instance; private Context context; public Global() { }…
-
3
votes3
answers797
viewsHow to consider an empty Edittext as "0"
I’m developing an Android app that calculates 3x3 matrices so I’m 18 EditText, however if I want to multiply a matrix 2x3, 2x2, 1x2, etc. I would have to fill the fields of the matrix size and leave…
-
3
votes1
answer488
viewsHow to grab an image from the gallery and maintain orientation (portrait/landscape) on android
I have an app that takes images from the gallery android, but on some devices the orientation of the image is changed, I would like to know how to maintain the original orientation of the image.…
-
3
votes3
answers368
viewsHow to prevent an application that runs in the background from being stopped by the user?
For example an application that needs the strings of the apparatus every 30 seconds and that runs in the background and, the user can not force its stop manually.
-
3
votes4
answers2456
viewsSet coordinates when opening map
I need to open a map with specific coordinates (latitude and longitude). These data I already have, but I don’t know how to set them on the map. PS: It is possible to open directly in Google Maps?…
-
3
votes2
answers376
viewsPinch android zoom
Personal my problem is the second. I need to enlarge a ImageView with that movement of forceps well known, but I’m already in the third day researching on the internet how to do and banging the…
-
3
votes1
answer3287
viewsColorize Listview Line Delphi Android
How to change the color of a Delphi listview line / Android ? To have the color changed as any condition is true: se a = 1 then listview.linha?.? := clBlue entao listview.linha?.? := clRed;…
-
3
votes1
answer412
viewsSplash Screen Mobile
I’m trying to set Splash Screen in my apk developed with Cordova but I’m not getting, I’m following the documentation available on the official website but it does not work, my doubts are as…
-
3
votes1
answer1989
viewsChange the theme of Activity
I try to change my theme to @android:style/Theme.Holo.Light in Androidmanifest but when the app runs on an emulator it stops working. I followed a video lesson and it’s exactly the same. I don’t…
-
3
votes1
answer2043
viewsIs there a keyword rule in Google Play?
How keywords work in Google Play? Is there any way to enter keywords? Or it uses the description of the App?
-
3
votes1
answer339
viewsSend an object using Gson
I have the following problem: I need to send an object to my web-service, but it is not feasible to use Jsonstringer, because my class has many fields. What would be the best way to solve this…
-
3
votes2
answers2746
viewsHow to recover a string-array item within my Activity layout in the "xml" case?
I created an array of xml strings in my strings.xml folder, now I want to know how to recover a specific item according to its position, both in the Java source code itself and in the XML code...…
-
3
votes1
answer1115
viewsHow to print on Android via a bluetooth printer?
I’ve been searching and found nothing about printing on Android through a Bluetooth printer. Is it possible to do this? Is there a library or SDK?
-
3
votes1
answer2751
viewsNotifications in a given time and on mobile phone
Hello. I’m making an android app that notifies me when I have to deliver a school assignment and, if it’s the day of the task or the day before, I want to be notified at certain times. The home…
-
3
votes2
answers3258
viewsAdd dependency on android studio
I wondered where exactly I put a dependency like this in android studio: <dependency> <groupId>com.code-troopers.betterpickers</groupId>…
-
3
votes1
answer1963
viewsSend Arduino data to Android (ultrasonic sensor)
I made this code to receive data from an ultrasonic sensor on a cell phone Android. After passing the application to the mobile and the code to the Arduino, it can only connect, but does not show…
-
3
votes2
answers3886
viewsHow to change edittext line color programmatically
I need to change the line color of Edittext programmatically, as I do? I tried to set an xml in the drawable folder, but it does not change the line color anyway...
-
3
votes2
answers97
viewsLog all of an Activity’s touch events?
I need to log all the actions of a user in an Activity: For example: click on R.id.btn_ok view longclick on R.id.listview-item
androidasked 9 years ago user155542 141 -
3
votes1
answer149
viewsHow to leave space between images?
I have this layout: telainicial.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"…
-
3
votes0
answers147
viewsInstalling Parse on Android Studio 1.5
Hello, I’m having trouble installing Parse in my project, I include the library(Parse-1.11.0.jar) in the libs folder, I change the manifest.xml with permissions, in the java class, in the Oncreate…
-
3
votes1
answer1618
viewsSplit layout in 2 columns
I have my home screen code that needs to be divided into two equal parts. How I share a linear layout in two columns of equal size?
-
3
votes2
answers3096
viewsHow to put wipe button on android
I would like to put a clean button on my calculator app, I have put the Button in xml with id Clear and would like to know how I put in MainActivity.java, follows the code: public class MainActivity…
androidasked 8 years, 12 months ago Vinicius Clemente 365 -
3
votes2
answers382
viewslayout problems in Android Studio
I’m having a little problem with my layout looks like this in Android Studio and how it looks on Avd: xml code: <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"…
-
3
votes1
answer418
viewsProblem when creating Android Studio project on Ubuntu
I installed Android Studio, but when I create a project or open an existing one appears the following message: Error:Could not determine Java version using Executable…
-
3
votes1
answer196
viewsHow to Transform a Bitmap into java.io.file to send to Amazon S3
I’m having trouble sending one Bitmap for Amazon S3 using Amazon S3’s own SDK. To send something to Amazon S3 it is necessary to be a file, such as transforming the Bitmap in java.io.fileto be able…
-
3
votes1
answer1283
viewsAndroid Studio Error 1.5.1
Good evening, I’m new with Android development and in my first project I’m having error the following error "Exception in thread "png-cruncher_20", just below follows the complete log of the error,…
-
3
votes1
answer416
viewsKeep screen on v4.1.x
I have the following code to keep the screen always on: if (usuario.getTelaLigada()){ getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); } Works in version 4.4 and higher. But not…
androidasked 8 years, 11 months ago Thiago Luiz Domacoski 7,310 -
3
votes1
answer3146
viewsHow to consume data from SOAP Web Service with android application?
I am developing an android application + web services SOAP + mysq, I was able to create the web services and make it run with the methods insert User and search I cannot make modifications using the…
-
3
votes1
answer980
viewsAndroid save user profile image
I am with a question what is the best method to save the profile image of the user of the app I am developing, where on the login screen will load the image of the user profile and home screen as…
-
3
votes1
answer1209
viewsIs there any object recognition framework for Android?
I wonder if you have knowledge and if there is a framework for recognizing objects, people, anyway, things, ready to be used on Android. It’s similar to the idea of the app Google Goggles and the…
-
3
votes1
answer97
viewsIs the Mediaplayer.create() method called in the background?
I was reading the documentation of Android Media Playback and a doubt occurred to me. In the documentation it said that it is not advisable to call the method mediaPlayer.prepare() in thread…