[android-developers] Menus handled differently in 4.2 on phone and tablet?

2013-01-21 Thread Matthew Fleming
to me. Any clarifications as to why I should be seeing this behavior and suggestions for a work-around would be much appreciated. TIA, Matthew Fleming DermVision -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Menus handled differently in 4.2 on phone and tablet?

2013-01-21 Thread Matthew Fleming
Sorry, yes, I meant options menu. Matthew Fleming On Monday, January 21, 2013 7:08:13 AM UTC-6, Mark Murphy (a Commons Guy) wrote: On Mon, Jan 21, 2013 at 7:44 AM, Matthew Fleming mgf...@gmail.comjavascript: wrote: I'm trying to adapt a phone app for tablets and have run into a problem

Re: [android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-16 Thread Matthew Fleming
Thanks very much. I had pretty much reached the same conclusion -- that I should just try switching to encryption/decryption rather than wrap/unwrap, and this works. I have included a complete example, below, which works on Android 4.2, 4.1, and presumably earlier versions. Actually I

Re: [android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-16 Thread Matthew Fleming
Thanks very much. Using your code and a few other bits and pieces, I've come up with this, which generates a SecretKey for AES and then wraps it using PBE: KeyGenerator generator = KeyGenerator.getInstance(AES); generator.init(128); Key keyToBeWrapped = generator.generateKey();

Re: [android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-16 Thread Matthew Fleming
Got it. The problem was that I had replaced byte[] keyBytes = keyFactory.generateSecret(keySpec).getEncoded(); SecretKey key = new SecretKeySpec(keyBytes, AES); with SecretKey key = keyFactory.generateSecret(keySpec); This is not a problem for the generic version of the Bouncy Castle

Re: [android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-14 Thread Matthew Fleming
You can also try deriving the wrap key separately with something like: KeySpec keySpec = new PBEKeySpec(password.toCharArray(), salt, ITERATION_COUNT, KEY_LENGTH); SecretKeyFactory keyFactory = SecretKeyFactory .getInstance(PBKDF2WithHmacSHA1);

Re: [android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-13 Thread Matthew Fleming
On Wednesday, December 12, 2012 11:21:10 PM UTC-6, Nikolay Elenkov wrote: On Thu, Dec 13, 2012 at 11:55 AM, Matthew Fleming mgf...@gmail.comjavascript: wrote: I use the following code to encrypt a SecretKey with password-based encryption: Cipher pbeEncryptCipher

[android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-12 Thread Matthew Fleming
the cryptographic service provider in Android 4.2, which was not missing in previous versions, ie an Android bug. Please advise if my understanding is incorrect, otherwise maybe Google could fix this? There doesn't seem to be a work-around. TIA, Matthew Fleming, MD DermVision, LLC -- You received

[android-developers] DatePicker update via EditText rather than Spinner

2012-11-07 Thread Matthew Fleming
of the spinner's arrows is clicked. Is there any way around this? I suppose I could attach a listener to the EditText, but this would use DatePicker's undocumented internals, and might break down the road. Thanks very much, Matthew Fleming -- You received this message because you are subscribed

[android-developers] Interface for local service?

2011-09-28 Thread Matthew Fleming
to proceed? TIA, Matthew Fleming Dermvision -- 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

[android-developers] Re: Interface for local service?

2011-09-28 Thread Matthew Fleming
the service's methods from that reference, which avoids IPC completely. Swell. Thank you so much for explaining it. Matthew Fleming On Sep 28, 7:21 am, Mark Murphy mmur...@commonsware.com wrote: Just subclass android.os.Binder and use an instance of it in your onBind() method. You do not need AIDL

[android-developers] MediaRecorder.start() fails

2011-09-13 Thread Matthew Fleming
on an Android device. The application has RECORD_AUDIO permissions. Any ideas would be greatly appreciated -- this is really getting annoying. Thank very much, Matthew Fleming DermVision -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: MediaRecorder.start() fails

2011-09-13 Thread Matthew Fleming
Thanks, I will. I would have already, but don't have a device with me at the moment. Also, when I last played with audio recording -- which admittedly was some time ago -- I recall it did work on an AVD. Matthew Fleming On Sep 13, 10:58 am, Michael Banzon mich...@banzon.dk wrote: I would try

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-18 Thread Matthew Fleming
explanations and for your willingness to consider this EXCEPTIONALLY USEFUL, HELPFUL, BENEFICIAL, WELCOME, and APPRECIATED modification to the platform. Matthew Fleming On Jan 17, 3:30 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Thank you Romain! About the 'inBitmap' option: I (and, i

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-18 Thread Matthew Fleming
And then there was the time I ported a jpeg decoder to Palm OS, with its lovely segmented memory architecture. Those, those were the days. Matthew On Jan 17, 5:25 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Of course, that will only work on 3.0 or higher. Can't you do you own bitmap loading?  

[android-developers] Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Matthew Fleming
, I don't get any information, because Log.d() doesn't seem to work at all with the actual hardware. Why is that? Some real assistance with these problems would be much appreciated. Google? Anyone home? Matthew Fleming, MD Fleming Dermatopathology, LLC DermVision, LLC -- You received this message

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Matthew Fleming
justification, and, judging from a few postings here and there, has caused problems for other developers as well. Any thoughts on why I can't use Log.d with actual hardware? Matthew Fleming On Jan 17, 12:44 pm, Romain Guy romain...@android.com wrote: Hi Matthew, I am sorry that you didn't get a better

[android-developers] create mutable Bitmap directly from file/stream?

2011-01-09 Thread Matthew Fleming
at once. Its not obvious why I shouldn't be able to load the bitmap as mutable directly with BitmapFactory.decodeStream, yet I can't seem to do it. Is there any way around this? TIA, Matthew Fleming -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Problem with password based encryption of image files

2010-12-24 Thread Matthew Fleming
, but since those functions are opaque and there are no exceptions, its hard to know what it is. I suspect it has to do with padding or flushing. Any assistance would be gratefully appreciated. Matthew Fleming, MD DermVision, LLC -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Problem with password based encryption of image files

2010-12-24 Thread Matthew Fleming
is happening ... Matthew Fleming On Dec 24, 7:36 am, Matthew Fleming mgf...@gmail.com wrote: Hi, I'm trying to encrypt image files on Android with password based encryption. To save the encrypted image I just do this: FileOutputStream fos = new FileOutputStream(thumbnailFile); CipherOutputStream

[android-developers] usb camera interface

2010-11-17 Thread Matthew Fleming
Hi, I'm just wondering what would be involved in connecting to an external camera via usb from a device such as the Archos 43 which is capable of functioning as a usb host? Evidently it is possible, because the Archos 43 manual says it can download pictures from an external camera using an

[android-developers] Downloading pictures from camera to Android device

2010-11-17 Thread Matthew Fleming
for connecting to a camera. But I'd like to know how to add this capability to my own app. Thanks, Matthew Fleming DermVision, LLC -- 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