Android:Problem to pass the result back to another activity

107 views
Skip to first unread message

Rafael Timmerberg

unread,
Feb 14, 2011, 12:21:52 PM2/14/11
to zxing
Hello,
I've requested help for building an Android app which scans barcodes
and returns result back. By myself I have rebuild these
CaptureActivity in zxing/android to suid my needs. Now i stuck in the
handleDecode(Result rawResult, Bitmap barcode) method.
I plan to simply take these (valid) result, put the Result and Bitmap
into an Bundle, and call
setResult(RESLUT_OK, intent);
Now the problem appears. The finish() call finishes my
CaptureActivity, but
onActivityResult(int, int, Intent)
never triggers. I thought the problem could be that handlers still try
to handle "something" I don't know. So I looked how you guys do it in
handleDecodeExternally(Result, Bitmap)
I'm sending now a message to my handler with the
'R.id.return_scan_result' tag and the "result-Intent" passed as
message.obj. But it still seems to finish() my CaptureActivity
without calling onActivityResult.
If I insert an Intent "debug" action which just returns a hard-coded
String via Intents in onResume() the onActivityResult gets called
properly.
What am I missing or what am I doing wrong? What is important to know,
on which things I have to care?
I have not even an idea what to try else

Any help will be appreciated
Reply all
Reply to author
Forward
0 new messages