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,322
  • 16
  • 114
  • 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,331
  • 18
  • 101
  • 135
0

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

Community
  • 1
  • 1
Randy Sugianto 'Yuku'
  • 68,307
  • 56
  • 174
  • 223