As being a programmer from ActionScript, I am trying to use brackets
( [  ] ) to reference an Object.  In ActionScript the following is
syntactically correct:


//ActionScript
var currentIcon:Drawable = getResources().getDrawable(  R
["drawable"].icon  );

//attempt in Java
Drawable currentIcon       = getResources().getDrawable(  R
["drawable"].icon  );
--~--~---------~--~----~------------~-------~--~----~
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