final ProgressDialog p = ProgressDialog.show(getApplicationContext(), "Registration", "You are being registered", true, false); new Thread(new Runnable() { public void run() { loaddata(); p.cancel(); } }).start(); private int issuccessful(ParseObject testObject) { // TODO Auto-generated method stub try { testObject.save(); return 1; } catch (ParseException e) { // TODO Auto-generated catch block return 2; } } private void loaddata() { ParseObject testObject = new ParseObject("Register"); testObject.put("u_id", "v0001"); testObject.put("f_name", a); testObject.put("m_name", x); testObject.put("l_name", c); testObject.put("contact", d); int y = issuccessful(testObject); if (y == 1) { Toast.makeText(getApplicationContext(),"Successfully Registered!!", Toast.LENGTH_LONG).show(); } else { Toast.makeText(getApplicationContext(), "Sorry for inconvenience please try again", Toast.LENGTH_SHORT).show(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)