I'm developing a photo manipulation app and am wondering if there is a way to have something come up for my app after the user takes an image of a picture (by somehow changing the camera app). Another example of something like what I want to do would be something like changing the calender app to also put in a location and use GPS to find directions to that location. Is there a way to do this? If so how?
3 Answers
If you want direction of a location, you need to use Google Maps API (or similar), not GPS. To put stuff into Google Calendar, look at their API as well.

- 25,268
- 11
- 79
- 127
-
So what's the question then? :P Anyway the answer remains the same: look for the API of the service you want to use. Not all apps can be accessed externally. And if it's unimportant, do not put it as an example. Use an example relevant to the question. – m0skit0 Apr 19 '12 at 00:55
I don't know if you can change the app itself, but you can definitely integrate your application with another android applications. There are several examples that can show you how to acess the camera app to take a picture and return this picture to your app for manipulation, or accessing a picture from your gallery (take a look in Intent class, and you can use it with startActivityonResult, and on onActivityResult, inside your activity, you manipulate the picture). Hope that helps

- 11
- 2
As I understand from your question, you want your app to appear when the user takes a photo using the native camera app. Although that's possible (not saying it's easy), a better solution would be to launch the camera intent from YOUR app (or display what the camera sees in a SurfaceView), and use it as you wish. You wouldn't want to change the default behavior of built-in apps in the system, and users will thank you for not doing so.
There are countless tutorials out there that teaches you how to make use of built-in apps' functionalities for your own. As an example, here's an SO thread that teaches how to use the built-in camera to take a picture, and use the resulting data in your app.
-
It seems that while I want to do is possible it is cumbersome so while I know how to use Intents I will accept this. – jersam515 Apr 19 '12 at 01:32
-
Thanks. And just to point you to the right path, the trick is to set up a ContentObserver and point it to the MediaStore. – josephus Apr 19 '12 at 01:40