I'm building a home screen replacement app and was wondering how to launch the camera app in normal mode. The 'Home' sample does not have a camera app listed since its not installed as a separate app on the device (which explains why my galaxy nexus camera issues haven't been resolved). In otherwords, I want to launch the camera app in the same way I can do so from my stock home screen launcher...
you would probably want to open an intent from a Component name with the Main intent instead of the usual method of calling the camera for an answer.
You can open any activity on Android as if you are clicking on it in the home screen you just need the compentent name, you can get the component name by opening it normally as a user then reading it off your logcat when the activity opens... I have done the Camera intent for you.
Intent intent = new Intent("android.intent.action.MAIN");
intent.setComponent(ComponentName.unflattenFromString("com.google.android.camera/com.android.camera.Camera"));
intent.addCategory("android.intent.category.LAUNCHER");
startActivity(intent);
04-04 06:42:19.840: E/AndroidRuntime(921): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.camera/com.android.camera.Camera}; have you declared this activity in your AndroidManifest.xml - Ben 2012-04-03 21:43