GithubHelp home page GithubHelp logo

Comments (7)

mattjacunski avatar mattjacunski commented on August 23, 2024

This can happen if the token (extracted from the intent using .getStringExtra(EXTRA_APP_TOKEN) value is null, the length is 0, or the token string contains a space. Could it be that a space character was inadvertently included?

from card.io-android-sdk.

mattjacunski avatar mattjacunski commented on August 23, 2024

Please re-open this issue or file a new one if this problem persists.

from card.io-android-sdk.

fcduarte avatar fcduarte commented on August 23, 2024

+1 for the issue .. It affects a really small portion of our users, here's a more complete stacktrace from crittercism:

Stack Trace
_________________________________
0   java.lang.RuntimeException: Unable to start activity ComponentInfo{a.b.android.app/io.card.payment.CardIOActivity}: java.lang.IllegalArgumentException: A valid card.io app token must be supplied as a stringExtra with the key CardIOActivity.EXTRA_APP_TOKEN. Get one at https://card.io
1       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2208)
2       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
3       at android.app.ActivityThread.access$800(ActivityThread.java:148)
4       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
5       at android.os.Handler.dispatchMessage(Handler.java:122)
6       at android.os.Looper.loop(Looper.java:136)
7       at android.app.ActivityThread.main(ActivityThread.java:5105)
8       at java.lang.reflect.Method.invokeNative(Native Method)
9       at java.lang.reflect.Method.invoke(Method.java:515)
10      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
11      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
12      at dalvik.system.NativeStart.main(Native Method)
13  Caused by: java.lang.IllegalArgumentException: A valid card.io app token must be supplied as a stringExtra with the key CardIOActivity.EXTRA_APP_TOKEN. Get one at https://card.io
14      at io.card.payment.CardIOActivity.onCreate(Unknown Source)
15      at android.app.Activity.performCreate(Activity.java:5437)
16      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1092)
17      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2172)
18      ... 11 more
19  java.lang.IllegalArgumentException: A valid card.io app token must be supplied as a stringExtra with the key CardIOActivity.EXTRA_APP_TOKEN. Get one at https://card.io
20      at io.card.payment.CardIOActivity.onCreate(Unknown Source)
21      at android.app.Activity.performCreate(Activity.java:5437)
22      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1092)
23      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2172)
24      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
25      at android.app.ActivityThread.access$800(ActivityThread.java:148)
26      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
27      at android.os.Handler.dispatchMessage(Handler.java:122)
28      at android.os.Looper.loop(Looper.java:136)
29      at android.app.ActivityThread.main(ActivityThread.java:5105)
30      at java.lang.reflect.Method.invokeNative(Native Method)
31      at java.lang.reflect.Method.invoke(Method.java:515)
32      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
33      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
34      at dalvik.system.NativeStart.main(Native Method)

from card.io-android-sdk.

VasilyRyabov avatar VasilyRyabov commented on August 23, 2024

Same issue. Could you check that you save token after system kill and re-create activity with no extras intent?

from card.io-android-sdk.

braebot avatar braebot commented on August 23, 2024

Please download the latest SDK (3.2.0+). We have removed the concept of APP_TOKENS entirely, and so this exception should never occur again. πŸ‘”

from card.io-android-sdk.

ShahMaitri avatar ShahMaitri commented on August 23, 2024

I am getting below kind of error while using CardIOActivity. Need suggestions to solve this

11-12 01:59:43.565: E/dalvikvm(2885): Could not find class 'io.card.payment.CreditCard', referenced from method org.my.scanExample.MyScanActivity.onActivityResult

from card.io-android-sdk.

braebot avatar braebot commented on August 23, 2024

Thanks @ShahMaitri. I'll address your comment in #31.

from card.io-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.