开发者

startSubActivity

开发者 https://www.devze.com 2023-03-13 19:37 出处:网络
When use startSubActivity in my android application it shows an error The method startSubActivity(Intent,

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

精彩评论

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

关注公众号