These all codes i have downloaded from internet and i ave seen comments these are working fine .
i have compiled it my sdk and run on simulator it works on simulator but force close on device. i don know how to do ddms . I have attached code please check it once on your device and tell me whether it is working or not . thanks On Tue, Aug 9, 2011 at 7:43 PM, Mark Murphy <[email protected]> wrote: > On Tue, Aug 9, 2011 at 10:08 AM, Amit Mangal > <[email protected]> wrote: > > i am to open camera programaticaly and take picture but whatever code i > am > > trying it is crashing on my device . One of code i have attached whihc is > > working on simulator but crashing onmy device. > > Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine > LogCat and look at the stack trace associated with your crash. > > > please tell me is there any special settings required for opening camera > > programatically ? > > You need the CAMERA permission in the manifest. For production, you > may also want to add appropriate <uses-feature> elements, but they're > not going to cause a crash. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android 3.1 Programming Books: http://commonsware.com/books > > -- > 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 -- 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

