2014-10-29 101 views
-3

我可以製作一個攝像頭,它會在收到任何消息後打開,並通過Android手機中的照片重放此圖像。我如何在不使用用戶權限的情況下製作它?如何讓系統在沒有Android用戶權限的情況下拍攝照片?

Intent in = new Intent(
        android.provider.MediaStore.ACTION_IMAGE_CAPTURE); 
      in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
      context.startActivity(in); 

回答

0
Every application when is installed shows a list of permissions, 
and only can be installed if the user accepts to install, in fact for 
security issues you can´t make an application that capture a photo 
without user permission... 

Permissions

請求應用程序必須按順序 被授予它正確操作權限。當應用程序安裝時,權限是由用戶授予的,而不是在運行時。

想象你的問題是那個應用程序,我想不止一個人想刪除你的問題! :0

相關問題