plusminus wrote:Hello Katharnavas,
saving takes place here:
Simply alter the Parameter of super.openFileOutput(...);. If you want to write to the SD-Card, there is no need for using "openFileOutput", because you can use standard java methods, like new FileOutputStream(...)...
Pere wrote:Hi again,
Please, can anyone give me some hint in getting my problem solved? I haven't touched a line of the source code provided, but still I am not able to run it.
I'm an absolute beginner with Android. I found this site and started practicing with the nice tutorials it provides. Then I found this one which has something to do with what I wanted to do with Android, so I think it would be a good start point to base my project on.
But I'm having problems getting it to work right from the beginning. I downloaded camera.zip, put into my Eclipse project folder and tried to run it. First of all I got a problem because the android.jar folder was configured in another path (probably for a Unix system). After fixing that, I get the following errors:
"the method setCallback(Preview) is undefined for the type SurfaceHolder" (file CameraPreview.java, line 136).
"the return type is incompatible with SurfaceHolder.Callback.surfaceCreated(SurfaceHolder)" (file CameraPreview.java, line 164).
About the 1st error, as Eclipse gives me the option to change the method to "addCallback", I supposed the method just could had changed its name in a newer version of the API or whatsoever; I am using last version of the API and maybe this tutorial could have been done using an older version.
For the 2nd one, I have no clue. I simply tried changing the return type to "void" to try to run it... and then, after I try to run the project from the "Run" dialog, I get a "Project is not an Android Project. Aborting!" error in Eclipse.
I would be very happy if someone could enlight me with some help to get this running...
Thanks a lot!
Users browsing this forum: No registered users and 7 guests