Hello, I want to take the captured image returned by the camera when I take a photo. So I have call the camera application as Ondra did it. The problem is : I don't know what I have to put in the onActivityResult method to take the captured image. Moreover I want to take the path from the sdcard where the picture is stored.
Anyone can explain how did it please (Sorry for my bad english)? On 20 mar, 12:41, Prasanna <[email protected]> wrote: > when is the next release going to be? I was thinking of flashing my > dev phone to put the cupcake tree contents but seems like the Camera > application still returns small image size. > > On Mar 4, 1:42 am, Dave Sparks <[email protected]> wrote: > > > > > The image capture intents for the 1.0 and 1.1 releases only allow for > > small images intended for email or MMS attach. The next SDK release > > for Cupcake will add support for setting the image size. > > > On Mar 2, 9:00 pm, Ondra Zahradnik <[email protected]> wrote: > > > > Hello I am trying to take picture by G1camera. > > > > I have tried almost everything i was able to find on the net about > > > this topic. It seams there should beintentwith action > > > "android.media.action.IMAGE_CAPTURE" which really startscamera > > > application and returns captured image. But captured image is scaled > > > to 0.25 of original size. > > > Another possibility I have found is to pass uri where to save captured > > > image. I went through all available sources ofcameraapplication and > > > it should work but does not. > > > > For illustration, I am doing following in my example activity which > > > creates new image, but after returning fromcamera, image is still > > > empty: > > > /** Called when the activity is first created. */ > > > @Override > > > public void onCreate(Bundle savedInstanceState) { > > > super.onCreate(savedInstanceState); > > > setContentView(R.layout.main); > > > > ContentValues values = new ContentValues(); > > > values.put(Media.TITLE, "Image"); > > > values.put(Media.DESCRIPTION, "Image capture bycamera"); > > > Uri uri = > > > getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values); > > > > Intenti = newIntent("android.media.action.IMAGE_CAPTURE"); > > > i.putExtra("output", uri); > > > startActivityForResult(i, 1); > > > } > > > > I am ready to write my own capturing application, but it is quite hard > > > and I would like to reuse. > > > > Please, do you know correctintentaction name and extra name to pass > > > to capture image? > > > > Thank you very much.- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

