How to open gallery via intent without result?

前端 未结 4 2181
后悔当初
后悔当初 2020-12-17 05:46

I have a kind of an ApplicationLauncher that has to start the build-in gallery. But I don\'t want to get any result from that gallery. I just want to start it and want my &q

4条回答
  •  被撕碎了的回忆
    2020-12-17 06:24

        Intent intent = new Intent();
        intent.setType("image/*");
        intent.setAction(Intent.ACTION_VIEW );
        startActivity(intent);
    

提交回复
热议问题