public void OnError(Entity errorObj) { TJError tjError = errorObj.JavaCast <TJError>(); string errorStr = tjError.ErrorCode + "-" + tjError.ErrorMessage; //string error = tjError.ToString (); // Toast.MakeText(outerInstance, errorStr, ToastLength.Long).Show(); // outerInstance.Finish(); }
public void OnError(Entity error) { TJError tjError = error.JavaCast <TJError>(); IList <TJError.ProxyObject> testlist = new List <TJError.ProxyObject>(); testlist = tjError.Proxy_object; if (testlist.Count > 0) { Toast.MakeText(outerInstance.mContext, testlist [0].HttpStatusCode + testlist [0].ServiceIdentifier, ToastLength.Short).Show(); } outerInstance.openErrorActivity(tjError); }
private void openErrorActivity(Entity error) { TJError tjError = error.JavaCast <TJError>(); Intent errorIntent = new Intent(mContext, typeof(MessageActivity)); if (tjError.ErrorCode != null) { errorIntent.PutExtra("Message", tjError.ErrorCode); } else { errorIntent.PutExtra("Message", "Uncaught Exception"); } errorIntent.PutExtra("LocalizedMessage", tjError.ErrorMessage); errorIntent.PutExtra("InvokedBy", INVOKED_BY_SDK_INIT_ERROR); mContext.StartActivity(errorIntent); }
public void OnError(Entity error) { Log.I(outerInstance.TAG, "initializeSDK - onError", "", ""); outerInstance.openErrorActivity(error); }