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
votes0
answers682
viewsPayment by Credit Card
It has how to make a payment system via credit card, but without using PayPal, PagSeguro, PagamentoDigital or Others? The Card Companies offer some kind of Code, API, or SDK?…
-
4
votes1
answer764
viewsHow to allow my app to be moved to memory card?
All the applications I’m developing of tests do not allow me to move them to the memory card. Is there any way to do this? You have to ask for some permission on Manifest.xml? I put the property…
androidasked 10 years, 2 months ago AndersonSouza 339 -
4
votes1
answer169
viewsDifferent layout on another device
My layout looks different on small devices, already tried to add a ScrollView to solve this problem and I got no results. Follows the prints application running on different devices: Resolution 720…
-
4
votes1
answer499
viewsHow to adapt APP that uses TCP protocol to 3g connection?
I am developing an APP for Android and used direct TCP connection and also HTTP requests. For the perfect functioning of my application being connected on a 3g network instead of Wifi, I need to…
-
4
votes2
answers10087
viewsChange an Edittext mask at runtime
I have a EditText which is used for CPF and CNPJ. I need to use it time as CNPJ and time as CPF. I need to change the mask at runtime according to the selected type (CNPJ/CPF), but in doing so, a…
-
4
votes1
answer104
viewsHow to keep the same layout for different versions?
How can I keep the layout from my apps to the different versions of Android? Example: A EditText has layout in version 2.1 and another in version 4.x, how to keep the layout version 4 in previous…
-
4
votes1
answer852
viewsHow do I layout an android app in Photoshop using PX if google only provides me DP?
I’m trying to draw the layout in photoshop, but I can’t understand this history of DP in photoshop, in code it’s okay, the compiler understands, but in photoshop I can only work in PX. Can anyone…
-
4
votes3
answers464
viewsadb error: The Connection to adb is down, and a Severe error has occurred
I am developing for Android and am having the following error: The connection to adb is down, and a severe error has occurred. -You must restart adb and Eclipse. Please ensure that adb is correctly…
-
4
votes1
answer108
viewsProblem in Context and Sharedpreferences on android with service
I’m trying to create a service on android, it is ready however in running the application to. If I comment on the variables ctx and prefs, it works but I need them, can you tell me if there is…
-
4
votes2
answers437
viewsWhat is the best way to represent a login table with two types of Facebook and Conventional authentications?
I have an Android app and have a conventional login Activity. Currently I want to add login with social networks. How best to store this type of distinct logins in tables. I create a single table or…
-
4
votes1
answer83
viewsAndroidmanifest with multiple tags <application>
I need to use the PARSE and VOLLEY libraries in an Android APP, however, both need to be declared in the TAG Application, on AndroidManifest, but I noticed that there may only be one TAG Application…
-
4
votes1
answer937
viewsProblem with 8 digit hexadecimal colors - Android
I am working on an app where I am trying to follow Google’s Material design guide. On this page, it is recommended to use the black color (#000000) with 87% opacity as the color of the main texts.…
-
4
votes1
answer3548
viewsSend a message via Whatsapp programatically
I tried a few codes but I haven’t got anything yet. I’m raising the possibility of sending one-on-one through a loop. Does anyone know how? Following tutorial I tried…
-
4
votes1
answer80
viewsIn-app purchases through the carrier
Nowadays in my application I use the in-app-Billing system, but I would like to know if it is possible to make sales and charges for the credit of the user’s device operator. Is it possible? In one…
-
4
votes1
answer1667
viewsADB does not recognize Android device on Mac OS
I’m trying to activate the mode of Debugger on my Motorola Razr i to be able to run my Android projects on the device itself. But when I enter the Mac terminal and put the command ./adb devices to…
-
4
votes1
answer291
viewsHow does android APP versions work?
I wonder if the version of the Android APP is I who define in XML by TextView same, or has something you have to do to generate that number.
-
4
votes1
answer339
viewsHow to create button in Android Behind code?
I’m developing an app where I download some images from the internet when the app opens. I want, when I have these images downloaded, to create a button for each image and put it in the background.…
-
4
votes1
answer1933
viewsAccessing Webservice by Android - KSOAP2
I am creating an Android APP and have to connect with the web service of my company to make the login system, I am using the lib KSOAP2 3.3.0. The path of my WS is for example as:…
-
4
votes2
answers1134
viewsHide Menu Navigation Drawer when choosing item
I would like a help of how I can do when clicking on the Nvaigation Drawer item go to the specific Fragment, and in this Fragment I do not want to make available the Navigation Drawer for the user.…
-
4
votes2
answers131
viewsProject imported from Eclipse to Androidstudio has no R reference
I imported a project from Eclipse for Android Studio, but he has no reference to the old R.
-
4
votes1
answer7881
viewsData saving on Android
I have a project based on the following 'folders' structure that will be saved some data in the external memory: /AppName Example1 [ Text files and etc. ] Example2 [ Text files and etc. ] Let’s say…
-
4
votes3
answers1464
viewsHow to control volume to app media on Android
I’m like a doubt on how to control the volume of the app’s media. I’m using this method: Button button1; MediaPlyer mp; button1 = (Button)findViewById(R.id.button1); button1.setOnClickListener(new…
-
4
votes2
answers1201
viewsHow to store information when leaving an application and recover in next use?
I would like to know how to store information, such as this variable: int t = 0; Let’s say that during the use of the application, the user did some operation that added + 5 in this variable. How do…
-
4
votes2
answers5553
viewsWhere to create the Assets folder in an android project?
Where the folder should be created Assets? I want to use it to store my sources.
-
4
votes1
answer130
viewsHow do I save read-only data? Should I use Sqlite in this case?
I’m developing an app (a widget actually) that shows some sentences in home user. I have about 1000 sentences of approximately 150 characters, how will I store it? In this case the use of DB is…
-
4
votes2
answers1027
viewsStream video mms or rtsp:// on android
I’m looking for some lib to play video stream in the format mms://..., I’ve tried with Videoview but says it does not support this format(Windows media player), looking for apps (in google play)…
-
4
votes4
answers5215
viewsError in v7 appcompat in v21 themes
Recently, I went to make a clean project in my project, and I don’t know why it didn’t generate the R.java, and my project was working normally. So I had the brilliant idea to reinstall the SDK and…
-
4
votes2
answers2136
viewsHow to use a Bundle with an uncivilized type?
I’m with the next class created by me: public class Telefone { private String nome; private String telefone; public String getNome() { return nome; } public void setNome(String nome) { this.nome =…
androidasked 10 years ago Pedro Rangel 2,747 -
4
votes2
answers2271
viewsTake printscreen on Android by API
I have a app and one of the functions would be to printscreen screen. How to do this?
-
4
votes1
answer841
viewsDifference between calling the Fragment call and a new instance
I’m working on a college project where I made an app that uses Ragments. I’ve always been used to creating a Fragment as follows: // imports ... public class LoginFragment extends Fragment { public…
-
4
votes1
answer367
views"cannot be resolved to a variable percentage"
I need to set the variable value porcentagem as defined in Spinner. The problem is that I need to use the value of porcentagem out of method setOnItemSelectedListener(), on the line int r =…
-
4
votes1
answer153
views -
4
votes1
answer1408
viewsAndroid display a screen only the first time you open the application
Is there a way to run a specific screen (such as identification) the first time the application opens? And every time I launch an update on google play, people who already have the app installed and…
androidasked 9 years, 6 months ago Diego Figueiredo 43 -
4
votes1
answer95
viewsActivity has Leaked window Android
I make a connection with Mysql and it returns me a JSON that I play on a list of products. When I click on one of these items it takes the ID (I call PID in the code) of the product and sends it to…
-
4
votes1
answer294
viewsVery slow listview on scroll bar
I have a problem I don’t know how to solve, I have a ListView customized with images and the scroll bar keeps crashing, even with the list loaded. It slows down the list to scroll. Adapter: public…
-
4
votes1
answer3345
viewsHow to write the percentage symbol on a string in Java?
How to make the string accept the percentage symbol '%' ?
-
4
votes1
answer143
viewsNotificationmanager causes java.util.Arraylist error cannot be cast to java.lang.Charsequence
I’m making an Android application and I’m having a question while generating a notification. Here I will be providing an excerpt of the code: public void gerarNotificacao(View view) {…
androidasked 9 years, 11 months ago Otavito Melatito 61 -
4
votes2
answers312
viewsProgramming for Android with multiple screens
When I program for Android, I think of portability with the most diverse devices on the market. Seeing the layout of my Activity principal, I noticed that in devices with small screen (I did the…
-
4
votes2
answers5861
viewsChange the line color of an Edittext
I have a Layout simulating a PIN screen (type one lockscreen), where I have a EditText. I’m using the AppCompat v21 to be able to use the Material style elements. However, I want to set the…
-
4
votes1
answer1346
viewsHow to make scrollview scroll always visible
I have a horizontalScrollView and wanted to leave the scroll bar always the display. <HorizontalScrollView android:layout_width="fill_parent" android:layout_height="wrap_content"…
androidasked 9 years, 11 months ago Ilgner de Oliveira 1,098 -
4
votes1
answer1518
viewsCompare two dates
I have two string containing dates dataSalva and dataDoDia and I’m wondering if the dataDoDia and 5 days longer than dataSalva how do I do this SimpleDateFormat dateFormat = new…
-
4
votes1
answer3125
viewsHow to set up UTF-8 in Android Studio?
This error appeared in Android Studio. Is there any setup to fix? Error:(85, 69) error: unmappable Character for encoding UTF-8
-
4
votes1
answer4993
viewsHow to change the font color of the application title
I’m looking to change the font color of the application title There where it is written COMO ESTOU DIRIGINDO? how to do this?…
androidasked 9 years, 5 months ago Ilgner de Oliveira 1,098 -
4
votes1
answer611
viewsHow to read a Json without knowing what is inside it or the amount of data?
I’m developing a dynamic form for Android in which you get a Json file and create the forms. Everything is automated, except for the part where I have to pick up a string in Json’s hand. There is a…
-
4
votes1
answer1297
viewsHow to put a web service in a hosting?
I have an Android project that uses a Web Service, but I have to reset all that use or do tests, activate it in Tomcat through the eclipse and sometimes when I test on different networks, I have to…
-
4
votes1
answer500
viewsSome devices can’t find my app in the playstore
From time to time I’ve been updating the application, some devices do not find, I tried on my tablet positive 10 inches, and did not find. I have already configured the manifest to receive support…
-
4
votes2
answers243
viewsDesign in different versions of Android
I only played a few times with Android and always had problems due to test on a smartphone with Android 4.0, for example, I had to use another Ratingbar because of the incompatibility. Since…
-
4
votes1
answer459
viewsShare Audio File
I recorded an audio file, like . 3gp, through the phone microphone, in my own application 'Android'. I would like to know how to share via Intent, because I only share texts. Note: I have the…
androidasked 9 years, 4 months ago César Alves 293 -
4
votes1
answer1016
viewsHow to keep the selected item color fixed
Adding the Istener to the Listview through the method setOnItemClickListener, every time you click on one of your items, it momentarily changes color. Is there any way to keep this color fixed on…
-
4
votes2
answers3188
viewsHow to receive data via POST, sent from android to PHP webservice?
I had made a webservice in java, now I’m switching to PHP and I’m having difficulty implementing a page that receives via POST a JSON that the Android app sends. ANDROID public static String…