如果我打电话
Intent intent = new Intent(ReadingActivity.this, AdService.class);
startService(intent);
从类的onCreate
方法中MyActivity
,如何MyActivity.this
从类的onHandleIntent()
方法中访问IntentService
@Override
protected void onHandleIntent(Intent arg0) {
// TODO Auto-generated method stub
((BookLib) getApplication()).createAd(I need to pass the calling activities context here);
}