FAQ Database Discussion Community


How to get notify when new video file is added

java,android,broadcastreceiver,contentobserver,fileobserver
How to detect that camera has captured a new video. I have updated my code Updated Code : public class Video extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub Log.d("SCAN_FILE", "VIDEOOOOOOOOOOOOOOOOOOO"); String action = intent.getAction(); Uri uri = intent.getData(); String externalStoragePath =...

Android, Listener/Observer/Callback on calendar event change

android,calendar,android-calendar,android-cursorloader,contentobserver
I am writing an application that needs to know when a meeting is added/removed/changed in the calendar. I know how to get all the data from a calendar using CursorLoader on the calendar uri. Also i know how to listen to calendar changes using the ContentObserver. The problem is that...

distinguish between answered and unanswered outgoing calls (android)

android,android-intent,android-contentprovider,contentobserver
I want to find out if an outgoing call has been answered. Unfortunately, in the case of an outgoing call I see Intent { act=android.intent.action.PHONE_STATE flg=0x10 (has extras) } extras:Bundle{ state => OFFHOOK; }Bundle Intent { act=android.intent.action.PHONE_STATE flg=0x10 (has extras) } extras:Bundle{ state => IDLE; }Bundle regardless of whether or...