09-26-2010 03:29 PM
Sorry, noob programmer's here.. I wonder how to build a function, when we click a button, it will switch on the camera, and after you snap a photo, it will display it directly in FIeldManager like VerticalFieldManager? Can you guys show me the code example?
I'm building an Java application which has the snap-and-use function in Foursquare, or other society networking application like Freindster, Facebook etc..
09-27-2010 03:43 AM
To invoke the native BB Camera you can use the below line:
Once you have clicked on the image a new image file gets created in the device's memory. You can display this in the fieldmanager....
btw to know when a new file is getting added to your device (.i.e. to get hold of the image file created after you have clicked the image) you can create a class that implements the FileSystemJournalListener interface. Here you can override the fileJournalChanged method to get the file and then simply display the same.
This link should give you a better idea of what i am saying:
hope that helps!