I have an Android project that uses a library project (everything I created). I use ADT / SDK v14, and I need to access the main class in the main project and call the function when the dialog in the library project is rejected. Now I can do this by adding a link to my main project in the library project, but this is not ideal. How to get a class reference in my main project from a class in a library project?
Here's how it works:
- I have my main class in my project which is tabhost
- Tabhost gets tabbed snippets from library project
- One of the tab snippets launches the DialogFragment dialog box
- When this DialogFragment is rejected, I need to call the fillItems () function in the main class (this is where I got stuck)
Does anyone have any ideas?
Thanks Ed
source
share