public override void onCreate() { base.onCreate(); mContext = ApplicationContext; Log.d(TAG, "On Create of Sample FileTransferReceiver Service"); mCallback = new EventListenerAnonymousInnerClassHelper(this); SAft saft = new SAft(); try { saft.initialize(this); } catch (SsdkUnsupportedException e) { if (e.Type == SsdkUnsupportedException.DEVICE_NOT_SUPPORTED) { Toast.makeText(BaseContext, "Cannot initialize, DEVICE_NOT_SUPPORTED", Toast.LENGTH_SHORT).show(); } else if (e.Type == SsdkUnsupportedException.LIBRARY_NOT_INSTALLED) { Toast.makeText(BaseContext, "Cannot initialize, LIBRARY_NOT_INSTALLED.", Toast.LENGTH_SHORT).show(); } else { Toast.makeText(BaseContext, "Cannot initialize, UNKNOWN.", Toast.LENGTH_SHORT).show(); } Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); return; } catch (Exception e1) { Toast.makeText(BaseContext, "Cannot initialize, SAft.", Toast.LENGTH_SHORT).show(); Console.WriteLine(e1.ToString()); Console.Write(e1.StackTrace); return; } mSAFileTransfer = new SAFileTransfer(FileTransferReceiver.this, mCallback); }