마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

take picture 할 때 BroadcastReceiver 안오나요??

0 추천

사진을 찍을때 바로 어떤 작업을 하려고 하는데, 

 

        <receiver android:name="com.example.resize.Photos" android:exported="true">
            <intent-filter>
<action android:name="android.hardware.action.NEW_PICTURE" />
<action android:name="com.android.camera.NEW_PICTURE" />
<data android:mimeType="image/*" />
            </intent-filter>
            <intent-filter>
<action android:name="photup.intent.action.PHOTO_TAKEN" />
</intent-filter>
            <intent-filter>
<action android:name="com.google.android.apps.plus.NEW_PICTURE" />
</intent-filter>
            <intent-filter>
<action android:name="android.camera.NEW_PICTURE" />
</intent-filter>
            <intent-filter>
<action android:name="android.intent.action.CAMERA_BUTTON" />
</intent-filter>
            <intent-filter>
<action android:name="com.unitedcoders.android.broadcasttest.SHOWTOAST"/>
</intent-filter>
        </receiver>
 
이런 바로 작업을 해도 안들어오네요. 혹시 사진찍을때 바로 onReceive()타게 할 수 있는 방법 아시는 분 계시나요??
AHU (140 포인트) 님이 2013년 9월 30일 질문

1개의 답변

0 추천

public static final String ACTION_NEW_PICTURE

Added in API level 14

Broadcast Action: A new picture is taken by the camera, and the entry of the picture has been added to the media store. getData() is URI of the picture.

Constant Value: "android.hardware.action.NEW_PICTURE"
 
이거 쓰시는게 맞고요 ICS이전에서는 안먹습니다 .... 예전에해봐는데잘되고요(기본내장카메라)
그밖에 카메라에서는 되는지안되는지 모르게네여.. 

 

건방진프로그래머 (26,630 포인트) 님이 2013년 9월 30일 답변
전 현재 JB+에서 테스트 하고, 위에처럼 Manifest에 등록했는데 왜 안들어올까요??
일단 진저에서는 안되는 브로드캐스트이고요..
ICS 단말에서도 않되다고하시면 다시한번 점검해보세요
...