Using java Syntax Highlighting
- private static final String[] CONTENT_PROJECTION = new String[] {
- PhotoContent.Photos._ID, PhotoContent.Photos.CREATED_DATE };
- // get current image IDs
- Cursor current_images = managedQuery(getIntent().getData(), CONTENT_PROJECTION, null, null);
- // store current image ids in another array
- String[] cur_image_id = new String[current_images.count()];
- int stored_image_id = current_images.getColumnIndex(PhotoContent.Photos._ID);
- for (int i = 0; i < current_images.count(); i++, current_images.next()) {
- cur_image_id[i] = current_images.getString(stored_image_id);
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
I am getting a RuntimeException invoked by the Looper.class...and have done some debugging to localize the problem to the snippet of code posted above.
What am I doing wrong?






