Hi, I am getting compilation error in the following statement TypedArray a = obtainStyledAttributes(android.R.styleable.g);
using the HelloGallery example What am I doing wrong. Thanks My main.xml file contains <?xml version="1.0" encoding="utf-8"?> <Gallery xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/gallery" android:layout_width="fill_parent" android:layout_height="wrap_content" /> strings.xml contains <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello World, HelloAndroid</string> <string name="app_name">Hello, Android</string> <declare-styleable name="g"> </declare-styleable> </resources> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

