Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 onCreate Activity 类中有这段代码,但我不想使用 Activity。
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(intent, 1);
没有活动的图像拾取后是否存在一些捕获事件/响应的解决方案?
不,对不起。startActivityForResult()只能从Activity.
startActivityForResult()
Activity