Just add to the existing class, and use the context to retrieve the assets. In your activity call the method like this: public class MyActivity extends Activity { public void OnCreate(Bundle savedInstanceState) { super. OnCreate(savedInstanceState); NonActivity n = new NonActivity(); n.
DoStuff(this); } }.
This looks like what I was asking for. I will try this tonight. Thanks!
– corbin Nov 8 '10 at 18:07 This was it. Thought it would be easy. – corbin Nov 11 '10 at 18:18 Glad I could help :) – danh32 Nov 11 '10 at 19:24.
I need to be able to be able to call readAsset from outside of the main activity of my application. I have heard people mention needing to pass the Context around, but the language has been very vague. Can someone describe the steps necessary to add the ability to call readAsset to an existing class that is not the main activity?
Creating a public function in the main activity and having others call that will not work as the place I need to add readAsset to, is in a separate thread.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.