Android Community
Results 1 to 4 of 4

Thread: HelloGallery tutorial: android.R.styleable cannot be resolved

  1. #1
    Join Date
    Feb 2009
    Posts
    19

    Default HelloGallery tutorial: android.R.styleable cannot be resolved


    Hello,

    I've been following the Views tutorials included in the android developer site:
    http://developer.android.com/guide/t...o-gallery.html

    When testing the "Hello Gallery" view, I get the compile-time error:
    "android.R.styleable cannot be resolved"

    I searched for this error on this group but is wasn't answered.
    Can anyone help?

    The problem reference occurs in the imageAdapter class that is appended after the onCreate() method in the HelloGallery class:

    public class ImageAdapter extends BaseAdapter
    {
    ...
    TypedArray a = obtainStyledAttributes(android.R.styleable.Theme);
    }

    Strangely enough, when I insert this line into the onCreate() method at the start of the package, there is no problem. It seems that the android.R class is not known to this class.

    Thanks,

  2. #2
    Join Date
    Nov 2008
    Location
    seattle wa
    Posts
    412

    Default Re: HelloGallery tutorial: android.R.styleable cannot be resolved

    go over to xda and ask the questions you have

    1 htc g1 (rooted) soaked, resurrected and died finally 11 mos later
    1 moto cliq died unexpectedly.
    1 samsung behold II huge disappointment sold
    1 samsung vibrant (rooted) 2.2
    1 mytouch slide...hers untouched.. lol
    all > iphone

  3. #3
    Join Date
    Feb 2009
    Posts
    19

    Default Re: HelloGallery tutorial: android.R.styleable cannot be resolved

    Question: what is "xda"? An android-specific forum?

    Thanks,
    Paul

  4. #4
    Join Date
    Sep 2008
    Location
    Frederick, MD
    Posts
    82

    Default Re: HelloGallery tutorial: android.R.styleable cannot be resolved



Similar Threads

  1. Tutorial: Syncing Music & Playlists
    By GreenLeaf in forum General HTC Chat
    Replies: 23
    Last Post: 08-12-2010, 12:50 AM
  2. How-to forward Hotmail -> The Tutorial
    By 71CH in forum All About Andorid Software
    Replies: 30
    Last Post: 03-08-2010, 10:17 AM
  3. **video tutorial from stock rc-30 to a rooted jf rc-30 v1.31**
    By hyperdroid in forum General Phone Chat
    Replies: 41
    Last Post: 04-20-2009, 10:24 PM
  4. tutorial for rooting the g1
    By feysalj in forum General HTC Chat
    Replies: 4
    Last Post: 01-30-2009, 09:07 AM
  5. Any good G1 getting started tutorial online?
    By mstachiw in forum General HTC Chat
    Replies: 2
    Last Post: 11-07-2008, 02:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •