Beispiel #1
0
 public void update() {
   System.out.println("id" + user_id);
   if (user_id > 0) {
     System.out.println("user_id" + user_id);
     event.setUserId(user_id);
     event.setUserName(user_name);
     event.setUser_image(user_image);
     event.setEmail(email1);
     event.setPhone(phone);
     String myClass = target_activity;
     System.out.println("target" + target_activity);
     Class<?> myClass1 = null;
     try {
       myClass1 = Class.forName(myClass);
     } catch (ClassNotFoundException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
     try {
       Activity obj = (Activity) myClass1.newInstance();
     } catch (InstantiationException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     } catch (IllegalAccessException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
     }
     Intent in = new Intent(OAuthActivity.this, myClass1);
     in.putExtra("class", "LoginActivity");
     OAuthActivity.this.finish();
     startActivity(in);
   } else {
     util.dialogExample1(error_message);
   }
 }
Beispiel #2
0
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.facebook_details);
    web = (WebView) findViewById(R.id.webView1);
    web.getSettings().setJavaScriptEnabled(true);
    util = new Utility(PaymentConfirmation.this);
    Intent iin = getIntent();
    Bundle extras = iin.getExtras();

    if (extras != null) {
      transaction_id = extras.getInt("orderid");
    }
    System.out.println("ud" + transaction_id);
    System.out.println("url" + util.setAuthenticate(transaction_id));
    web.loadUrl(util.setAuthenticate(transaction_id));
    get();
  }