Facebook Camera Activity - Custom or Not?

by AndroidDevFTW » Mon, 18 Jan 2010 04:25:40 GMT


Sponsored Links
 Hi all--

I'm looking to implement functionality similar to the Facebook Apps'
"Take Photo" feature -- does anyone know if the Camera activity that
pops up after clicking the "Take Photo" icon is a custom Activity or a
re-use of our phone's OOTB Camera app?  The interface looks quite
similar to the OOTB app, but I'm not sure how to reconfigure
applications responding to implicit intents so that the available
buttons are different.  For example, the OOTB Camera App displays last
taken picture, slider to choose between video/camera -- the Facebook
app Camera app displays Cancel and Retake buttons...

Thanks for any tips!
ADev



Other Threads

1. Installing fresh SDK + fresh JDK

Hey all

Downloaded the android SDK on windows as well as fresh install of JDK.

Java is installed fine, I can go to command prompt and enter "java"
and it loads fine.

When I try load the android installer it fails with this error:

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml,
reason: sun.security.validator.ValidatorException: PKIX path
validation failed: java.security.cert.CertPathValidatorException:
timestamp check failed

Googling didn't yield anything so have any of you got any ideas?

thanks!

-- 

2. Bitmap to Bytes then bytes to Bitmap

Hi all,

       Am trying to store all images in my server, then i need to show
based on requirements, i am able to store and restore bitmap bytes but
i cant recreate the bitmap using stored bytes , pls find my code below
and suggest me a solution if i doing wrong


Converting Bitmap to Bytes

                                        Drawable
d=(Drawable)Packageinfo.myApplicationInfo.loadIcon(getPackageManager());
                                        Bitmap bitmap = ((BitmapDrawable) 
d).getBitmap();
                                        int siz = bitmap.getHeight() * 
bitmap.getWidth();
                                        java.nio.ByteBuffer buffer = 
java.nio.ByteBuffer.allocate(siz);
                                        bitmap.copyPixelsToBuffer(buffer);
                                        byte[] arr = buffer.array();
                                        String bytedata = arr.toString();

Recreating bitmap from Bytes

                                ImageView icon = (ImageView) 
v.findViewById(R.id.sampleimg);
                                Bitmap b = 
BitmapFactory.decodeByteArray(bytedata .getBytes(), 0,
bytedata .getBytes.length);
                                icon.setImageBitmap(b);


Regards
jp

-- 

3. YOY

4. xml causing java output errors

5. Error during compiling android source code using make command

6. Get all active Application name in Android

7. to use google Latitude api in android application