my code is
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());
}
………….
my question is can i skip the 1st activity(or screen) and directly load some other screen depending on any condition???my intention was to load the home page (skip the login page) if a session already exists….in my case the sessionResponse is true but i still get the login page
Instead of the following code
Simply put
setContentView().setContentView()is the method that displays the screen in android to the User Interface. If you dont call this method then nothing will be displayed. You will see only a blank screen. Modify your above code as follows