我的代码是
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try {
Log.d("response", "starting city connection");
HttpPost httppost = new HttpPost(
"http://10.0.2.2/wic3/wic2/mobile/verifyUser");
ResponseHandler<String> responseHandler = new BasicResponseHandler();
sessionResponse = SignUpActivity.httpclient.execute(httppost,
responseHandler);
Log.d("session response", "" + sessionResponse);
if (sessionResponse.equals("true")) {
Intent intent = new Intent(SignUpActivity.this,
FeedListViewActivity.class);
startActivity(intent);
}
} catch (Exception e) {
Log.e("error", "Error in http connection" + e.toString());
}
......
我的问题是我可以跳过第一个活动(或屏幕)并根据任何条件直接加载其他屏幕吗???如果会话已经存在,我的意图是加载主页(跳过登录页面)......在我的情况 sessionResponse 是真的,但我仍然得到登录页面