java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.nfc.PaymentDefaultDialog}: java.lang.UnsupportedOperationException

Stack Overflow | Andriy Antonov | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    UnsupportedOperationException for Android API method CardEmulation.getInstance()

    Stack Overflow | 7 months ago | Andriy Antonov
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.nfc.PaymentDefaultDialog}: java.lang.UnsupportedOperationException

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      No message provided

      at android.nfc.cardemulation.CardEmulation.getInstance()
    2. Android Platform
      CardEmulation.getInstance
      1. android.nfc.cardemulation.CardEmulation.getInstance(CardEmulation.java:159)
      1 frame
    3. com.android.settings
      PaymentDefaultDialog.onCreate
      1. com.android.settings.nfc.PaymentBackend.<init>(PaymentBackend.java:53)
      2. com.android.settings.nfc.PaymentDefaultDialog.onCreate(PaymentDefaultDialog.java:57)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5582)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2405)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2500)
      5. android.app.ActivityThread.access$900(ActivityThread.java:171)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:146)
      9. android.app.ActivityThread.main(ActivityThread.java:5679)
      9 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame