开发者

startSubActivity

When use startSubActivity in my android application it shows an error

The method startSubActivity(Intent, int) is undefined for the type RssReader

RssReader is the classname. I already add the activity as :-

<activity android:name=".ShowDescription" >
          <intent-filter>
         开发者_JS百科       <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

Please help.


Try using startActivityForResult instead.

The function startSubActivity was never really released to the public (as far as I know), it was just renamed to startActivityForResult.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜