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
-
2
votes1
answer165
viewsGPS on Android - Map=null
I’m making an app for people with addresses. Every time I open the map setting the initial location with the phone’s GPS, the app locks and closes. [UPDATE] When analyzing the code I realized that…
-
2
votes1
answer520
viewsPrevent improper access to the Restful API
I am developing a Restful API with Laravel PHP that will be consumed by an Android application, the API is consumed only by the application, there is no web system. I am learning Restful, and during…
-
2
votes1
answer3281
viewsError sending Phonegap pro Googleplay APK
Sending the Phonegap APK pro Googleplay shows the following error: SEND NEW APK TO PRODUCTION Sending failed You have uploaded a debugged APK. For reasons of security, disable debugging before…
-
2
votes1
answer842
viewsAndroid Studio does not display English characters correctly
My project is not displaying any English characters correctly. When I display a string as "no", it displays "no". The strange thing is, when I call the string straight from the res/string.xml, it…
java android android-studio character-encoding configurationasked 9 years, 6 months ago Diego Fortes 357 -
2
votes1
answer740
viewsCall requires API level 21 (Current min is 10)" when using getDrawable()
When I try to compare the Drawable of a Imagebutton with a certain Drawable that mistake happens "Call requires API level 21 (Current min is 10)". I’m using the getDrawable().getConstantState() to…
-
2
votes1
answer457
viewsHow to make a menu item visible on Toolbar by clicking an existing one?
I have a menu on my Toolbar, it has the following actions: R.id.action_editar R.id.action_salvar How can I make so that when I click the edit action, the save action button becomes visible? This…
-
2
votes1
answer465
viewsHow to run a video on Android Chrome?
How to run a video with the video tag in the google Chrome browser? My code: <video autobuffer id="bgVideo" loop="true" volume="0"> <source src="/video_bg_1.webm" type="video/webm">…
-
2
votes1
answer349
viewsList of random numbers without repetition Android
I have an Arraylist with N items inside and I need to randomly group them into 2 sets of X items and the rest into another set. But none of them can repeat themselves. For example: my Arraylist has…
-
2
votes1
answer1725
viewsHow to test an app created on Unity for Android in a logcat emulator like in Android Studio?
In the unity developing for Android, it does not test exactly as in an emulator like Android Studio. I know you can generate one apk and test on the physical device, but I wanted to test on an…
-
2
votes1
answer1127
viewsImageview - Defining Drawable by path
Hello I’m starting on Android and I’m with a small project that would be a memory game. So to "shuffle the cards" I created a function that stores in an array of integers called codimg numbers from…
-
2
votes0
answers247
viewsWhat are the advantages of developing an app in Xamarin Visual Studio?
I know that in the Visual Studio with Xamarin it is possible to develop applications Android, then aroused the curiosity: In the code part I know you use c#, but part xml it’s more complicated or it…
-
2
votes2
answers3769
viewsSelect theme in Android Studio
When I select a theme in Android Studio, like this Holo I changed, it changes the preview but when I run the application on my device does not change anything. Anyone can help ?…
-
2
votes1
answer579
viewsUsing Webservice + Sqlite
My doubt is the following, I am developing an application that has an access to a Webservice, however I think it is important to save some internal data in the application, as for example, if the…
-
2
votes0
answers666
viewsBluetooth and Android printer
Is there an api to send print orders through an android app? I’ve seen that Samsung included this bluetooth printing feature some time ago, but I can’t find anything about sending print orders…
-
2
votes0
answers422
viewsDoubt API Camera in Dubsmash, Vine, and Musical Android Apps.ly
I’ve been working with the API lately MediaRecorder android to make video captures, but I come across a common problem where there is a great delay when starting to record a video. My intention is…
-
2
votes2
answers92
viewsWhat is the name of the bar menu that youtube, whatapp and other apps use?
It is a menu where the options appear on the left side, just like in this image: I would just like to know the name of the menu to implement. I thank you already. and this:…
androidasked 8 years, 8 months ago daniel12345smith 2,120 -
2
votes1
answer709
viewsForce menu display in mobile phone action bar with menu button
On phones type those of Samsung that has the menu button, the menu of the action bar on android is not displayed, I wonder if have to force the display of it? My.xml menu looks like this: <menu…
androidasked 9 years, 5 months ago Mateus Carvalho 1,494 -
2
votes1
answer436
viewsIs MVC viable and recommended in Android projects?
I am working on a mobile project where it is necessary to migrate a legacy application, which was developed to Windows Mobile 6.1 (handheld), to the Android. This application has been developed…
-
2
votes1
answer132
viewsHow to implement Actionbar and Viewpager as in Tinder
I need to implement a ActionBar and ViewPager as in Tinder. When Tinder opens, you can slide through all the tabs. The second tab is a ListView or a ListFragment and when you touch an item, it is…
-
2
votes2
answers94
viewsCalculations using Textchangedlistener
I’m developing an app to multiply two EditText (quantity X value) and show the result in another EditText. The problem is that there are several EditText how the following code shows:…
androidasked 8 years, 8 months ago Luan Rabelo 41 -
2
votes1
answer1459
viewsHow to verify what an html/javascript page is loading?
How can I check what my browser is trying to load, even after the html/javascript page has already loaded "completely"? The page is: http://cerva.tk/index.html If you can do a test and see that it…
-
2
votes1
answer54
viewsCheck that Simulated Locations are active
I’m developing an app that will use GPS to record a route. There are applications ( an example ) , which simulate its location. This is done through a development option : I wonder if it is possible…
-
2
votes0
answers275
viewsExternal database is not loading on android
I need to make an application Android who accesses a servidor, low files .s3db and query about the downloaded files. I can download normally to data/data/meu-pacote/databases/ and I can also do…
-
2
votes1
answer34
viewsHow to place selection area (mobile) to photo taken
I would like to know how to soon after taking a photo and grab the file and upload this photo, create a photo selection area to Whatsapp profile photo style, and then save only this piece as the…
androidasked 8 years, 8 months ago Aleff Matos 327 -
2
votes1
answer170
viewsRun task synchronized with clock
I would like to perform a task synchronized with the android clock. For example: in the second 0, then in the second 10, 20, 30, 40 and 50. I don’t want to run every 10 seconds, I want to run in…
androidasked 8 years, 8 months ago Luciano Coelho 23 -
2
votes2
answers668
viewsI can’t start a service
I’m trying to replace a code I made using thead by services ,but when I create the service it doesn’t start (doesn’t start any service method) and searching the net vi some solutions that said it…
-
2
votes1
answer715
viewsVolley on Android
Volley on Android, I understand it is a library, doubt is: Library for which? She is native to Android? If yes, how to use? If not where to download?
-
2
votes0
answers465
viewsGoogle Cloud Messaging push notification takes too long to deliver
I have an application similar to the taxi apps (99Tax, Easy Taxi, Uber), in it I use Google Cloud Messaging to send the alerts of new races, but sometimes the latency in the delivery of the message…
-
2
votes1
answer325
viewsLayout distortion in Bluestack
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"…
android android-studio android-layout responsive-layoutasked 9 years, 5 months ago Gabriel Santana Bonatto 319 -
2
votes1
answer1732
viewsHow to pick up values and play in another class? Android
I have the following class: public class RetornaUsuarioActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
2
votes2
answers13385
viewsAndroid Studio - non-ASCII Characters
I bought a project for android studio. when opening appears the following error. Error:(14, 0) Your project path contains non-ASCII characters. This will Most likely cause the build to fail on…
-
2
votes2
answers532
viewsDate and Time automatica
I’m developing an application on Android and would like to know if anyone knows of an application with open source or knows the code that checks if the automatic date and time option (provided by…
-
2
votes2
answers138
viewsRemote reading on Android: Json or XML?
I’m starting on Android and also don’t have much experience in Java. My first application will have a query to a remote server. My question is this:: In Android (consequently in Java) what is more…
-
2
votes3
answers10546
viewsWorking with Navigation Bar (smartphone native) and Action Bar BACK buttons (added via Java)
I am Asking this question/answer to help those who may have/have/have some doubt regarding the buttons BACK that are extremely useful in our applications. I will use 1 and 2 to differentiate Action…
-
2
votes2
answers515
viewsHow to open a Dialog on android
I wanted to know how to open a dialog so the user can insert text, as soon as he click the button, the box to type is opened and as soon as he type will have a save and cancel button, how can I do…
-
2
votes1
answer135
viewsPass extra parameters via gcm (google cloud message) - Cordova
When sending a notification to gcm, I added a parameter to the url named 'appUrl'. And I need, when opening my Cordova app, to pass this parameter to the index.html so that I can redirect my…
-
2
votes4
answers1242
viewsError with "Cordova run android"
I’m getting an error entering command: "Cordova run android" NOTE: Remembering that I have already set the path of sdk: export…
-
2
votes2
answers9143
viewsAndroid Gradle Sync failed
I have an old android project and I intend to give life to it. downloaded android studio 2.0 imported my project and nothing worked error message. 14:22:37 Gradle sync failed: Gradle version 2.2 is…
-
2
votes1
answer109
viewsElement of the Android List
I have a list of sounds, wanted to take each element of the list and emit the sound that is recorded in the bank. Example: when clicking on an element that is in the list, emitted the recorded sound…
androidasked 9 years, 4 months ago Gabriel Santana Bonatto 319 -
2
votes1
answer482
viewsAndroid Delphi XE8 Home Screen
Good morning, everyone, I wonder if you have how to remove the incial screen (icon of the flame followed by the black screen) that trims in the applications developed in Delphi XE8. Grateful.…
-
2
votes1
answer200
viewsIs there a specific library to work with android and Arduino?
I’m with some automation projects, and I wanted to develop my own app, which controls an Arduino. With little research, I realized that there are several tools that create this communication and…
-
2
votes3
answers1934
viewsHow to use Scrollview + Listview
I am creating a profile system for users using ListView and RecyclerView and I’m failing to do the scroll work. Currently it works like this: When I don’t use the ScrollView, he just does the scroll…
-
2
votes2
answers1672
viewsNotification using PHP and Webservice on Android
I have a project in mind but I have not yet started to develop it in practice. The idea is to develop a PHP + Mysql Web system and an Android application using Webservices. My question is whether it…
-
2
votes1
answer91
viewsThrough this code there is some way to change the background color of each listview item
That’s how I’m doing the listing I’d like to know if it’s possible to put each item in a different color for example 1 in white and one in black ArrayAdapter adapter = new…
androidasked 9 years, 4 months ago Tiago Coelho 739 -
2
votes1
answer66
viewsTabbed Activity of Error
Hello, I’ll be as objective as possible: I created a project in Android Studio of "Tabbed Activity" - Action Bar Tabs By app options(right mouse) New -> Fragment -> Fragment Blank created a…
-
2
votes1
answer463
viewshow to put sound effect when clicking the button
I made the button <ImageButton android:layout_width="178dp" android:layout_height="150dp" android:onClick="clickMyamarela" android:id="@+id/button1" android:src="@drawable/botao_amarelo"…
androidasked 8 years, 6 months ago Diogo Cipriano 35 -
2
votes1
answer957
viewsHow to put the default android Styles e.g. edittext spinner etc
I could use some help. My android app is in trouble, all the elements I add it plays on the screen in a different way. Ex: when I add an Edittext it does not get the edge only shows the same when it…
-
2
votes2
answers386
viewsListview catching plenty on scroll
My Listview is crashing enough on the scroll, I tried to implement Viewholder to the Adapter but did not solve, could help me? Adapter: public class Adapter extends SimpleAdapter { private Context…
-
2
votes1
answer865
viewsJava - Wait for a method to execute next instruction
I’m making a CRUD app on Android for the college project. I’m using a ImageButton for the person to select the image to be saved. The part of selecting the image and storing it is working fine; but…
-
2
votes1
answer3673
viewsDownload files by link(url) Android
There’s a way I can download a file .apk from my server and open it as soon as it has finished downloading? I know I don’t have any code showing what I’ve done or tried, but it’s because I honestly…