• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps is there workable simple example camera app(programs) that i can use

vizray

Lurker
I am learning android and trying to make a simple camera app, I used an example program from google and I get a number of errors, most of them probably missing resources. Why is it so difficult to get sample examples to work right? waste a lot of time I don't have. I imported and copied project to work space and I get

"Multiple markers at this line
-R cannot be resolved to a variable
-album_name cannot be resolved or is not a field"

import android.R;

<resources>
<string name="album_name">CameraSample</string>
</resources>


private String getAlbumName() {
return getString(R.string.album_name);

}

mImageView = (ImageView) findViewById(R.id.imageView1);
same for this and a number of other lines of code

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent" string type not allowed on this particular line
android:layout_height="match_parent"

I tried an example from Vogella got the program running but of course there was warnings about the class camera was deprecated, but I'm receiving runtime errors
 
Back
Top Bottom