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
-
5
votes2
answers2002
viewsWhat versions of the Android SDK should I have installed at least?
When I downloaded Android Studio and opened SDK Manager it shows some packages to be downloaded and installed. I saw that it has several versions of Android. My doubts are: Which of them are…
-
5
votes1
answer147
viewsGson to Java - Map
I need to pass these values from a json file to a java class file, the Json file is of this type: { "id":1, "name":"Gold", "description":"Shiny!", "spriteId":1, "consumable":true, "effectsId":[1] },…
-
5
votes1
answer1241
viewsCustomize android webView error page
Please have a webview on my android app, how can I customize if the user doesn’t have internet ? Thank you Code of the current webcview : WebView wv=(WebView) findViewById(R.id.webView); WebSettings…
-
5
votes1
answer1435
viewsHow to update my application by APK without losing my Sqlite database?
I created an app, I registered at the bank Sqlite, but when I create new functions for the application how do I update without uninstalling it? Obs: no use Google Play, I install direct from Apk…
-
5
votes1
answer755
viewsChange icone action back with Fragment
Good morning, everyone, I’m having trouble changing the action of the icon back <- on my Toolbar. I have two Fragments A and B being that B are details of A. - When I’m on Fragment B and I press…
-
5
votes3
answers5735
viewsWhat is the basis for.Oncreate(Bundle) and what is Bundle?
I’m starting with Xamarin studio and wanted to know what this "base" class is for, this method onCreate() and what is bundle?
-
5
votes2
answers3434
viewsWhat’s the difference between Gravity and layout_gravity on Android?
In the customization of the layout properties in Android Studio I noticed that there is the gravity and the layout_gravity, both bear the name gravity, so I’m a little confused as to its…
-
5
votes1
answer1244
viewsAndroid app in the background
I’m working on the open source project Linphone,when the application is closed is not working in the background, so if someone makes a call to me in the meantime I am not notified, how can I treat…
-
5
votes0
answers108
viewsUse camera to measure body part height
I’m designing an app that will measure body parts to see which accessory fits best. I wonder if the camera of a Smartphone has this capability and how to instantiate it in the project
-
5
votes1
answer889
viewsHow to send data from one Vector to another Activity?
I’m still a beginner, and I have the following question: I’m inserting text from a EditText in a array, and I want to receive it in another. I am doing the following: String[] pedidos = new…
-
5
votes3
answers3930
viewsDifference between setImageResource and setImageDrawable
To set an image in Imageview I did as follows using the setImageDrawable: imagem.setImageDrawable(ContextCompat.getDrawable(this,R.drawable.cliente)); While searching for Imageview I also found the…
-
5
votes1
answer3670
viewsWhat is savedInstanceState?
I’m new on android and want to learn more so I’m in github seeing some projects ready and I’d like to know what this is: @Override protected void onCreate(Bundle savedInstanceState) {…
-
5
votes1
answer228
viewsAvoid removing the Testprovider from Mock Location
I am trying to mock location for use in another application, but this application is removing my Testprovider, making it not possible to mock the location. How can I avoid this other app from…
-
5
votes1
answer1057
viewsHow to get the result of the Retrofit 2.0 Request
Well, I’m starting to study Android, I’ve already requested with Volley but a friend indicated me Retrofit for being much faster and "simple". But I still don’t understand much. I have a Webservice…
-
5
votes2
answers404
viewsWhat is the difference between Alarmclock and Alarmmanager?
What are the differences between Alarmclock and Alarmmanager?
-
5
votes1
answer153
viewsMap opens before picking up the GPS position
I’m studying programming for Andriod and I came across a feature that I just don’t know anything, which is the order of execution of the duties! please , someone could give a light? I explain, in my…
-
5
votes2
answers527
viewsIs there a difference between the visibility of a view.GONE or false?
I would like to know which of these implementations is the correct one? tlb.setVisibility(View.GONE); or tlb.setVisibility(false); What’s the difference between them?…
-
5
votes2
answers987
viewsHow to put a Popup that asks permission to use GPS?
Guys, I’m programming in Java (with Android Studio) and this code to get the position of GPS, which works very well! Now I’m trying to learn how request authorization from the user to use GPS, but…
-
5
votes1
answer278
viewsThemes, Styles and support android Library
Hello since I started working with Android development, I have always had a hard time understanding how the part of Themes, styles and libs of support Android, I always have a lot of difficulty for…
-
5
votes1
answer3875
viewsHow do I save an image to the database in Sqlite?
How do I save an image to Sqlite? I ask you to be as specific as possible because I don’t have much experience. In case I want to include a table row to save the image. import br.gestaoBd.Login;…
-
5
votes0
answers1238
viewsError: Trust Anchor for Certification path not found
I have an app Android, using the library Retrofit to manipulate requests, while trying to make any request in a android 5.0 or less, I receive the following log: I/call:…
-
5
votes2
answers1407
viewsHow to Transform Time String to an Entire?
Example, I get a String with the "16:20" time of day. The day is 1440 minutes long. How to know what interval from zero to 1440 is this time? In an integer value(integer).
-
5
votes1
answer214
viewsWhat is the difference between Preference and Sharedpreference?
Seeing some forms of data persistence on Android, I realized that has two interfaces very similar PreferenceChangeListener and SharedPreferenceChangeListener, which can be extended in the classes…
-
5
votes1
answer2013
viewsHow to use runOnUiThread()
I’m studying the use of Threads, aSynkTasks and Handlers and came across this method, runOnUiThread() How does this method become a repetitive process to the point of replacing Handler? How this…
-
5
votes2
answers68
viewsSound only plays in debug mode
Because the sound only plays in debug mode? Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); MediaPlayer mp = MediaPlayer.create(getApplicationContext(),…
-
5
votes1
answer425
viewsWhy does the image get distorted (doesn’t maintain the proportions) in Imageview?
I have some images inside the folder drawable and call them via code: public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { image.setBackgroundResource(rid);…
-
5
votes1
answer71
viewsError in the Adapterview
Good evening, I am trying to call an activty by an Adapter through Intent, but gives the following error: FATAL EXCEPTION: main Process:…
androidasked 8 years, 6 months ago Lari Souza 105 -
5
votes1
answer204
viewsWhat is it, Beacon?
What is Beacon? How can I implemented using Android? Can be implemented in . NET or only in java? Have some simple example?
-
5
votes3
answers185
viewsAnimation in images
Is there any way to make an image rotate by, say, 90 degrees when clicked on? I want that when clicking on the image, it takes a turn, like a clock pointer for example.
-
5
votes1
answer152
viewsBackground with two colors
I would like to create a background with two colors at an angle of 45 degrees, but no transition. I did it this way: <?xml version="1.0" encoding="utf-8"?> <shape…
-
5
votes1
answer121
viewsPerformance difference from for simple and for iterator
I have a list of customers and on a certain screen the user can do a search and edit the clients of the list that is quite extensive, comparing these two examples which would be the best to work?…
-
5
votes2
answers132
viewsShould I encrypt the password in the application or on the server?
I am making an application that requires registration of users and my question is whether I should make the encryption in the application and save on the server or send to password and encrypt on…
-
5
votes3
answers583
viewsHow to recover a product id by clicking on listview opening another Activity
I am making an application for product consultation using a Webservice. I do a search in WS and bring the product information I need. Then I pass this information to a Adapter create a ListView and…
-
5
votes3
answers629
viewsWhy does my Actionbar due to an error stay inside my Statusbar?
I started a new default project on Android, I did like this reply to my ActionBar stay on top of the standard menu NavigationDrawer, now, my ActionBar enters into the StatusBar and the source gets…
-
5
votes1
answer903
viewsAndroid studio generating two apps the same way
I developed an apk, but from the end of the project here he was always emulating two identical applications on my phone, same functions, icons. The difference between one and the other is that one…
-
5
votes1
answer610
viewsXamarin - Sqlite Join
I’m creating an app on Xamarin, which generates a sales order, and stores on mobile. I’m using Sqlite to store the data, but I’m having trouble making a Join between my Order Items table, and the…
-
5
votes1
answer9780
viewsHow to make application running in the background all the time
I tried to use the Service as they said but it’s not working yet. I don’t know if I got it right, the method onStartCommand() will run all the time? Because I debug and the application only enters…
-
5
votes1
answer446
views -
5
votes2
answers1280
viewsThe location obtained by getLastLocation() always returns null
I’m making several attempts, but I can’t get the current location of a user using the Location API. I am running the following example: public class MainActivity extends AppCompatActivity implements…
-
5
votes1
answer590
viewsHow to replace the space character with another one?
The title of the question is to understand that it is simple I ask silly ,but I would not like to know how to replace the space of a EditText by something else ,as in the image below: In the case of…
-
5
votes1
answer707
viewsNotification icon in Android 5.0
I’m creating a push notification system with firebase in my project. The code that generates the push is like this: notificationBuilder = new NotificationCompat.Builder(this)…
-
5
votes1
answer351
viewsSIP connection - Softphone Java Android
My intention is to create a Softphone, for this I am consulting the libraries of google and doing some tests only that I have enclosed in a part. I don’t want to do start functions, or multiple…
-
5
votes1
answer375
viewsWhat is the best way to generate Push notification using Firebase?
I have the following problem: I have a system where it is possible to register a series of tasks to be accomplished by a team or person. What I need is that whenever an order is finalized by a user,…
-
5
votes1
answer2310
viewsApp Submission Problem in Play Store
I am submitting an updated version of my app (sdk 23) in the Play Store and is giving this error when having publish in the section in Beta Tester: Cannot publish configuration for following…
-
5
votes2
answers4548
viewsWhat’s the difference between Assets, res and raw directories on Android?
I would like to know the difference between directories /assets and /res present on android, I know that the layout and various images are in the directory /res and are accessed in different ways.…
-
5
votes2
answers426
viewsSave photo via URL to database
I’m making an application that needs the login Facebook. I was able to get all the right data, but I’m not able to save the profile photo in the database. I was able to display the photo on…
-
5
votes1
answer38
viewsLaravel + Android
I am starting my studies in the framework Aravel and saw that it is very useful to create websites, however, is it possible to consume these routes in native android ? Because routes are usually…
-
5
votes1
answer696
viewsRecover firebase data with multiple parameters
I’m trying to recover a firebase node, but this one needs to meet two parameters, start date and end date. The knot stays the way they passed me an option would be to put one more value to…
-
5
votes0
answers806
viewsAllow Camera and Microphone access to a Webview by Xamarin Android
I created an app webRTC that allows me to do streaming audio and video via using javascript, now I need that by my Android I can access through an app I’m developing. I’m wearing a Webview to load…
-
5
votes1
answer95
viewsWhere is the function taking the current time?
I have a function that returns the current time. Where does this value come from? Phone time? Server? Just follow my lead: public static Date getAgora() { Calendar calendar = Calendar.getInstance();…