You can use Android's global Application object if it helps. Here's an example:
public class MyApp extends Application{
private String foo = null;
public String getFoo(){
return foo;
}
}
public class MyActivity extends Activity {
private MyApp app;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
app = ((MyApp)getApplication());
String thing = app.getFoo();
}
}
If you need the method to be accessible from anywhere you can replace the getFoo method with your Intent :) I think it should work. Application reference is here