Have you tried using StartActivityForResult then calling the myfunction () in an override of onActivityResult?
Chris. On Oct 15, 1:58 am, wahib <[email protected]> wrote: > Hi!! I am stuck with this issue. When i press a button in my custom > app the built-in camera app executes but after taking snap i want to > run my code on the image taken but the camera preview doesnt > vanishes:S I just want to exit the preview and run my code. Being a > newbie i am really confused how to do it. > > This is the code in onclick() function for button --------- > > Intent intent = new Intent(); > intent.setClassName > ("com.android.camera", "com.android.camera.Camera"); > > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > startActivity(intent); > > myfunction() ; ///what i want to call --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

