Exemplo n.º 1
0
 /// <summary>
 /// This method is called when the BroadcastReceiver is receiving an Intent
 /// broadcast.
 /// </summary>
 /// <param name="context">
 /// The Context in which the receiver is running.
 /// </param>
 /// <param name="intent">
 /// The Intent being received.
 /// </param>
 public override void OnReceive(Context context, Intent intent)
 {
     try
     {
         DownloaderClientMarshaller.StartDownloadServiceIfRequired(
             context, intent, typeof(ExpansionDownloaderService));
     }
     catch (PackageManager.NameNotFoundException e)
     {
         e.PrintStackTrace();
     }
 }
 public override void OnReceive(Context context, Intent intent)
 {
     DownloaderClientMarshaller.StartDownloadServiceIfRequired(context, intent, typeof(SampleDownloaderService));
 }