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
-
4
votes1
answer222
viewsAndroid notification
I have a very simple project to test that at the event onCreate from screen 1 sends a notification, which by clicking opens screen 2. Purposely, I quickly click on the notification to open the new…
-
4
votes1
answer271
viewsEdittext issues in a listview
I’m trying to get my listview retain the values placed on EditText, but every time I give one scroll I lose the data or it multiplies to other fields. Can anyone help? Follow below mine adapter:…
-
4
votes1
answer552
viewsHow to use a custom Adapter on android Listfragment
Hello folks I’m having problems with using a Adapter customized and display this Adapter in a Listfragment. My Custom Adapter public class UsuariosAdapter extends BaseAdapter { Context ctx; List…
java android listview android-fragment android-adapterasked 9 years, 3 months ago ThiagoDeveloper 55 -
4
votes3
answers1366
viewsHow to install an APK remotely? (how Googleplay updates apps)
I made a service to download an updated version of my application when it exists. I would like to display a message on the screen warning that there is an update and install/update behind my…
androidasked 8 years, 5 months ago daniel12345smith 2,120 -
4
votes4
answers6012
viewsHow to increase memory of Android Studio IDE?
Lately I’ve been developing for Android, and I’ve noticed that the Android Studio IDE takes a long time to load and start. I would like to know, how to increase the memory of Android Studio IDE? To…
-
4
votes1
answer376
viewsHow to ignore the accents in Listview on Android?
I was making an app for me kind of joking around and I came across a problem, the ListView Android Studio does not ignore the accents of Portuguese. Could someone post a code to fix this? Like do…
-
4
votes1
answer930
viewsHow to authenticate on site via Httpurlconnection to access the JSON method?
I have an Android application that must request a JSON from a web application, however to have access to the method it is necessary to login to the site. How do I perform this identification via…
-
4
votes1
answer421
viewsandroid - Image cache and display listview
Good afternoon, my friends, The thing is, I’m going to use Volley to get the data from the webservice, and so I write the list to my local BD with Sqlite. In this webservice will come a JSON with…
-
4
votes2
answers123
viewsSome errors on Android
I’m trying to start programming on Android. I created the project and came this code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
4
votes1
answer105
viewsTyping box
I want to implement in my application the similar model of google Contacts. I’ve tried to put app:civ_border_width="1dp" in xml but also failed. I would like to do the same image below:…
-
4
votes1
answer9504
viewsCreating tabs the right way on Android currently
I’m trying to implement in the app I’m creating Tabs, like this: But always when I try to implement I face classes and methods deprecated, as an example, TabListener, ActionBarActivity and now I’m…
-
4
votes1
answer1246
viewsTap the photo and open the gallery and camera
I have a registration screen where you have a default photo of a user. I would like to put both options. When the user touches the photo open an option for him to take a photo of the crowd and…
androidasked 8 years, 4 months ago Artur Mafezzoli Júnior 441 -
4
votes1
answer1159
viewsImport sqlite database already populated
I’m making an app requires only queries in a database. Since this is a very large amount of data, I think it would be counterproductive to feed this database using a insertOrThrow for each item of a…
-
4
votes3
answers1050
viewsIncreasing the size of a Textview, according to the amount of data entered in it
I am developing an app, for technical course work, and I have the following situation: I’m displaying data inside a Textview. Only there comes a time when the size is not enough. Observe the images.…
-
4
votes1
answer330
viewsHow to receive external data via XML
I am creating an android app and I need it to receive and show on the screen information of the tide board of the site below: http://servicos.cptec.inpe.br/XML…
-
4
votes1
answer419
viewsChange data from a specific position in Listview
I would like to know how I can change data from a certain Listview position. Here I upload from the database to Listview: public void carregarEmails(Cliente cliente) { ArrayList<Email>…
-
4
votes4
answers2661
viewsWhen creating folder inside the folder /res it is not visible in the left panel
When I put the name of the new folder and press Enter, that same folder does not appear on the left side of the Project nor can I reference its path. The strange thing is that if I put the folder…
-
4
votes2
answers6010
viewsHow to import classes like Httpclient, Defaulthttpclient etc
I implemented these classes, but I can’t import them; the project was done in Android Studio. public class HttpConnection { public static String getSetDataWeb(WrapData wd){ HttpClient httpClient =…
androidasked 9 years, 1 month ago Carlos Ximendes 267 -
4
votes1
answer165
viewsI can’t save the information to a local database!
I’m having trouble saving the information typed by the user in the Postgresql database, I developed an application in Android Studio and I’m using an external local database with Postgresql to store…
-
4
votes1
answer135
viewsCheck click position on a Listview
I have a screen that has a ListView inside it, I need to identify which line was clicked to direct to the correct location. How can I do this?
-
4
votes1
answer112
viewsPush Notification Amazon SNS - Message cut
Hello, I’m using Amazon SNS to do push shots through C#. On the Android device, the message is cut in a row, and when you click on it, the application is redirected directly to the application. But…
-
4
votes1
answer83
viewsImplement contact editing after saving to the database
Hello! I’m adapting a aplicativo that manages contacts with interaction banco de dados. In the aplicativo, I am inserting and deleting contacts but I’m having difficulties to implement the método to…
-
4
votes1
answer341
viewsError inserting Mysql PHP data using Android Volley lib
I am developing an application that will have to send data to a server. My php source code is this: Connection.php <?php $mysql_hostname = "localhost"; $mysql_user = "root"; $mysql_password = "";…
-
4
votes1
answer2263
viewsWhat is the purpose of contentDescription?
I have in my application I have several Warning's as stated below: [Accessibility] Missing contentDescription attribute on image Imagery I did some research and found that it’s about the…
-
4
votes1
answer456
viewsSave tts as audio file
How can I generate an audio file from a TexttoSpeech to share with other services (sms, Whats, messenger, ...)? I created this function to share private void shareAudio() { Intent intent = new…
-
4
votes1
answer533
viewsMethod Invocation may Produce Nullpointerexception
I’m using geocoder to turn the Edit text address into Longitude and Latitude. Then he’s doing it right and saving in the bank the lat and lng, but he gives an Exception that does not cause any…
-
4
votes1
answer230
viewsShow emoticons with independent keyboard button
I am developing an application in which I created a button that I would like you to do the same function of showing the emoticons keyboard. This image: btnMostrarEmoticons.setOnClickListener(new…
-
4
votes1
answer336
viewsError when rounding Bigdecimal
I’m performing a calculation with two methods, only since the attributes are of the type double, I’m using the BigDecimal to perform the operation and after that convert to two decimal places only.…
-
4
votes2
answers1726
viewsHow to create a Library-Android using Android Studio?
I have some projects in development process and have several common classes for these projects. I would like to know how to create and use a Lib of the classes so I can reuse them whenever I need…
-
4
votes2
answers676
viewsInstallation of Firebase in Android Studio
I was watching a video about installing Firebase and it says to go into: File > Project Structure, and open this image window: However, the next step is to click Cloud, but when I enter Project…
-
4
votes2
answers363
viewsAlternatives to Google Maps
I recently learned that for applications that track users (e.g., taxi apps), Google maps charges an annual license to use its API. I would like to know if there are other map API alternatives for…
-
4
votes3
answers1444
viewsList of questions, each question with a list of answers
I’m implementing a question and answer app. For my listing I am using a Recyclerview in which I load several Cardviews (coming from loading a list). Each Cardview shows a question. Below the text of…
android android-layout android-adapter android-recyclerviewasked 8 years, 12 months ago SpammingOff 387 -
4
votes4
answers1390
viewsHow to change the dynamically displayed Layout
I want to do this, I currently have a Listview that is embedded within my activity_main.xml as follows: <include layout="@layout/lista_categoria" /> I would like to know a way to display…
-
4
votes2
answers789
viewsCall Activity after Facebook login
I’m new in the world Android and I’m in need of some help. I can’t make the call to a new Activity after the facebook login. The login is running correctly and when it is successfully performed, it…
-
4
votes3
answers4648
viewsAndroid Delphi-10 build error on Windows 10
I’m having a problem to compile for android on Delphi-10, follow the error [Exec Error] The command "PATH C: Program Files Java jdk1.7.0_79 bin;C: Users Public Documents Embarcadero Studio.0 Bpl;C:…
-
4
votes3
answers785
viewsCreate Textview’s dynamically
I have a TextView and would like that instead of filling with a Arraylist, with all items in your setText, that it be created several times on the screen, with the respective items of this array, in…
-
4
votes1
answer191
viewsisUserAMonkey() and isUserAGoat() methods
What is the real function of the methods isUserAMonkey() and isUserAGoat() in the Android SDK? In what situation they should be used?…
-
4
votes1
answer82
viewsWhat library do I use to send notifications?
Hello, I’m developing an app where patients have left it in the background or even open, and when the patient’s turn arrives, the office sends a notification saying it’s his turn. Do you have a…
-
4
votes1
answer119
viewsHow to change a menu item after it has already been created?
The following I create a menu through the onCreateOptionsMenu method,. @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.filter_menu, menu); mMenu=menu…
-
4
votes3
answers219
viewsHow to create a top numeric bar on your Android keyboard
Does anyone know how to create in Edittext XML that number bar on the keyboard?…
-
4
votes1
answer49
viewsExpandablelist Customizable
I’m new to Android, but with an ambitious project. I’m trying to make a ExpandableList customized, with two TextViews on the items and the one on the left needs to have the background changed as per…
-
4
votes1
answer292
viewsStop touch(sound) of notification
I have an Android app that wakes up with the system notification standard ringtone. The problem is that when it clicks on the notification the alarm does not stop. I use a class for notification and…
-
4
votes2
answers980
viewsAnalyze sound waves from an MP3 file and representation
Is there any way, in Java/Android, to open an MP3 or WAV file and from the same get the sound waves constantly ? according to its reproduction ? and power from that constant return make its graphic…
-
4
votes1
answer1144
viewsHow do I change the color of the bar status icons in Material Design
I need to change icon colors equal to app of Google Agenda, as shown in the image below: I saw that in Material Design you have the options colorPrimaryDark but you don’t have to change the color of…
-
4
votes1
answer37
viewsI have a fragment that renders an xml but if there is no record I want it to render another page(xml)
I am new on android and do not know how to do it. Follow a small piece of my code. I will check if there are no records if the list is not empty. If it is empty I need it to render another page of…
-
4
votes1
answer250
viewsIs it possible to call a method when the application is closed?
What happens when the user closes the app without calling a preset method in the app, what I mean is when it removes the app from the list of active apps.What happens at this point in time is?…
-
4
votes1
answer118
viewsHow to use Google Glass in Android Studio
I’m trying to install Google Glass in my Android Studio, but I’m not getting it. When I create a new project, it does not provide me with the Glass option and informs me that it is not installed. I…
-
4
votes2
answers5999
viewsHow to put line break in the textview straight from xml?
wanted to put this text more organized without creating several textview , and I had the idea of using line break .…
-
4
votes1
answer987
viewsConvert a String Arraylist to a Json
I need to convert one ArrayList of String on a JSON. I have a method in which I get a list of apps installed on the mobile device. This method returns me the data in a String Arraylist. I was able…
-
4
votes2
answers755
viewsWhere to store API connection credentials on Android
I wanted to know a suitable place to save the connection with the api (link, user and password), initially I was thinking of saving in an xml, but I believe that any user will have access to this…