Questions tagged as 'android'

1
answer

Error compiling "Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes"

I was running my application and suddenly it does not work anymore and I get these errors: Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes Error:1 error; aborting Error:Execution failed fo...
asked by 04.07.2017 / 04:12
1
answer

Update image of a listview update incorrect index

I need to update the image of each position of my listview , the problem is that so far it updates the image, but of the wrong index, in the screenshot below there are 2 buttons, for 2 images respectively, the current problem is that the s...
asked by 17.04.2017 / 20:35
2
answers

Color icons in navigation drawer?

How can I put color icons in the navigation drawer such as Google apps that take their colors; I tried but when I put a custom icon it gets gray and does not take the original color, I tried declaring the attribute in the navigationview (setIcon...
asked by 05.04.2017 / 21:39
2
answers

Error reloading fragment

Good afternoon I am presenting the following problem, when trying to reload a fragment the application is hung and then the cell phone restarts. The fragment AdminComment shows a listView that when you press one of these objects in the listVi...
asked by 24.02.2018 / 22:24
1
answer

How can I compare geographical coordinates in android studio and google maps

I have a variable with which I get my location and now I want to compare my location with a fixed marker How can I do it? I try to do this protected void startLocationUpdates() { if (ActivityCompat.checkSelfPermission(this, Manifest.permis...
asked by 21.02.2018 / 09:25
1
answer

Percentage in android studio

hello friends that I have a doubt to get the percentage in Android is that I saw how it was done in android and it is supposed to be similar this is my code in android: Where I'm supposed to do this sum2 = to a total of a previous operation i...
asked by 24.02.2018 / 22:44
1
answer

format of android text strings

Good, I have the following problem: I am making a query to a database, the query brings me a value type String with a format type ###. ###, ## the question I have are the following: 1.- How can I eliminate the commas and points to use that da...
asked by 11.08.2017 / 03:54
1
answer

How to do expandable Tabs in Android Studio

I have the following problem with the tabs in my application. The truth is not because the menus are narrowing, I would like them to be able to be displayed from one side to the other as in a scroll without the texts separating, but the...
asked by 20.07.2017 / 19:24
1
answer

What is the best way to fill a spinner with sqlite?

I've had problems with the spinner because the setSeletion () method does not work, I do not know the reasons, but I think it's because of the popular way, that's why I use you to give me ideas, for that I've already used several methods, which...
asked by 31.05.2016 / 18:31
1
answer

Language error when installing Android Studio on Linux Mint 18.3

I am trying to install android Studio on Linux Mint 18.3 but it throws me the words as rectangles. Can someone help me please?     
asked by 21.12.2017 / 00:23