In Android, how can I access a view that is not defined in the manifest file?

view full story

http://stackoverflow.com – My android app uses a single Activity which creates a single SurfaceView which is not defined in the manifest, and all of my UI elements are custom. Now I'm trying to make an asynchronous HTTP call and I can't access any of my application's classes. Every example I've seen for an async http call looks something like this: class RequestTask extends AsyncTask<String, String, String>{ @Override protected String doInBackground(String... uri) { // Code to make http call return responseString; } @Override protected void onPostExecute(String result) { (HowTos)