I have an Android project that uses a library project (all of which I built). I am using ADT/SDK v14 and I need to access the main class in the main project and call a function when a dialog in the library project is dismissed. Now, I can do that if I add a reference to my main project to the library project, but that isn't ideal. How do I get a reference to a class in my main project from a class in the library project?
This is how it's working:
- I have my main class in my project that is a tabhost
- The tabhost gets the fragments for the tabs from the library project
- One of the fragments for the tabs launches a DialogFragment
- When that DialogFragment is dismissed, I need to call a fillItems() function in the main class(this is where I'm stuck)
Anyone have any ideas?
Thanks, Ed