[android-developers] Running activity from my local service

2010-09-19 Thread Shahar Rubin
Hi all, I'm trying to run an activity that raise a camera surface, takes a picture and then gone until the next interval. On the first cycle it works well, but on the second cycle it raise an exception. Here is my code (PicTakerActivity is raised on every cycle): http://pastebin.com/MzPZNjwY Her

Re: [android-developers] Running activity from my local service

2010-09-14 Thread Mark Murphy
On Mon, Sep 13, 2010 at 2:08 PM, Shahar Rubin wrote: > 1. After I'm taking the picture, the preview still there. There's no > function like close() to return to the previous activity. How can I > return to the previous activity? Call finish(). > 2. I'm trying to run the above described activity

[android-developers] Running activity from my local service

2010-09-14 Thread Shahar Rubin
Hi, I'm trying to create a program with a service that runs every 10 seconds, puts the camera preview, taking a picture and then leaving the user to continue his work (closing down). Currently I have two problems: 1. After I'm taking the picture, the preview still there. There's no function like