Hey thanx I did the same way but i was including R.java importing"android.R" rather than importing R.java from "Pack1"
On Feb 16, 11:38 am, Greg Krimer <[email protected]> wrote: > The R class is created in the package that is associated with your > application, Pack1 I am assuming. To access it from another package > you do the same thing that you would do with any other public class > that you wish to access outside of the package in which it resides: > either fully-qualify it when referring to it (Pack2.R.layout.xxx) or > import it (import Pack2.R). > > On Feb 15, 10:11 pm, Munish <[email protected]> wrote: > > > > > Hi All > > > I have two packages(Pack1 and Pack2) in same project(Proj) > > When i created the project (Proj) that time Pack1 was created and > > R.java was there bydefault. > > > Now i created Pack2 in same project(Proj) and want to acess some XML > > files there, but cant access as when i write "R.layout.xxx" that time > > i don't find any list of xml files there. > > > Is there any solution to access the XML files across packages- Hide quoted > > text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

