Questions tagged as 'android'

2
answers

Calculate distance between two android coordinates

I would like to know how I can find the distance between 2 coordinates in kilometers by car, I am using the google maps API. I appreciate any contribution.     
asked by 22.10.2016 / 12:38
1
answer

Convert a bitmap to string

Is there a way to convert a bitmap to string without converting it to base64 ? I have an app that sends images to a database, but I send them in base64 , and this takes up a lot of memory (based on what I've read) for t...
asked by 24.11.2016 / 20:07
2
answers

How to use windowSoftInputMode="adjustNothing"

Good, I have a layout for an activity in which when I'm going to use the android keyboard it hides some views, I've been looking and they tell me that to solve it we should use the following attribute: android:windowSoftInputMode="adjustPan"...
asked by 21.11.2016 / 17:38
2
answers

How to remove spaces from a CardView?

Good I am trying to create a Cardview but this one leaves me of the LinearLayout, I pass them the code to see if they can help me I am a beginner and surely I am doing something bad. LinearLayout.LayoutParams lParams = new LinearLayout.LayoutP...
asked by 22.11.2016 / 15:41
2
answers

Json error converting JSONObject

I have tried in every possible way, I have a script that receives a json that comes from an url of a web api, but when I try to pass it by JSONObject it throws me error, this is the piece of the code where it gives error Response respon...
asked by 10.01.2017 / 21:05
1
answer

Get text (String) from a RadioButton within a RadioGroup

I want to get the text of rabiobutton selected by the user. I have 5 radiobutton within a radiogroup to then use this field in an Asynctask and insert in a BD. the fact is that I can not get the text. What I have is the f...
asked by 11.01.2017 / 21:33
2
answers

How can you store an image in a SqlLite database? [closed]

I want to know if it is possible to store an image in a Sql Lite database. Thanks.     
asked by 16.11.2016 / 18:31
3
answers

Create listview in a Fragment on android

I am creating an application in which I include a listview , in a Fragment . Said listview I had already executed in a normal activity and all very well, now that I want to run in a fragment I get several errors. Th...
asked by 03.11.2016 / 01:55
2
answers

Create countdown N seconds while viewing an Activity on Android

I want to implement a countdown of N seconds, which starts when the Activity is displayed, the counter stops when the user decides to change the app and resumes when the focus is re-focused. Events must be detected in order to launch p...
asked by 09.10.2016 / 13:58
1
answer

Spinner and EditText

I have this code to load a spinner with data from a database: private class Getfrutas extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() { super.onPreExecute(); pDialog =...
asked by 02.11.2016 / 18:28