Questions tagged as 'android'

2
answers

Remove the comma in a double. Android studio

The thing is that I do calculations with decimals so I use "double" to store the quantities. And even if the number is whole without decimals, it always shows me the .0. That is, if the result is 40, it marks me 40.0 Is there a way to remove...
asked by 14.04.2017 / 14:36
1
answer

Conflict between PreferenceFragment and onOptionsItemSelected

It seems that I have a conflict between PreferenceFragment and onOptionsItemSelected, I am trying to send several ListPreference variables from UsbSettingActivity to MainActivity using Intents, the problem is only the first data arrives, using t...
asked by 27.11.2018 / 02:25
1
answer

android arrayLIST of objects ksoap does not fill my listview

I am developing an app that consumes webservices, the detail is that they send me a method called menu , which returns me an xml, I am implementing the class Asynctask and in the part of Ibackgrind I make the call to my webse...
asked by 21.04.2016 / 21:53
1
answer

Error when playing shared sound with shared preferences

with an intent I select an mp3 file and I save with URI the location in shared preferences as I found in Google; in another activity a media player element is launched that rescues the uri. But ... I give play to play it and it works I clo...
asked by 24.11.2018 / 19:14
1
answer

How to use CardView + ListView in the same layout?

I am interested in creating a layout divided into two parts, at the top a CardView (I do not have to use RecyclerView , since I only need one) I leave this image as an example: The problem I have is that the CardView...
asked by 01.03.2016 / 19:35
1
answer

Login on Android

I'm implementing in my Android app a login with both username and password and google and all this with firebase. The fact is that I have two buttons, a button that initiates me taking the data Email and Password of two editText and another butt...
asked by 14.11.2018 / 23:16
1
answer

Error Could not read row 0, col 5 from CursorWindow sqlite CRUD

I was starting my app to make the connection and return the list with the data of the object and throws me that error some solution to be able to continue with my app? 2018-11-11 22: 04: 55.122 4942-4942 /? E / AndroidRuntime: FATAL EXCEPTION...
asked by 12.11.2018 / 02:20
3
answers

Android Studio 3.1.3 recognizes as "null my images"

When I try to reference an image from the code of an activity I get the problem:    java.lang.RuntimeException: Unable to start activity   ComponentInfo {com.example.deybin.figuremapsearching / com.example.deybin.figuremapsearching.MainActivi...
asked by 22.10.2018 / 02:52
1
answer

Change the map style using MapBox on Android

I have a map loaded with Mapbox but I can not find a way to change the default style. Bring a street map, here it is in the xml code of the view: <com.mapbox.mapboxsdk.maps.MapView android:id="@+id/mapView" android:layout_width="mat...
asked by 15.11.2018 / 22:02
2
answers

Error Copying directory file downloads to another, open failed: EACCES (Permission denied) in api level 19

Good morning. I have the following problem in ANDROID STUDIO, I have an application in which the user chooses a pdf or word file, gets the path of the path and if the user decides to upload the file to the server, the application copies the file...
asked by 15.11.2018 / 20:35