Questions tagged as 'android'

1
answer

Use startActivity within a View in Kotlin Android

To open a activity from another activity use startActivity(Intent(this, SegundaActivity::class.java) But it's not like referring to the this when I want to launch it when I press a button ... in java I indicate it with Main...
asked by 14.05.2018 / 12:08
4
answers

how do I get the correct value to an HttpResponse response = mHttpClient.execute (httppost);

I have a post method. That consumes a Webservice that returns a boolean (ws) (everything is correct up here), as you know, it returns a true or false (which makes it correct) How can I recover this result? This is the code HttpResponse r...
asked by 02.10.2017 / 19:41
1
answer

JsonObject Android

I am making a listview through a json that I bring from a server. The detail is that I can not pass my data to listview in this function I try to save them from there to move them to listview public ArrayList<String>...
asked by 11.08.2017 / 08:54
2
answers

Failed to run AsyncTask on DatePickerDialog

This is my code which I originally used, in this code I try to execute an asynchronous method in a DatePickerDialog @SuppressLint("ValidFragment") public static class DatePickerFragment extends DialogFragment //Se modifica a metodo estatico...
asked by 19.07.2017 / 17:04
2
answers

Permit Application

I am currently asking for permission separately: if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { if (ActivityCompat.shou...
asked by 10.11.2017 / 14:05
1
answer

how can I retrieve values from an EditTextPreference?

I'm working with Preferences in android and I have a problem, I have a fragment that is a PreferenceFragment, in that fragment I have several options one of them when I click it opens a dialogue box with a field to place text inside as shown i...
asked by 22.01.2018 / 17:38
2
answers

Why can not I run the Android emulator?

Greetings. I can not run the Android emulator in Android Studio. I have already installed HAXM and API 14 for IceCreamSandwich 4.0. The error that appears is that of the following image.     
asked by 20.06.2016 / 19:19
1
answer

Error posting App on Google Play

When I try to upload my app on Google Play, it marks me this:    Upload Error You have uploaded an APK that can be debugged. Because of   security, you must disable debugging in order to publish the   file on Google Play. More information abo...
asked by 01.07.2016 / 13:42
2
answers

Listview a Textview on android

Developing a mobile app in android-studio I have a ListView and I want to get the event in which when I select an Item from the list I show a certain String in a TextView . For example: Selection in Item A presents...
asked by 26.06.2016 / 16:54
1
answer

How to include a txt file, already created, in your Android project

I have been reviewing how to work with files on Android and I have done some practices on how to create a file, write about it, read, etc. But, what if the file I have already created ?, Imagine that I want to insert in my application a file...
asked by 02.05.2018 / 18:44