Questions tagged as 'android'

2
answers

Problem when getting an Item from the List view, when the Adapter is filled by a Cursor

In my main activity mainActivity I show a listview of the data of my local database in SQlite consulted through a class DataBaseHelper , where the database was created and a class SQLcontrolle where is the curso...
asked by 27.02.2016 / 22:15
2
answers

Execution time permissions

I have the following code if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) { if (ActivityCompat.shouldShowRequestPermissionRationa...
asked by 07.11.2017 / 19:12
2
answers

How to use a spinner inside a RecyclerView

I currently have a RecyclerView in which I want to add a kind of Spinner . I want my Spinner to show me a series of data but, I just want to see them, I do not want to let me select any. How can I deactivate them all so that...
asked by 06.10.2016 / 13:49
1
answer

Problem when calling the Keyboard from an AlertDialog that is called from the fragment

Well, basically, I have the following problem. I have a ReciclerView that contains several EditText and will update it as the text changes and when it is required, it will return the list of items. This in turn is done from an AlertDialog, si...
asked by 11.11.2018 / 06:51
3
answers

Messy items Android Studio 2.3

Does anyone know why the objects go out of order? when you ran the application in the emulator, the objects are displayed as messy in the application and not as they are displayed in the development interface. :(  This happened after the android...
asked by 05.03.2017 / 20:46
1
answer

Problems reading an sqlite database

Hello, I have the following code that calls the database of my application. All I need is to count the amount of data. I AM ROOT USER public int contar() throws SQLException{ Cursor mcursor = null; mcursor = this.getReadableDataba...
asked by 11.05.2018 / 06:04
6
answers

Do not go back to a previous activity

The fact is that I want that when the application is executed for the first time, the first activity of PresentacionActivity is shown and that when the user press continue button go to the next activity, start the MainActivity. After this, that...
asked by 17.09.2018 / 19:09
3
answers

Error creating new Android project

I just created a new project Android with Android Studio I chose the minimum SDK that is 9 (Gingerbread) and the activity that be a NavigationDrawer Activity , once chosen and created the project I get the following error: Error:Ex...
asked by 16.08.2017 / 13:13
2
answers

Hide keyboard when launching activity with EditText and show it again

Using the line TuEditText.setInputType(InputType.TYPE_NULL); I managed to hide the EdiText keyboard. However, I have put TuEditText.setInputType(InputType.TYPE_CLASS_TEXT); in the OnClickListener of EditText but it still does no...
asked by 26.07.2017 / 11:36
3
answers

Cancel AsyncTask and the ProgressDialog when pressing back button on Android

I have a AsyncTask that launches a ProgressDialog in modal form, that can not be canceled. In the onPreExecute start the progressDialog progress = ProgressDialog.show(MainActivity.this, "titulo","progreso x", tru...
asked by 31.05.2017 / 22:04