private bool processUnsupportedException(SsdkUnsupportedException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); int errType = e.Type; if (errType == SsdkUnsupportedException.VENDOR_NOT_SUPPORTED || errType == SsdkUnsupportedException.DEVICE_NOT_SUPPORTED) { /* * Your application can not use Samsung Accessory SDK. You application should work smoothly * without using this SDK, or you may want to notify user and close your app gracefully (release * resources, stop Service threads, close UI thread, etc.) */ stopSelf(); } else if (errType == SsdkUnsupportedException.LIBRARY_NOT_INSTALLED) { Log.e(TAG, "You need to install Samsung Accessory SDK to use this application."); } else if (errType == SsdkUnsupportedException.LIBRARY_UPDATE_IS_REQUIRED) { Log.e(TAG, "You need to update Samsung Accessory SDK to use this application."); } else if (errType == SsdkUnsupportedException.LIBRARY_UPDATE_IS_RECOMMENDED) { Log.e(TAG, "We recommend that you update your Samsung Accessory SDK before using this application."); return(false); } return(true); }
private bool processUnsupportedException(SsdkUnsupportedException e) { #if DEBUG Console.WriteLine(e.ToString()); #endif if (e.Equals(SsdkUnsupportedException.VendorNotSupported) || e.Equals(SsdkUnsupportedException.DeviceNotSupported)) { StopSelf(); } else if (e.Equals(SsdkUnsupportedException.LibraryNotInstalled)) { #if DEBUG Console.WriteLine(TAG + "You need to install Samsung Accessory SDK to use this application."); #endif } else if (e.Equals(SsdkUnsupportedException.LibraryUpdateIsRequired)) { #if DEBUG Console.WriteLine(TAG + "You need to update Samsung Accessory SDK to use this application."); #endif } else if (e.Equals(SsdkUnsupportedException.LibraryUpdateIsRecommended)) { #if DEBUG Console.WriteLine(TAG + TAG, "We recommend that you update your Samsung Accessory SDK before using this application."); #endif return(false); } return(true); }
private bool processUnsupportedException(SsdkUnsupportedException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); int errType = e.Type; if (errType == SsdkUnsupportedException.VENDOR_NOT_SUPPORTED || errType == SsdkUnsupportedException.DEVICE_NOT_SUPPORTED) { /* * Your application can not use Samsung Accessory SDK. You application should work smoothly * without using this SDK, or you may want to notify user and close your app gracefully (release * resources, stop Service threads, close UI thread, etc.) */ stopSelf(); } else if (errType == SsdkUnsupportedException.LIBRARY_NOT_INSTALLED) { Log.e(TAG, "You need to install Samsung Accessory SDK to use this application."); } else if (errType == SsdkUnsupportedException.LIBRARY_UPDATE_IS_REQUIRED) { Log.e(TAG, "You need to update Samsung Accessory SDK to use this application."); } else if (errType == SsdkUnsupportedException.LIBRARY_UPDATE_IS_RECOMMENDED) { Log.e(TAG, "We recommend that you update your Samsung Accessory SDK before using this application."); return false; } return true; }
public OnClickListenerAnonymousInnerClassHelper13(SampleActivity outerInstance, SsdkUnsupportedException e) { this.outerInstance = outerInstance; this.e = e; }
public OnClickListenerAnonymousInnerClassHelper(SapaSimplePluginClient outerInstance, SsdkUnsupportedException e) { this.outerInstance = outerInstance; this.e = e; }