Advertisement
Guest User

Untitled

a guest
May 26th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public static final boolean checkVitamioLibs(Activity ctx) {
  2. if (!Vitamio.isInitialized(ctx) && !ctx.getIntent().getBooleanExtra(FROM_ME, false)) {
  3. Intent i = new Intent();
  4. i.setClassName(Vitamio.getVitamioPackage(), "io.vov.vitamio.activity.InitActivity");
  5. i.putExtras(ctx.getIntent());
  6. i.setData(ctx.getIntent().getData());
  7. i.putExtra("package", ctx.getPackageName());
  8. i.putExtra("className", ctx.getClass().getName());
  9. ctx.startActivity(i);
  10. ctx.finish();
  11. return false;
  12. }
  13. return true;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement