Questions tagged as 'android'

1
answer

convert bitmap to array of bytes [closed]

I try to convert a bitmap file in android, to an array of bytes and then pass it to a web service asmx, and since it is saved in a sql database, but I get compatibility error, would anyone know how I can do it?     
asked by 12.04.2018 / 18:58
2
answers

Problem updating Listview when adding item

I have a problem updating the listview , I add the new contact all right (it is saved in the SQLite database) but it does not update the new record in listview . The code I have is: public class ContactosDetalle extends Activity...
asked by 14.04.2018 / 00:23
1
answer

How to save pdf

How can I save a .PDF file in / my_folder with the current date as file name? val date = Date() val timeStamp = SimpleDateFormat("dd-MM-yyyy HH:mm:ss", Locale.getDefault()).format(date) val dir = "${Environment.getExternalStorageD...
asked by 31.03.2018 / 18:48
1
answer

Put the item that I want from a list in the Android spinner

What I am trying to do is for a user to select an element through a spinner, I save that element through the position and what I want is that when the user returns to edit the spinner he will be shown the one he marked first. I leave here par...
asked by 31.03.2018 / 16:29
1
answer

Disable Crash Reporting

Google tells me that my app ( link ) is infringing Privacy policies for collecting sensitive data through crash reporting. The truth is that it is not because that app was created long ago by a programmer who does not even remember where it c...
asked by 27.03.2018 / 12:12
2
answers

Get data from SharedPreferences

I have 2 stored strings with sharedpreferences in a login class, inside the onClick of a Button. SharedPreferences.Editor editor = getPreferences(MODE_PRIVATE).edit(); editor.putString("rut",loginText.toString()); edito...
asked by 16.04.2018 / 16:06
2
answers

How can I have my application ask for all permissions in MainActivity?

Do I want to ask for all the permits only once to make it easier for me to work? These are my permissions <uses-permission android:name="android.permission.CALL_PHONE" /> <uses-permission android:name="android.permission.INTERNET"...
asked by 09.04.2018 / 15:12
1
answer

Receive data from 4 activities in a single activity

I have 4 activities in which I enter data and I want to receive the same data in a single activity . First data logging activity: Intent Register = new Intent(this,Window_Configuracion.class); etConstanteK = (EditText)findVie...
asked by 18.04.2018 / 17:43
1
answer

Error photos with poor Android quality

I am trying to take a photo from my phone and display it in an ImageView. I follow the steps of the web of Android Studio in which it indicates how to take a photo and show it but when showing it in the ImageView it comes out with very little qu...
asked by 26.03.2018 / 17:42
1
answer

Which component to use for this drop-down list?

I need to make the following component for my application and I have the doubt to use if a listview or an ExpandableListView.     
asked by 16.03.2018 / 11:34