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
-
1
votes1
answer45
viewsTimepicker in 24h format
I’m thinking of using Timepicker in my news app and to determine the time of the notifications I’m using calender however the time of the Timepicker and from 0 to 12 am and 0 to 12 pm and the…
-
1
votes1
answer15
viewsTreatment when converting given
Guys want to convert String to Double already know how to do, but my string has ,(comma) and the double does not accept, how do I turn this comma into a dot? someone can help me?
androidasked 6 years, 5 months ago Romão Gomes 143 -
1
votes1
answer258
viewsDefault color of app
Hello, I need to find how to set the default color of apps. It wouldn’t be the background or font color, it would be the same app color. For example: in led settings, have the option to show the led…
-
1
votes2
answers286
viewsHow do I publish apps for tablets in the Play Store?
I can’t make my app available to 7 and 10 inch tablets, when I send the APK to the Developer Console, it shows the following error: Design your app for tablets Your APK does not seem to have been…
-
1
votes1
answer504
viewsHow to retrieve IMEI from mobile programmatically?
so, I need to recover the IMEI of the phone that is using the app, I tried to use some old methods, but I always get the warning that the method was deprecated...could help me? Grateful from the…
-
1
votes0
answers86
viewsCapture JSON links to each recyclerView and pop up link data that has been captured which is another JSON (complicated)
So it’s complicated to ask, but anyway, that’s the logic: [ { "name": "http://meusite/dados1.json"}, { "name": "http://meusite/dados2.json", }, { "name": "http://meusite/dados3.json"} ] So as it was…
-
1
votes1
answer512
viewsParametric passage from one fragment to another
I don’t know how to work with two fragments, I looked for some things here but I didn’t know how to look right. Of Activity for another I use the Bundle and it works, but I don’t know how to use it…
-
1
votes0
answers46
viewsLocking on the map Onresume();
I have the following code is locking on the map in Onresume(); Could someone help me? public class fragRegion extends MyFragment { private MapView mapRegio = null; private AlertDialog alertD = null;…
-
1
votes1
answer32
viewsHow to use newFragment.show()?
I’m having trouble displaying a calendar after clicking on a button. Does not recognize the newFragment.show(); public void secionarData(View view) { DialogFragment dialogo = new…
-
1
votes1
answer713
viewsHow to make an application in two languages by changing the language in the Settings menu? Android studio
I would like to do this manually via a click, Portuguese or English language. and search for the correct string. public Boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().…
-
1
votes1
answer38
viewsHow to scale a bitmap quickly
I’m making a game using Surfaceview and I need a bitmap to be , for example ,a size of 20x20 ,but this bitmap is reused in other parts of the code in different sizes ,that is, it would not be…
-
1
votes0
answers41
viewsDoubt with Parser XML
I have a project that uses Jsoup to parse an xml and I am changing the implementation to Retrofit and Simplexml, but the xml structure varies in the Content block, where can only come a String with…
-
1
votes3
answers705
viewsPass parameter to the second Activity
I am trying to pass some parameter to another Activity, but the application hangs on the second screen. The name of the application is calculator. The error that says on the second screen is:…
androidasked 8 years, 1 month ago André Nascimento 1,258 -
1
votes1
answer698
viewsError:Execution failed for task ':app:transformClassesWithDexForRelease' de Lcom/google/android/gms/Internal/zzbw; Would anyone know this error?
In my Android Studio is giving the following error when trying to make a store apk: Error:Execution failed for task ':app:transformClassesWithDexForDebug'.…
-
1
votes2
answers539
viewsData synchronization on android
So, I’m in a project that needs to save a large mass of data coming from a json api on android’s Sqlite, something around 20 thousand records, in order to be able to work offline without problems.…
-
1
votes1
answer35
viewsInstall app if it does not exist on the smartphone
I developed an app that needs to open the file manager, on my device it works perfectly, but in others it did not work, because the manager is not installed, I would like the app itself to identify…
androidasked 6 years, 4 months ago Thed Santana 53 -
1
votes0
answers340
viewsHow to resolve error " Arrayadapter requires the Resource ID to be a Textview "
wanted to list all bluetooth devices in a list, but when I try to create a Arrayadapter the application hangs and gives this error ` protected override void OnCreate(Bundle savedInstanceState) {…
-
1
votes0
answers60
viewsFill gridview checkbox via SQL Server
I have a checkbox in gridview and I want to load fields of type 'bit' in the SQL Server bd at this checkbox, or if it is 'True' the checkbox is 'check.' I have this: connect = CONN(un, passwords,…
-
1
votes0
answers84
viewsLock cell phone buttons, by android studio
I have a question. I would like to press a button in the layout created in Android Studio, could lock the buttons on the phone(volume and on/off). And that it would only return to normal, after I…
-
1
votes2
answers417
viewsPick image coordinate by clicking on it
I’m in a Xamarin/Android project. I need that when the user touches on a ImageView I can get the coordinates (from the image) from that touch. How to do this?
-
1
votes0
answers157
viewsError: android.view.Inflateexception: Binary XML file line #0: Error inflating class <Unknown>
Whenever I run my app on some devices (In the ones that received this error, API was 21. In the others with higher API works without errors), this error message appears that I can’t decipher. It…
-
1
votes1
answer112
viewsSign in Textview - Android
I wonder if you have how to do the sign effect on a textview the text is too big, and I don’t want to break line, I want the text to move from right to left horizontally. The text I want to…
-
1
votes1
answer581
viewsMetodos de Intent para enviar email
Could someone please clarify the following code: Intent intent = new Intent(Intent.ACTION_SENDTO); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_SUBJECT, "Subject of email");…
androidasked 8 years, 1 month ago pokemon_cwb 55 -
1
votes0
answers29
viewsAdd forms via a button
I am developing a grocery list application, and in this application the user registers the products from the list, and then saves the same The user enters the product name and quantity,and and the…
androidasked 8 years, 1 month ago Victor Hugo 53 -
1
votes2
answers161
viewsHow to round double values returned by Interface Location
I own a ArrayList that stores GPS coordinate objects and their elements are always being compared with the double values returned by the methods getLatitude() and getLongitude() of Interface…
-
1
votes0
answers438
viewsError: android.view.Inflateexception: Binary XML file line #10: Error inflating class android.widget.Listview
I am running my app, however it returns the following error: Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class android.widget.ListView And I’m simply running…
-
1
votes0
answers74
viewsProblem creating android unit test with Rxjava and Mockito
The test is about making the assertions that the methods are called when the execution is successful, but an error is occurring that I cannot solve. My class: class LoginActivityPresenter(private…
-
1
votes2
answers102
viewsHow to set data correctly in Lisview?
Guys, I’m picking up a bit with asynchronous request on Android. I’m requesting a list of states on JSON, via OkHttp, and turn into a ArrayList states to be able to state ListView. However, in every…
-
1
votes1
answer31
viewsImages in Listview reloading every time I select Fragment?
I’m using the drawable batch to generate different images according to dpi. Each original image has a resolution of 1920x1080 with an average size of 350kb. However, an image with a huge size of 4mb…
-
1
votes2
answers115
viewsFATAL EXCEPTION error when loading image gallery using Asynctask
I’m creating a small gallery and I’m having trouble uploading the images using Asynctask class Adapter: public class AdapterGaleriaFragment extends BaseAdapter { Context ctx;…
-
1
votes0
answers467
viewsHow to generate a list with data from an Android Checkbox?
I am developing an Android app for pizzeria that generates a list of ingredients from checked Checkbox, IE, the user gives a "check" in the items you want for your pizza as catupiry, pepperoni,…
-
1
votes1
answer57
viewsClient-Server between APP trackeia real-time location
Hello, we have an app that sends every 15 seconds the location of users to the server. Currently it is a simple POST from (lat/lng) in the API, there would be another better way to do this? Some…
-
1
votes1
answer101
viewsHow to center a recyclerview (horizontal) item horizontally on the screen?
What I want is the following result: Whenever the user moves to the next or previous item, it will be centered on the screen, just as it works if I use Carousel. I tried some libs from Carousel only…
-
1
votes1
answer69
viewsNetwork application identification
Hi, I’m creating a barcode reading system where I have an app on a camera device, and it sends that information to a web page on a PC. But I created to make the page to make a search in the user’s…
-
1
votes1
answer208
viewsHow to download data from firebase by Storage?
I used the documentation provided by Firebase and still did not understand how to download a file that is in Storage by my app.
-
1
votes1
answer373
viewsWorking with high quality images in sqlite3
In my application I make the selection of an image from the gallery, then I save it in the bank, but if the image has a high quality the app does not save, besides not saving it to work, has some…
-
1
votes0
answers220
viewsFormat a Decimal Type Field and Inlcuir in Xamarin Sqlite Forms with Android
Hello to the Masters of Xamarin Forms, I have a little problem, for you maybe very simple. I am not able to format a decimal type field in monetary value and then do the same Insert in Sqlite. Below…
-
1
votes1
answer779
viewsWork with images in Android Studio
I wonder if there is a way to work with images on android. I have a List View, in this list I have several categories. When the user selects this category, he would like it to load all the images…
-
1
votes1
answer126
viewsError: Service Intent must be Explicit
Hello, I’m having the following error on android, someone can help me? Erro: Service Intent must be explicit: Intent { act=SERVICEPUSHNET } Code: SMART.JAVA package imm.pt.immsmart; import…
-
1
votes0
answers121
viewsHow to properly connect bluetooth server in C to Android?
I am trying to connect an application between the computer and an android app. The app will be the client and the computer will be the server. Using Bluez( C library for bluetooth on linux) for…
-
1
votes0
answers42
viewsAllow download within Iframe on Android
I am developing an app with Ionic that has a webview page within an iframe, in this webview there is a download button that works normally in the browser, but android does not work. I believe…
-
1
votes1
answer102
viewsListview only appears when I click to close the keyboard
I do not know how to solve this problem, but the list-View does not appear when I do the search, it only comes when I click the button to close the keyboard, it seems that when I press the button it…
-
1
votes1
answer53
viewsPause an Asynctask until a task is completed
In my Asynctask I urge 4 new objects, only I have to stay in it until all objects are brought in. Follow the code: @Override protected Void doInBackground(Void... voids) { new…
-
1
votes1
answer1371
viewsHow to list files and folders from ftp server?
I’m not able to list the FTP server in the app, using the Android emulator, I realize that in the old versions of Android the listing happens normally. However from Android 4 I have problems for…
-
1
votes2
answers277
viewsRecover information from a sharedPreference Android
Good evening, I have some information saved in Sharedpreferences(email and password) and need to recover them in several places for use. I created a Fragment so the user can save the screen:…
androidasked 6 years, 2 months ago Ronaldo Lopes 453 -
1
votes0
answers316
viewsNo Setter/field for found on class
So, guys, it’s kind of a beat-up question I know, but I couldn’t find a solution to my code here. I need to get the information that’s inside node 5883, but apparently it populates my class with the…
-
1
votes1
answer760
viewsRequest permission to access Android internal storage by a Fragment
How do I make to request permission to access internal storage of the apparatus by a Fragment? In the normal Activity I used that code: int REQUEST_CODE = 0;…
-
1
votes1
answer56
viewsHow to hide system images, from android firemonkey gallery apps?
I need the images used in the system not appear in the android gallery application, as they are images used only by the system and when viewing them some customers delete them.
-
1
votes3
answers686
viewsProgrammatically change the background color of the Overflow Menu in the Toolbar
My application has an option that allows the user to switch between layout daytime colours and other layout night colors. My problem is that I don’t know how to programmatically change the color of…
-
1
votes1
answer74
viewsRecover the amount of children who have a knot
How do I recover the amount of children you have in a knot? I already have the right path, I just need to know how to count the children of this knot. private DatabaseReference qtdeFilRef;…