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 <munish.sha...@lntinfotech.com> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---