Re: [android-developers] Retrieve Contact Photo type

2010-08-30 Thread Pedro Elvas
Hi Carlo,

Take a look in the source code of JPEGImageReaderSpi
http://www.docjar.org/html/api/com/sun/imageio/plugins/jpeg/JPEGImageReaderSpi.java.html
and PNGImageReaderSpi
http://www.docjar.org/html/api/com/sun/imageio/plugins/png/PNGImageReaderSpi.java.html
(j2se).

These classes have a method called canDecodeInput that checks if an
inputstream is a png or jpeg (respectively).

[]s

On Mon, Aug 30, 2010 at 11:58 AM, sazilla sazi...@gmail.com wrote:

 Hi guys,

 is there any way to retrieve the data type of a contact's photo? (e.g.
 image/png or image/jpeg)
 Using the Contacts Provider I can read the photo byte array only. In
 this case can we get the image type from the image stream?

 Thanks in advance

 Carlo

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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

Re: [android-developers] How to secure passwords

2010-05-07 Thread Pedro Elvas
Hi MSChoi

It seems its now part of openIntents project.

http://www.openintents.org/en/node/205
http://code.google.com/p/android-passwordsafe/

[]s

On Fri, May 7, 2010 at 9:59 AM, MSChoi moon_...@hotmail.com wrote:

 What is the secure way to store passwords on android device?

 I found same topic in Android Developers Group.
 Steve918 kindly shared a sample code for it but I can not download it
 anymore.
 http://steven.bitsetters.com/articles/2007/11/20/android-password-safe/

 Does anybody know how to encrypt/decrypt password using Android
 supporting secure algorithm?

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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