This is a beginner question, isn't it?  I'm an assembly / C / C++ guy,
so I'm still getting my feet wet with this stuff.

On Nov 24, 5:40 pm, trueskew <[EMAIL PROTECTED]> wrote:
> I want to introduce some custom integer attributes in an app I'm
> working on.  There were a couple of threads on custom string
> attributes, so I mimic'd that.  Also, I found that the Snake sample
> has one, tileSize, and followed what it did.
>
> I couldn't get the values I had stored, it kept returning me the
> default value from my x.getInt() call.  I couldn't find my screw-up,
> so I went back to the Snake sample and changed the value of tileSize
> in snake_layout.xml from 12 to 18.  It had no effect on the execution
> (landscape mode for what it's worth).  The only change that made it
> work as expected was changing the default value of a.getInt() from 12
> to 18 in TileView (TileView.java).
>
> I could post the code, but it's the Snake sample in the v1.0 SDK.
> Would someone clue me in on the correct way to store and access custom
> int attributes?  In lieu of that, does someone have working snake
> code?  Am I seeing a bug in Snake that was hidden because the default
> value and the XML value were both the same?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to