On Dec 11, 9:53 pm, WoodManEXP <[email protected]> wrote: > How do you manage resources between the various subsystems they are > in?
Quite simply: 1) Each project is compilable and installable on its own. But not necessary runnable ;) 2) If both project A and B have the resource files with the same name (e.g. strings.xml) I make their names unique (e.g. strings-A.xml and strings-B.xml). This is a deviation from Android "naming convention" but the compiler is happy. And me too :) 3) The same applies to resource ID's. So, if I have two strings with name "app_name" I make rename them as "app_name_a" and "app_name_b". Again both me and compiler are happy. 4) The "build" project has its own manifest and some folders. Those folders have a lots of symbolic links to appropriate resources in A and B. This approach works works fine for me. I have no code and no resource duplication. In case you are interested in more details just let me know :) > On Dec 11, 2:39 pm, Andriy Tsykholyas <[email protected]> > wrote: > > > I've ended up with a 'build' project which is merely a set of symbolic > > links to 'real' projects. This approach works perfectly for me :) > > > On Dec 10, 9:30 pm, "Mark Murphy" <[email protected]> wrote: > > > > > Well, in this case you have to go java way: > > > > getClassLoader().getResourceAsStream("name it what you like") > > > > will pick up whateher you like from jar files on classpath ( though > > > > not as > > > > convenient as android APIs ) > > > > Moreover, that'll just give you a stream. It won't work for anything that > > > needs a resource ID, won't support resource sets (e.g., i18n, landscape > > > vs. portrait), and so on. Unfortunately, Java's "resources" and Android's > > > "resources" share a name, a very high level concept, and nothing else. > > > > -- > > > Mark Murphy (a Commons Guy)http://commonsware.com > > > Android App Developer Books:http://commonsware.com/books.html -- 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

