0

The activity launched is a webview activity.when i login first time then shows the login page but when logged on second time then the web view cache the pervious login and shows me the homepage instead it should be showing a login page again.i don't have a logout button in my web view.

switch (v.getId()) {
    case R.id.myaccount:
        // intent = new Intent(getApplicationContext(), UIBMainView.class);
        intent = new Intent(getApplicationContext(), MyAccount.class);
        //intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
        break;
Alok Gupta
  • 1,806
  • 22
  • 21

1 Answers1

0

This may be a little over the top for what you want to do, but should solve your problem:

Android Webview - Completely Clear the Cache

Community
  • 1
  • 1
Matt Gaunt
  • 9,434
  • 3
  • 36
  • 57
  • Thanks for the answer Gaunt.I m still not able to solve the problem of loading the login screen.I think the session getting stored somewhere.so do u have sometime idea on hoe to deal with session. – Alok Gupta Mar 18 '11 at 04:29