| Line 235... |
Line 235... |
| 235 |
apkDataEditor.commit();
|
235 |
apkDataEditor.commit();
|
| 236 |
final String idCheck = userData.getString("id",null);
|
236 |
final String idCheck = userData.getString("id",null);
|
| 237 |
//String check = userData.getString("which screen needs to be displayed");
|
237 |
//String check = userData.getString("which screen needs to be displayed");
|
| 238 |
if(Integer.parseInt(failureCount)<=0) {
|
238 |
if(Integer.parseInt(failureCount)<=0) {
|
| 239 |
if (userData.getString("referralCodeRequired", "false").equalsIgnoreCase("true")) {
|
239 |
if (userData.getString("referralCodeRequired", "false").equalsIgnoreCase("true")) {
|
| - |
|
240 |
Intent startActivityIntent=new Intent(SplashScreen.this, ReferrerActivity.class);
|
| - |
|
241 |
Intent intent = getIntent();
|
| - |
|
242 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| - |
|
243 |
Uri uri = intent.getData();
|
| - |
|
244 |
startActivityIntent.setAction("31");
|
| - |
|
245 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| - |
|
246 |
}
|
| - |
|
247 |
startActivity(startActivityIntent);
|
| 240 |
startActivity(new Intent(SplashScreen.this, ReferrerActivity.class));
|
248 |
//startActivity(new Intent(SplashScreen.this, ReferrerActivity.class));
|
| 241 |
} else if (userData.getString("message", "false").equalsIgnoreCase("true")) {
|
249 |
} else if (userData.getString("message", "false").equalsIgnoreCase("true")) {
|
| - |
|
250 |
Intent startActivityIntent=new Intent(SplashScreen.this, MobileNumber.class);
|
| - |
|
251 |
Intent intent = getIntent();
|
| - |
|
252 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| - |
|
253 |
Uri uri = intent.getData();
|
| - |
|
254 |
startActivityIntent.setAction("31");
|
| - |
|
255 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| - |
|
256 |
}
|
| - |
|
257 |
startActivity(startActivityIntent);
|
| 242 |
startActivity(new Intent(SplashScreen.this, MobileNumber.class));
|
258 |
//startActivity(new Intent(SplashScreen.this, MobileNumber.class));
|
| 243 |
} else if (idCheck != null) {
|
259 |
} else if (idCheck != null) {
|
| 244 |
Intent startActivityIntent=new Intent(SplashScreen.this, MainActivity.class);
|
260 |
Intent startActivityIntent=new Intent(SplashScreen.this, MainActivity.class);
|
| 245 |
Intent intent = getIntent();
|
261 |
Intent intent = getIntent();
|
| 246 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
262 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| 247 |
Uri uri = intent.getData();
|
263 |
Uri uri = intent.getData();
|
| 248 |
startActivityIntent.setAction("31");
|
264 |
startActivityIntent.setAction("31");
|
| 249 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
265 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| 250 |
}
|
266 |
}
|
| 251 |
startActivity(startActivityIntent);
|
267 |
startActivity(startActivityIntent);
|
| 252 |
} else {
|
268 |
} else {
|
| - |
|
269 |
Intent startActivityIntent=new Intent(SplashScreen.this, LoginActivity.class);
|
| - |
|
270 |
Intent intent = getIntent();
|
| - |
|
271 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| - |
|
272 |
Uri uri = intent.getData();
|
| - |
|
273 |
startActivityIntent.setAction("31");
|
| - |
|
274 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| - |
|
275 |
}
|
| - |
|
276 |
startActivity(startActivityIntent);
|
| 253 |
startActivity(new Intent(SplashScreen.this, LoginActivity.class));
|
277 |
//startActivity(new Intent(SplashScreen.this, LoginActivity.class));
|
| 254 |
|
278 |
|
| 255 |
}
|
279 |
}
|
| 256 |
}else{
|
280 |
}else{
|
| 257 |
registerGCM();
|
281 |
registerGCM();
|
| 258 |
}
|
282 |
}
|
| Line 520... |
Line 544... |
| 520 |
@Override
|
544 |
@Override
|
| 521 |
protected void onPostExecute(String result) {
|
545 |
protected void onPostExecute(String result) {
|
| 522 |
super.onPostExecute(result);
|
546 |
super.onPostExecute(result);
|
| 523 |
final String idCheck = userData.getString("id",null);
|
547 |
final String idCheck = userData.getString("id",null);
|
| 524 |
if (userData.getString("referralCodeRequired", "false").equalsIgnoreCase("true")) {
|
548 |
if (userData.getString("referralCodeRequired", "false").equalsIgnoreCase("true")) {
|
| - |
|
549 |
Intent startActivityIntent=new Intent(SplashScreen.this, ReferrerActivity.class);
|
| - |
|
550 |
Intent intent = getIntent();
|
| - |
|
551 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| - |
|
552 |
Uri uri = intent.getData();
|
| - |
|
553 |
startActivityIntent.setAction("31");
|
| - |
|
554 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| - |
|
555 |
}
|
| - |
|
556 |
startActivity(startActivityIntent);
|
| 525 |
startActivity(new Intent(SplashScreen.this, ReferrerActivity.class));
|
557 |
//startActivity(new Intent(SplashScreen.this, ReferrerActivity.class));
|
| 526 |
} else if (userData.getString("message", "false").equalsIgnoreCase("true")) {
|
558 |
} else if (userData.getString("message", "false").equalsIgnoreCase("true")) {
|
| - |
|
559 |
Intent startActivityIntent=new Intent(SplashScreen.this, MobileNumber.class);
|
| - |
|
560 |
Intent intent = getIntent();
|
| - |
|
561 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| - |
|
562 |
Uri uri = intent.getData();
|
| - |
|
563 |
startActivityIntent.setAction("31");
|
| - |
|
564 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| - |
|
565 |
}
|
| - |
|
566 |
startActivity(startActivityIntent);
|
| 527 |
startActivity(new Intent(SplashScreen.this, MobileNumber.class));
|
567 |
//startActivity(new Intent(SplashScreen.this, MobileNumber.class));
|
| 528 |
} else if (idCheck != null) {
|
568 |
} else if (idCheck != null) {
|
| 529 |
Intent startActivityIntent=new Intent(SplashScreen.this, MainActivity.class);
|
569 |
Intent startActivityIntent=new Intent(SplashScreen.this, MainActivity.class);
|
| 530 |
Intent intent = getIntent();
|
570 |
Intent intent = getIntent();
|
| 531 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
571 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| 532 |
Uri uri = intent.getData();
|
572 |
Uri uri = intent.getData();
|
| 533 |
startActivityIntent.setAction("31");
|
573 |
startActivityIntent.setAction("31");
|
| 534 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
574 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| 535 |
}
|
575 |
}
|
| 536 |
startActivity(startActivityIntent);
|
576 |
startActivity(startActivityIntent);
|
| 537 |
} else {
|
577 |
} else {
|
| - |
|
578 |
Intent startActivityIntent=new Intent(SplashScreen.this, LoginActivity.class);
|
| - |
|
579 |
Intent intent = getIntent();
|
| - |
|
580 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| - |
|
581 |
Uri uri = intent.getData();
|
| - |
|
582 |
startActivityIntent.setAction("31");
|
| - |
|
583 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| - |
|
584 |
}
|
| - |
|
585 |
startActivity(startActivityIntent);
|
| 538 |
startActivity(new Intent(SplashScreen.this, LoginActivity.class));
|
586 |
//startActivity(new Intent(SplashScreen.this, LoginActivity.class));
|
| 539 |
}
|
587 |
}
|
| 540 |
}
|
588 |
}
|
| 541 |
}
|
589 |
}
|
| 542 |
}
|
590 |
}
|
| 543 |
|
591 |
|