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
votes2
answers5290
viewsHow to use onActivityResult when there is more than one startActivityForResult
I need to check user status yes or in the, when requesting bluetooth. Only I already use the same method for voice recognition. Just follow my code: package com.example.audio_auto; import…
-
2
votes1
answer77
viewsIf string starts with "www" automatically insert "https://"
Here’s what I’m trying to do So the user doesn’t need to type https:// I’m trying to make sure that when the text of EditText start with www. will automatically insert the https:// I tried to: if…
-
2
votes1
answer971
viewsLayout alignment between classes - Android Studio
I am implementing a program that uses database and interacts by differentlayouts registration and user editing. I’m working with RelativeLayout on all screens. On one of thelayouts, I insert a…
-
2
votes2
answers336
viewsMulti-device layout display problem
I’m having trouble putting together a layout. In emulated it stays the way I want as below: But in the cell phone is completely disfigured as below: XML code: <?xml version="1.0"…
-
2
votes1
answer524
viewsThe method that sends email works, but how to prevent the amount of incoming emails from becoming spam?
I have a method that sends emails in back Ground that works well, but I need to find a way that as the amount of incoming emails do not turn to spam. I’ve researched the JMS (Java Message Service)…
-
2
votes0
answers156
viewsWhat are the main programming languages and development kits for mobile applications ?
Hello folks in the mobile development scenario what would be the main technologies and development kits and programming language to develop systems in operating systems IOS , ANDROID, and Windows…
-
2
votes2
answers1185
viewsHow to call a native app?
I need to call the calculator from the click on a button, how can I do this? I’m having difficulties, I’m a beginner in Android and lost myself completely in the implementation of this code.
androidasked 9 years, 2 months ago fernando menezes carvalho 23 -
2
votes2
answers189
viewsresultCode returns RESULT_CANCELED in onActivityResult
I have two activities and a Fragment. A Fragment ProfileFragment is embedded within the Activity ProfileActivity, that is, when I call the Activity ProfileActivity, automatically opens this Fragment…
androidasked 9 years, 9 months ago Biruel Rick 151 -
2
votes2
answers2726
viewsIonic Apk does not work. White screen
Good morning, I created an application in Ionic, it works perfectly, when I use ionic serve Ionic can generate Build without any error, but after installing apk only the header appears and then a…
-
2
votes1
answer1406
viewsAdd formatting to an app description in Google Play
Does anyone know how to "embellish" the app description in the play store? For example putting "novelties", formatting text, etc. See highlighted in the example below:…
-
2
votes1
answer1678
viewsCPF validation on Android - Arraylist error
I have this class to validate CPF field on android, however is giving error in line: ArrayList<Separador> posicaoSeparadoresTexto(String mascara) Follow below full code: package…
-
2
votes2
answers5006
viewsHow to put a row to separate items from a menu?
Hello, someone knows how to place a horizontal line to separate items from my menu without having to use the tag <group>? I have the following code: <menu> <item…
-
2
votes1
answer246
viewsAndroid: Exception when running Toast.makeText
Ola, I am getting an exception when the Toast.makeText: public void onClick(View view){ (...) CharSequence text1 = "Please insert a number."; int id= view.getId(); (...) else if(id== R.id.buttonOK){…
-
2
votes1
answer103
viewsCallback after moveCamera on Google Maps
I have a Pageview that, in one of its Fragments, houses a Mapview with a map in "Lite" mode. Clicking on this map, a second Activity is launched (startActivityForResult) which consists of a complete…
android google-maps maps google-maps-android-api-2 callbackasked 9 years, 8 months ago Rodrigo Borba 121 -
2
votes1
answer1471
viewsCalling another class method in the same application
I’m having a great difficulty to perform a task maybe even simple, for those who are more used to the Java language on Android. I have an application that has menus with options. One of them is to…
-
2
votes2
answers1323
viewsSave Checkbox Values in Android Studio
I’m in a project that has many checkboxes, and they have to be stored permanently, IE, when the user closes the app and reopens it has to be marked. Would you like to know how to save checkbox modes…
-
2
votes1
answer91
viewsHow to pass the contents of a String (which I took from View.toString() to a View?
I used "View.toString" to take the contents of a string and save in Sharedpreferences, since I need to save the view inside and Sharedpreferences only accepts primitive type, but now I need to set…
androidasked 9 years, 2 months ago daniel12345smith 2,120 -
2
votes1
answer377
viewsPersonalized sound in Cordova Local Notification
I’m trying to customize the sound for a notification using the Cordova. I am using the plugin Cordova Local Notification, but the sound is not played when displaying the notification. Tests carried…
-
2
votes1
answer1491
viewsChange repository linked with android project in Git
Good morning, I created a project in Android Studio, created a repository in Git, did the Share of my project in my repository. Now, I’d like to switch repositories, take this project of mine that’s…
-
2
votes2
answers115
viewsSecurity MYSQL Android
I’m doing a login system. But I’m in doubt: I connect to the database through PHP? I mean I would just open the link and the Server would execute the procedure? or do it directly from the app via…
-
2
votes2
answers430
viewsWebservice for Android app
I need to develop an application on the Android platform. For this, the application should be accessed through a Webservice. The question is: Can the tables in the database of my application, for…
-
2
votes2
answers6461
viewsError opening emulator in Android Studio
I have an error here in Android Studio when I go debug the App in the emulator, it does not open and the following error appears: "ERROR: x86 emulation Currently requires hardware Acceleration!…
-
2
votes3
answers467
viewsWhat is the best method for exceptions?
What’s the best method to pick up exceptions in an Android app, like try/catch, throws or throw. Type exceptions, fields the user left blank in a form.…
-
2
votes1
answer579
viewsRationale: How does a friend localization app work?
I am studying mobile development and painted me a question: how works an app that locates friends on the map in real time? Example: An app that shows on the map where your friends are who also has…
-
2
votes0
answers116
viewsError terminating the java android service
I have a service running in the background that ends after a while after closing the app. I don’t want the service to end when closing the app Service: public class GpsService extends Service {…
-
2
votes1
answer1931
viewsWhat is the meaning of the kernel version?
I’m trying to make an app, like college job, for Android vulnerability diagnosis based on device metadata, like Android version, Kernel version, Build Number, etc. I don’t fully understand the…
-
2
votes2
answers5153
viewsHow to calculate distance from the user’s location to another address?
What I need to do is very simple, but I don’t know how to do it. It works like this: I pass an address to the user and once he is in place he presses a button, while doing this the application must…
-
2
votes1
answer6645
viewsHow to call a Fragment from an Activity button
I have three Ragments and an Activity. In this Activity I have a button, how do I call a Fragment from that button ? I have a Fragment that has a button from that button I need to call another…
androidasked 9 years, 1 month ago Douglas William 321 -
2
votes0
answers175
viewsAlertdialog with internal keyboard
I would like to know how to create a AlertDialog like the one in the image (with keyboard) on Android. Thank you. Keyboard: <Button android:id="@+id/dois" android:layout_width="wrap_content"…
-
2
votes3
answers528
viewsCordova/Phonegap error - Unable to start the daemon process
I created a new project Ordova and added the android platform normally as I had done before, but when I run the command cordova buildor cordova runhe gives this error I could not find the solution.…
-
2
votes1
answer880
viewsHow to change the content of a spinner by making the selection on another spinner?
I tried using the following code but error form.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int…
androidasked 9 years, 8 months ago Sousa Junior 21 -
2
votes2
answers387
viewsHow to return strings that are in crescent date format in Sqlite?
I took a long and recorded on the bench in this format SimpleDateFormat("dd/MM/yyyy") which is a string and now I need to organize the dates. I tried to use this command but it comes in descending…
-
2
votes1
answer514
viewsHow to get the last device location
I wonder if there’s any way to get the last location of GPS, before I run the option to perform obtaining the current position. public class Localization{ private GetGPSResponse delegate = null;…
-
2
votes2
answers1170
viewsFormat Phone number in Textview - android
I have a TextView that displays the user’s phone number, I would like to display in my application a mask that leaves the phone number in the format (xx) xxxx-xxxxx. How could I do that?…
-
2
votes0
answers4090
viewsDigital signature error when updating APK on Google Play
When migrating to Android Studio, it did not work to import my old project. So, and not being a very complex app, I created another one with the same package and exported using the same Keystore,…
-
2
votes2
answers338
viewsHow to create project installation done on android studio
I created a project in Andoid Studio, run it on the right virtual machine, now I would like to "compile" it to install on a real phone. How do I do it? I create a file and step into the mobile? I…
-
2
votes1
answer775
viewsCheck visibility of android keyboard
How do I check whether the android keyboard is visible or not? Some people say to calculate the difference between the size of the Rootview and its general layout of the activity, but for me, it…
-
2
votes1
answer43
viewsHow can I have that blue mask on my application?
I would like to know how to implement this Marketing in my app?…
androidasked 9 years, 1 month ago Gabriel Manuel 153 -
2
votes1
answer238
viewsHow can I make my Gridview images to have different sizes
I’d like gridview to stay that way…
-
2
votes1
answer437
viewsSave Arraylist to the external memory of an Android phone
have how to save an Arraylist by Fileoutputstream in the memory of an android phone? Or have some better method? For example: FileOutputStream fos = openFileOutput("Foto_Imovel",…
-
2
votes0
answers149
viewsError searching DB SQLITE information
I’m using the class sqliteopenhelper from android to database connection, our save() method, is working perfectly, but our search() method, where my cursor lists all registered cities, is not…
-
2
votes1
answer2711
viewsHow to access agenda on android and select contact
I want to make my application access the system agenda and bring a contact to save the data in database (Sqlite).
androidasked 9 years, 1 month ago Paulo Pereira 31 -
2
votes1
answer476
viewsWeb Service Java in Openshift using Tomcat 6 (Jboss EWS 1.0)
I’m trying to create a Web Service in JAVA so it can be consumed by an Android application. I need to use a Cloud technology, and only found the free Openshift and best recommended for now... Well,…
-
2
votes2
answers2823
viewsHow to send notification without opening the application
I need to send a notification every time someone requests friendship. How to create this notification I already know but I made a test app that sends through the action of a button. In this case the…
-
2
votes2
answers5551
viewsHow to play sound on android
Good morning, I would like to know how I can make a code so that by clicking a button it plays a sound
-
2
votes1
answer3049
viewsHow to put text in bold in Android String.xml?
Hello! On Android, I put: <string name="msg"> <b> Mensagem: </b> A mensagem que será ixibida junto ao áudio na tela. </string> Just where it says "Message" I wish it was in…
androidasked 9 years ago Conrado Saud 107 -
2
votes1
answer5160
viewsMake a graphic in android studio
Good afternoon, you guys. I’m starting programming on android and wonder how I can build a chart like this: Is there a widget I can drag or do I have to write code? P.s I use android studio…
-
2
votes1
answer137
viewsParameters via xml for custom Imageview
I have a ImageView customized, which will function as a Switch. On the screen, I will have several of this item, but of different colors. I wonder if it is possible to pass a color parameter in the…
-
2
votes0
answers110
viewsillegal Property webservice
I’m having a problem at the time of consuming my webservice. I have the following method (This method will return all users registered in the webservice that are in the database) User has (id,name):…
-
2
votes2
answers155
viewsHow to notify people that they have been invited to install an APP
I’m developing an app for Android but I’m having a problem. Well, what my app does: I create a playlist within the app and want to invite people to listen to the playlist, what happens is that to…