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
answer185
viewsCapture basic profile data Linkedin
I am doing an integration of my app with Linkedin, what happens is that I can perform the authentication and return to the Activity from my app it showed me the logged in user data. I am using the…
androidasked 9 years, 2 months ago João Vitor Skonienczwy 41 -
3
votes3
answers488
viewsKeep data from a list when rotating on Android
I started to study Android and I ended up falling into this problem. I created a RecyclerView where it is fed by a field TextView, but every time I rotate the simulator, the values are reset. I…
androidasked 9 years, 2 months ago Jeferson Assis 2,719 -
3
votes2
answers1282
viewsHow to run my App on multiple platforms
Good afternoon, Someone has App experience to run on multiple platforms. I’m developing an App, however, I’m making it for Android, as I do for it runs also on Ios, Windowsphone and etc... The same…
-
3
votes1
answer840
viewsHow to make tabs similar to Whatsapp?
Does anyone have any example of how I can create this style of tabs on Android. In the image the example is the Whats App. I mean: 1 - CALL, Chats, Contacts tabs 2 - The Search bar, which is always,…
-
3
votes1
answer41
viewsHow to enable "Telephony Actions" in Android Studio?
How to "enable" Telephony Actions in the Android Device Monitor? Because I would like to do call testing in the emulator but the field is disabled.…
-
3
votes1
answer1493
viewsRecognize a Jsonobject or Jsonarray
I’m developing an app that consumes data from a Webservice, which can return one or more records at a time. Until the moment always received a Jsonarray, made the "conversion" of it: JSONArray…
-
3
votes1
answer92
viewsHow to know if a session already exists on a system?
I have an application where the user can only be logged in to a device at the same time, how can I do this restriction? I use the Parse.com service, it provides an API for data exchange between an…
-
3
votes1
answer570
viewsHow to place Edittext next to Edit Text dynamically?
I am creating a dynamic form and needed to display in a form, Age and Address on the same line. I created a "for" to create n times the same form but is giving error. follow the code: public void…
androidasked 9 years, 2 months ago daniel12345smith 2,120 -
3
votes1
answer502
viewsHow to generate an APK without DEBUG in Intellij IDEA?
I just migrated my projects from Eclipse to Intellij IDEA (is the same as Androidstudio uses, but with some small differences). Yet every time I click Build > Build Apk it generates an APK with…
-
3
votes2
answers225
viewsMigrate data from one version to another - Android Sqlite
In the application I am working on, I have to save the data from a specific table when the application is updated. This action needs to happen before the table is discarded in the onUpgrade method.…
-
3
votes2
answers2999
viewsShow/Hide Bookmarks as Zoom on Android map
I’m developing an android app that will contain many bookmarks on the map, and in order not to get too messy I wish that if I was zooming out the markups would go into Hide, I tried the following…
-
3
votes2
answers3070
viewsHow to leave the screen always on with the app open?
I would like to know how to make the screen is turned on without locking while my app is open.
androidasked 8 years, 3 months ago A. Cardoso 41 -
3
votes4
answers1275
viewsHow to identify changing the state of connectivity to the Internet to perform a method when connecting?
I’m trying to implement this train and I’m not getting it. I wanted to do the same thing as the colleague who opened the topic, but I could not even follow these examples. I have some questions: In…
-
3
votes2
answers395
viewsLogin via Facebook without the app installed
I have an app with a facebook login button. For integration, I followed these steps on Quickstart from android on the Facebook website. Right at the beginning it says: Facebook SDK for Android uses…
-
3
votes3
answers4673
viewsPass data between Fragments
Here’s what I need: I have an applicationActicitythis is the main and controls the entire application, also I have some fragments2 of them are interface other 2 run in the background. The question…
-
3
votes1
answer1841
viewsChange Fragment from click
I’m trying to get my app to display a new Fragment from one click. The message is printed on the console when I click on the button, but Fragment does not change. @Override public View…
androidasked 9 years, 1 month ago SpammingOff 387 -
3
votes2
answers2742
viewsHow to backup the database to cloud and how to have the data synchronized across multiple devices?
Well folks my question is this. I have an App that has a local Sqlite database. I want to know if you have any library, framework, code that does the following: Backup that database to Cloud…
-
3
votes1
answer177
viewsPlace objects on image
I wonder how could do to place objects on an image on Android. An example would be to have the photo and on it put other images like circles, triangles etc... How could do this on android?…
-
3
votes1
answer126
viewsDesign material properties do not appear in API 19 appliance
I added the support library for Apis below 21 and am testing the property elevation in my components. In the layout view, when I click on the design tab, I can see the elevation but when I run to my…
-
3
votes1
answer4049
viewsError when publishing app to Google Play
I’m trying to post the Apk, but get this error message O envio falhou Você fez o upload de um APK depurável. Por razões de segurança, desative a depuração antes de publicá-lo no Google Play. Saiba…
-
3
votes1
answer2200
viewsHow to make a Carousel?
I’m trying to create a Carousel on Android as the of this video (source code) but it’s not going very well.…
-
3
votes1
answer98
viewsHow to add a buffer to google map v2?
I followed several tutorials and one of them worked out however, when compile appears the normal Fragment with the name google in the bottom left corner of the screen (normal), except that nothing…
-
3
votes0
answers1050
viewsDevice gives error and then restarts after trying to uninstall application
I’m having a bug with the application I created, the code is compiling normal and without any error or Warning, and the application is also working on mobile, but when I try to uninstall this…
-
3
votes1
answer1218
viewsAnimation when you touch the button
I have a registration screen, where a standard photo is already set. If I press on top of the photo it opens 2 options to change the photo. Either grab by the gallery or take a photo. By clicking on…
-
3
votes2
answers787
viewsHow to view pager images as free market app and others
I’d like to ask you for help on how to make this layout like the Free Market app and so on, like Live Real Estate. The layout I need is equal to this image I’m putting below, It would be a Toolbar…
-
3
votes1
answer334
viewsCountdown counter with alarm
I have a project where I start a 10min action, for example, and so starts a countdown. This counter will be shown on a screen for management (it can add +1 minute, as the timer of widget android…
-
3
votes1
answer197
viewsHow to make a similar google play viewpager?
Expensive, Does anyone know how to make a layout like google play? When Tablayout is selected, the viewpager changes the entire view, not just the bottom (or top) I need to make the change this way.…
-
3
votes1
answer180
viewsGCM Notification in Dialog form
I’m making an application that receives alert messages using Google Cloud Messaging, as soon as it receives a message in the background the App triggers a notification that stays in the Android…
-
3
votes1
answer457
viewsSave information to an Sqlite and then go up to a JSON with webserive
I read several tutorials on how to take a JSON and pass the information to an Sqlite, but as I do the reverse, I take the application data already saved in Sqlite and then transfer them to a…
-
3
votes2
answers1006
viewsHow to reload an Activity
I have the following problem, in my application I have a ListView in act 1, and register with the act 2, but when I finish the registration I also finalize the act 2, with this return to act 1, the…
-
3
votes2
answers3456
viewsHow to create Android apps on weak PC?
I have a notebook with a 1.3Ghz processor and 4 GB of RAM. It is good, but whenever I try to create an app for Android I come across lag, slowness, brakes, etc... I have in my notebook Android…
-
3
votes1
answer291
viewsDifferent source code for release/debug version
I saw that in android studio it is possible to have an Androidmanifest.xml for the debug version and another for the release version. Well, I have an "Appmock.java" file with constants for testing.…
-
3
votes2
answers1540
viewsSwap a variable from True to False and vice versa
I created a button that when clicked creates the onClick method and makes a variable "true" What I want is that if this button is clicked again and the variable is true it turns "false" I’m using…
-
3
votes1
answer59
viewsOne tap for more than one event
I’m building a musical keyboard, and I’m having trouble making the next key sound if the user doesn’t take his finger off the screen. Can someone help me with that? botao1.setOnTouchListener(new…
-
3
votes1
answer479
viewsHow does the allowBackup tag work?
Write to user device with getSharedPreferences("config" ,Context.MODE_PRIVATE) login name and some application settings. Tag allowBackup as true implies saving only this information? When the…
-
3
votes1
answer1266
viewsHow to plot a route using maps API
I’m making an app in Android Studio for an event and would like that: When opening a specific screen, the app would use the mobile gps to acquire the source coordinates and open the google maps app…
-
3
votes2
answers237
viewsWhat is the purpose of baselineAligned?
In the act of developing an application, I came across the following Warning: Set android:baselineAligned="false" on this element for Better performance What purpose of baselineAligned? When should…
-
3
votes1
answer1080
viewsExact division (whole)
I need to make a division but that it always gives zero rest, exact division. I think I’m sinning in condition. Random Number; int Rnumber1; int Rnumber2; RandomValor1 = (TextView)…
-
3
votes1
answer963
viewsHow to change the color of the bottom bar, where the buttons "Back", "Home" and "Active App" are located?
I would like to know first what the name of the component (bar) where are located the buttons "Back", "Home" and "App active" on android. In devices that do not have physical buttons for this…
-
3
votes2
answers337
viewsV4 and V7 on Android
Why in some examples on the Internet, we find something like this: <android.support.v4.view.ViewPager/> <android.support.v7.view.ViewPager/> What would this V4 and V7 be? And in this…
-
3
votes1
answer544
viewsError logging in with Facebook on Android
I have an application that can login with Facebook, but a few days ago this feature stopped working and now displays the following message that is in the image attached, deleted the application I…
-
3
votes1
answer2358
viewsPlacing event click on the button that is in a Fragment, in an Activity?
I want to put a setOnClickListener on the button that is in a Fragment, through my Activity. Follow the codes: Activity: private Button mButtonCriarConta; // onCreate da Activity...…
-
3
votes3
answers318
viewsChange the format of a date(time) in a String
I have two strings that receive hours, in this case, Arrivaltime and Departuretime. The format that comes is HH:MM:SS. I would like to format this string to HH:MM how can I do this? Insert this text…
-
3
votes2
answers240
viewsKeep Data Equal
I’m making a Chat on Android. I’m using Servlet (with JSON) + Oracle + Android. When I add a contact, for example, I save this contact in the Oracle database, via Servlet. But, when it comes to…
-
3
votes1
answer285
viewsProblems with Android Studio + Firebase
Well I am developing this app, to be able to display the information of a user in an arraylist, I run the code and it simply hangs and closes the app, I reviewed the code and found nothing, some…
-
3
votes1
answer2296
viewsFormat date on Android and Sqlite
I am having difficulty in making the process of setting the current date of my Sqlite database in the type attribute java.util.Date of my object. The Sqlite date comes in "yyyy-MM-dd" format. I am…
-
3
votes1
answer151
viewsError in Trigger Sqlite
I’m trying to create this trigger in the SQLite, but I don’t know if it’s possible. I got a big one Remedios and a Manutenção. I want that when I have an insert in the table Manutenção, it does an…
-
3
votes1
answer137
viewsHow to create a new window for each button clicked?
Hello, I’m beginner in programming for android, and I’m making an application (course work IT). The first Activity has 12 buttons with a "table" background, representing the tables of a restaurant.…
-
3
votes1
answer64
viewsErrors in Listview Customization
Well, I’ve been trying to personalize a Listview in my project, and I finished it and it was all right. However, an API error appeared stating that the minimum API I used was very low. I used the…
androidasked 9 years ago Rodrigo P. 31 -
3
votes2
answers1234
viewsCompare Two List
I have a list List<Comentarios> comentarios List<Comentarios> comentariosSP The first list I receive data from a webserver, the second from a Sharedpreferences. I tried to compare them…