Re: [android-developers] Re: How can I associate a file with a task?

2010-05-18 Thread Bob Lee
On Mon, May 17, 2010 at 11:32 PM, ko5tik kpriblo...@yahoo.com wrote: Wha do you mean bay abanddoned - the only callback for activity you can rely on is onPause() , which will be called when it leaves user focus. After this it may be killed sometime, or brought to front( onResume() will be

[android-developers] How can I associate a file with a task?

2010-05-17 Thread Bob Lee
My activity can be reused in multiple tasks concurrently. It stores a photo associated with the task in a file. If the task is abandoned, how can I know to delete the photo? Currently, I'm planning on keeping a fixed size queue of photos and deleting the eldest photo when the max size is reached.

[android-developers] How do I get progressive JPEG decoding to work?

2010-04-23 Thread Bob Lee
I tried sending partial inputs of various lengths to BitmapFactory, but it just returns null and logs D/skia( 6875): --- decoder-decode returned false. Thanks, Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Backporting an app to 1.5

2010-04-14 Thread Bob Lee
We initially built our app for 2.1. Now, we're trying to get it working on 1.5. I changed the target to 3 in default.properties, and I copied over the missing ant targets, but now I'm getting an error because drawable-hdpi is an invalid res directory name. It looks like this is switching me to

[android-developers] Is it possible to always use a custom Instrumentation?

2010-02-27 Thread Bob Lee
I was hoping to use a custom instrumentation to create my activities with Guice (instead of calling Class.newInstance()). Thanks, Bob -- 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] MediaStore.ACTION_IMAGE_CAPTURE + Intent.FLAG_GRANT_WRITE_URI_PERMISSION

2010-02-18 Thread Bob Lee
I was hoping to take a photo and enable only the camera app (or whatever other app is bound to ACTION_IMAGE_CAPTURE) to store a photo in my content provider. Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, MyPhotoStore.URI); //

[android-developers] Trusting SSL certificates

2010-02-05 Thread Bob Lee
I couldn't find any good docs on trusting self-signed certs, so I wrote some up: http://crazybob.org/2010/02/android-trusting-ssl-certificates.html Hope this is useful, Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this