안드로이드 개발 질문/답변
(글 수 45,052)
oncreate() 안에서
registerReceiver(mFinishReceiver, new IntentFilter("koins.anycare.intent.action.PCHAT"));
이거를 해주면 잘됩니다
근대 oncreate가 안된상태에서 액션을 등록시켜서 리시버를 호출하려고합니다 ..
매니페스트에서 제가
<activity android:name=".Parent.ParentDetailChat"><intent-filter><action android:name="koins.anycare.intent.action.PCHAT"></action>
</intent-filter>
이런식으로 등록을 해놓고 registerReceiver(mFinishReceiver, new IntentFilter("koins.anycare.intent.action.PCHAT"));이거를 선언안했습니다
근대 매니페스트에서 등록을 하면 왜 호출이 안될까요 ㅠㅠㅠㅠ
도와주세요 고수님들
registerReceiver(mFinishReceiver, new IntentFilter("koins.anycare.intent.action.PCHAT"));
이거를 해주면 잘됩니다
근대 oncreate가 안된상태에서 액션을 등록시켜서 리시버를 호출하려고합니다 ..
매니페스트에서 제가
<activity android:name=".Parent.ParentDetailChat"><intent-filter><action android:name="koins.anycare.intent.action.PCHAT"></action>
</intent-filter>
이런식으로 등록을 해놓고 registerReceiver(mFinishReceiver, new IntentFilter("koins.anycare.intent.action.PCHAT"));이거를 선언안했습니다
근대 매니페스트에서 등록을 하면 왜 호출이 안될까요 ㅠㅠㅠㅠ
도와주세요 고수님들
2011.03.25 19:27:15
<activity android:name=".Parent.ParentDetailChat" android:screenOrientation="portrait">
<intent-filter>
<action android:name="koins.anycare.intent.action.PCHAT"></action>
</intent-filter>
</activity>
이렇게 등록했습니다 ㅠㅠㅠ
<intent-filter>
<action android:name="koins.anycare.intent.action.PCHAT"></action>
</intent-filter>
</activity>
이렇게 등록했습니다 ㅠㅠㅠ
2011.03.25 19:29:47
인텐트 필터가 activity 안에 있으니 안되는게 당연하죠..
매니패스트
<receiver
android:name="Test">
<intent-filter>
<action
android:name="koins.anycare.intent.action.PCHAT"></action>
</intent-filter>
</receiver>
class 파일
public class Test extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
}
}




//@Override
public void onReceive(Context context, Intent intent) {
}
}
이런식으로 액티비티에서 액티비티로 Receive해주려고하는데 매니페스트에서 액션 등록하는법좀 알려주세요 ㅠ