@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(MResource.getIdByName(getApplication(), "layout", "mobp2psdk_main")); SdkPreferences.initUZonePreferenceInstance(getApplicationContext()); initWebView(); initDate(); }
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK) && view.canGoBack()) { view.goBack(); return true; } else { SdkPreferences.clear(); } return super.onKeyDown(keyCode, event); }