Last active
August 29, 2015 14:06
-
-
Save JonDouglas/a4137976c051e6a88ee9 to your computer and use it in GitHub Desktop.
MyReceiver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; | |
using Android.Runtime; | |
using Android.Views; | |
using Android.Widget; | |
namespace NewCameraBroadcast | |
{ | |
[BroadcastReceiver(Enabled = true)] | |
[IntentFilter(new[] { Android.Hardware.Camera.ActionNewPicture, "com.android.camera.NEW_PICTURE" }, DataMimeType = "image/*")] | |
public class MyReceiver : BroadcastReceiver | |
{ | |
public override void OnReceive(Context context, Intent intent) | |
{ | |
Toast.MakeText(context, "Received intent!", ToastLength.Short).Show(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment