> So now i want to create two applications with intent > to put them on the market. To do that i'll have to have different > packages in manifest, which will lead to the fact that R.java will be > generated in two different places. Which will make my references to R > from my android code not resolving.
Make your reusable code take resource IDs as parameters to their APIs. Look at Android itself: it is reusable, yet it does not have the problems you describe. Why? Because resource IDs are passed in as parameters (e.g., setImageResource() does not assume the resource; it takes the resource ID as a parameter). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

