Questions tagged as 'android'

1
answer

Get the id of the textview that is inserted in the listview and put in the bd

I have a layout with 2 lists, one complements the other, category and subcategory I would like, when I would insert a subcategory when clicking add feed the database with the id of the category that is on the same line, that is, I will link...
asked by 22.01.2015 / 18:52
1
answer

Error compiling the project in Gradle

This is giving me the following error message when compiling my project and I am not able to solve I would like help if anyone has had this problem     
asked by 27.02.2015 / 17:34
1
answer

Dimension of a display - Android Canvas

I'm doing tests with an image on Android using the Canvas class. I am using a Samsung Galaxy S3 Mini and a Samsung Galaxy S2. Physically the devices are different (the S2 screen is larger), but the returns of the methods below are the same:...
asked by 20.01.2015 / 19:41
3
answers

Eclipse does not generate class R

Lately I am not able to develop anything anymore, because ADT Eclipse is problematic, I have already downloaded several, on different computers and the error persists. When creating any project smaller than 4.0, eclipse does not generate clas...
asked by 23.11.2014 / 03:52
1
answer

AsyncTask finish execution

I would like to know how I could pause, cancel this function once I close the Activity that is running. private class DownloadImageTask extends AsyncTask<String, Void, Bitmap> { ImageView bmImage; public DownloadImageTask(ImageV...
asked by 12.11.2014 / 19:11
1
answer

Shared Preferences does not store login using JSON

I am not able to save the login using JSON, it logs in but when I close the application and start again it did not save the login. private EditText editTextLogin; private EditText editTextSenha; private CheckBox checkBoxLembrarLogin; private B...
asked by 10.02.2015 / 19:17
1
answer

How to open SearchView in ActionBar programmatically?

Come on people, the question is this: I'm looking to open SearchView from a click on an item in Drawer (that side menu). So far I have seen several tutorials on, but I only find out how to open SearchView by clicking on the SerachView icon (the...
asked by 11.02.2015 / 14:05
1
answer

ADB Eclipse error

   [2014-11-20 13:52:43 - Arrived] The connection to adb is down, and a severe error occured.       [2014-11-20 13:52:43 - You are here] You must restart adb and Eclipse.       [2014-11-20 13:52:43 - Arrived] Please ensure that it is correctly...
asked by 20.11.2014 / 17:51
1
answer

Preventing Multi Touch from touching two items in the ListView at the same time

I'm developing a Sales / Budgets app, and I'm having a problem with a custom listview , where the user is able to click 2 lines at the same time, 2 times the events and causing exception in the database. I need to disable this multitouch , do...
asked by 20.11.2014 / 19:07
2
answers

How to call a sound when you click the android button [duplicate]

Hello, I would like to know how to call a more efficient sound? I'm using this method: Button button1; MediaPlyer mp; button1 = (Button)findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener() { @Override public voi...
asked by 29.01.2015 / 18:27