0

I have TabHost with tab child like this:

tabHost.addTab(tabHost.newTabSpec("web")
            .setIndicator("web")
            .setContent(new Intent(this, webview.class)));

In WebView class, I startactivityforresult:

startActivityForResult(new Intent(Webview.this,EventManage.class),GET_CODE);

In Eventmanage class, I set result but can not capture result in webview class.

Anybody can help me with this problem?

Konstantin Burov
  • 68,980
  • 16
  • 115
  • 93
user541383
  • 41
  • 4

2 Answers2

0

You need to create an onActivityResult() method in your webview class. See Starting Activities and Getting Results

Squonk
  • 48,735
  • 19
  • 103
  • 135
0

Please see this: How to return a result (startActivityForResult) from a TabHost Activity?

Community
  • 1
  • 1
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228