From d6b5f86f662b8d6a84687cbd7b60941b9942fed0 Mon Sep 17 00:00:00 2001 From: DjBushido Date: Mon, 24 Mar 2014 09:46:15 -0400 Subject: [PATCH] Fix cast from int to Integer --- HW4/src/com/example/hw4/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HW4/src/com/example/hw4/MainActivity.java b/HW4/src/com/example/hw4/MainActivity.java index 803f76b..66badc7 100644 --- a/HW4/src/com/example/hw4/MainActivity.java +++ b/HW4/src/com/example/hw4/MainActivity.java @@ -126,7 +126,7 @@ public class MainActivity extends Activity { int position, long id) { //Send intent with R.array.label - galleryIntent.putExtra("thumbsId", (int)(imageAdapter.getItem(position))); + galleryIntent.putExtra("thumbsId", (Integer)(imageAdapter.getItem(position))); startActivity(galleryIntent); } });