0
(首先,我的英語對不起) 我從我的主要活動通過這種方式callig地圖活動:當我使用ACTION_VIEW服務時,我可以截圖嗎?
String coord="geo:0,0";
Intent intent= new Intent(android.content.Intent.ACTION_VIEW);
intent.setData(Uri.parse(coord));
startActivityForResult(intent,2);
...並且工作正常。到了另一邊,我已經onActivityResult:
public void onActivityResult(int request,int result,Intent intent){
//I think here should be the screenshot code
}
...當在地圖活動結束其被調用,也工作正常。 現在,我需要的是在地圖活動正在關閉的時刻(地圖的最終地圖)截圖(圖像,位圖或可繪製的,我不介意),我不知道它是否是可能的。
非常感謝
好的...非常感謝 – user3393217