getIntent()得到的startActivity(intent)中传递过来的Intent的,就像你说说的那样,是Activity实现的,你继承了Activity,所以自然就能用了。getDefaultAdapter()这个不是Activity的