Hi again.. still struggling with this...
My code seems fine.. can you see what's wrong with this scene?


public static boolean previewAndStoreInfo(Context mContext, byte[] imageData,int quality, String expName) { File sdImageMainDirectory = new File("/sdcard/download/" + expName);
                FileOutputStream fileOutputStream = null;
                try {
                        BitmapFactory.Options options=new 
BitmapFactory.Options();
                        options.inSampleSize = 5;                       
Bitmap myImage = BitmapFactory.decodeByteArray(imageData, 0, imageData.length,options); fileOutputStream = new FileOutputStream (sdImageMainDirectory.toString()); BufferedOutputStream bos = new BufferedOutputStream (fileOutputStream);
                        myImage.compress(CompressFormat.JPEG, quality, bos);
                        bos.flush();
                        bos.close();
                } catch (FileNotFoundException e) {
                        e.printStackTrace();
                } catch (IOException e) {
                        e.printStackTrace();
                }       
                return true;
        }




I can't see the picture in the gallery, it's seems like its not saving the picture in the sdcard/download folder..


On Aug 29, 2010, at 9:50 AM, Mark Murphy wrote:

On Fri, Aug 27, 2010 at 12:52 PM, Pedro Teixeira
<pedroteixeir...@gmail.com> wrote:
I'm wondering.. is a SurfaceView still tappable even if we have something overlaying it? Let's say a picture, or a piece of text? Does that work ?

set THING="picture, or a piece of text"

If you tap on the $THING, the touch event goes to the $THING. If the
$THING does not handle the touch event, it will go to the activity.
The touch event will not go to widgets behind the $THING.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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

Pedro Teixeira

www.pedroteixeira.org

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

Reply via email to