[问题] 使用 startActivityForResult

楼主: shihyu (shihyu)   2021-10-01 22:07:45
我想使用 startActivityForResult 做登入
但是我class 没继承 activity 有什么方法可以呼叫到 startActivityForResult?
如果再启一个 activity 但去呼叫 startActivityForResult 但 activity 不跳出UI 这方法可行?
我查网络上启动不显示 UI
AndroidManifest.xml
改成 android:theme="@android:style/Theme.NoDisplay" 但我测试不行
谢谢
作者: rex921 (小雷)   2021-10-02 13:29:00
你的class是继承fragment吗?
楼主: shihyu (shihyu)   2021-10-03 12:24:00
AppCompatActivity
作者: starburs (星爆气流斩)   2021-10-03 12:39:00
AppCompatActivity 有这个方法啊
作者: tentenlee (天天)   2021-10-04 20:56:00
那怎么会没有这个? 你继承这个会有呀

Links booklink

Contact Us: admin [ a t ] ucptt.com