this is my /res/value/string file
<string-array name="optionkey">
<item>Ljudski igrač</item>
<item>Kompjuterski igrač</item>
<item>Neaktivan igrač</item>
</string-array>
<string-array name="optionvalues">
<item>HUMAN</item>
<item>AI</item>
<item>NONE</item>
</string-array>
this is my main.xml file
<ListPreference
android:entries="@array/optionkey"
android:entryValues="@array/optionvalues" />
start.java
import android.app.Activity;
import android.os.Bundle;
public class start extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
when I try to run this I get an error "... stopped unexpectedly.
Please ..."
Any help .... please ...:)
Thank you.
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
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