Lachezar Dobrev
unread,Apr 22, 2014, 5:11:57 AM4/22/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Robert Drabant, zxing, Daniel Switkin, Suhail Sherif
Apologies!
It seems I've sent the 'solution' off-list.
// You may choose a better uniqueness
final int requestCode;
requestCode = 0xBA7C0DE + (int) System.currentTimeMillis() % 1000;
final Intent intent;
intent = new Intent("com.google.zxing.client.android.SCAN");
// Start child activity
startActivityForResult(intent, requestCode);
// 3 seconds delay before forcibly finishing activity.
// onActivityResult() WILL be called.
new Handler(new Callback() {
@Override
public boolean handleMessage(Message msg) {
finishActivity(requestCode);
return false;
}
}).sendEmptyMessageDelayed(0, 3000);
> --
> You received this message because you are subscribed to the Google Groups "zxing" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
zxing+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.