Hello fellow Android developers,

Is it possible to show a Dialog or ProgressBar during the pre and post
execute phases of an Intent?

I am launching an Intent from my Activity to show the Image Gallery.
Subsequently the user will be able crop the selected Image.

The problem: Launching the gallery takes some time, and the resulting
crop also is very slow. At the very least I would like to show a busy
indicator during the beginning and ending phases of the Intent.

Here is how I am launching my Intent:

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
                        intent.setType("image/*");
                        intent.putExtra("crop", "true");
                        intent.putExtra("outputX", 320); // crop down to 320 x 
320 pixels
                        intent.putExtra("outputY", 320);
                        intent.putExtra("aspectX", 1); // 1:1 aspect ratio
                        intent.putExtra("aspectY", 1);
                        intent.putExtra("scale", true); //
                        intent.putExtra("noFaceDetection", true);
                        intent.putExtra("return-data", true); // return data as 
Bitmap
(only do for small images)
                        startActivityForResult(intent, REQUEST_CHOICE_IMAGE);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to