[android-developers] Re: How to access content of a package in the other packages?

2008-07-21 Thread sacoskun
Hello Nan. YE, For the classes that you are going to add in a .jar file and use them as .jar imports, you can use your own static R class as an inner class in your view. For instance; public static class R { public static class style{ public static

[android-developers] Re: How to access content of a package in the other packages?

2008-07-11 Thread Nan.YE
Really thanks for your reply. I can export the packages(both codes and res/ directory) as a .jar file and then import them into those projects which require them. This can help me to only create customized views with java codes, just like "CustomViewA view = new CustomViewA(this)". But using custo

[android-developers] Re: How to access content of a package in the other packages?

2008-07-10 Thread hackbod
We aren't supporting shared libraries for 1.0, sorry. We do have support for loading a .apk into the process of another, as long as those two .apks are signed with the same certificate. You use the Context.createPackageContext() to do this: http://code.google.com/android/reference/android/conte