首先,类名要大写 不要写成location最好后面加上Activity或者Act变成LocationActivity
其次,在你的location类里面要先setContentView之后在findViewById,
还有setText(getString(R.strings/recvstat))要这样写或者在getString前加上getResources
最好不要让主线程sleep,
@string/
不是这么用的吧。
setText里边最好直接给字符串。或者用R.资源。
查看logcat里面,抛出的是什么exception