Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Crash. Start card.io activity on some devices #19

Closed
xal opened this issue Jun 24, 2014 · 8 comments
Closed

Crash. Start card.io activity on some devices #19

xal opened this issue Jun 24, 2014 · 8 comments
Labels

Comments

@xal
Copy link

xal commented Jun 24, 2014

In crash report from production we received report about crash in card.io library.

Exception:
io.card.payment.DataEntryActivity.onCreate java.lang.IllegalStateException: Didn't find any extras!

Code:
Intent scanIntent = new Intent(activity, CardIOActivity.class);

    // required for authentication with card.io
    scanIntent.putExtra(CardIOActivity.EXTRA_APP_TOKEN, MY_CARDIO_APP_TOKEN);

    // customize these values to suit your needs.
    scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, true); // default: true
    scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_CVV, true); // default: false
    scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_POSTAL_CODE, false); // default: false

    // MY_SCAN_REQUEST_CODE is arbitrary and is only used within this activity.
    activity.startActivityForResult(scanIntent, requestCode);

Device info:

4.1.1
ANDROID VERSION
Yes
ROOTED
Portrait
UI ORIENTATION
UNKNOW
DEVICE

@braebot
Copy link
Member

braebot commented Jun 24, 2014

Thanks! We'll see if we can reproduce this and get a fix out.

@tomwhipple tomwhipple added the bug label Jul 28, 2014
@mattjacunski
Copy link
Contributor

@xal - We have not been able to reproduce this issue. Any additional info or occurrences that may help?

@fcduarte
Copy link

This is affecting some of our users too, here is the stacktrace from Crittercism:

    java.lang.RuntimeException: Unable to start activity ComponentInfo{a.b.android.app/io.card.payment.DataEntryActivity}: java.lang.IllegalStateException: Didn't find any extras!
1       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
2       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
3       at android.app.ActivityThread.access$600(ActivityThread.java:141)
4       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
5       at android.os.Handler.dispatchMessage(Handler.java:99)
6       at android.os.Looper.loop(Looper.java:137)
7       at android.app.ActivityThread.main(ActivityThread.java:5041)
8       at java.lang.reflect.Method.invokeNative(Native Method)
9       at java.lang.reflect.Method.invoke(Method.java:511)
10      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
11      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
12      at dalvik.system.NativeStart.main(Native Method)
13  Caused by: java.lang.IllegalStateException: Didn't find any extras!
14      at io.card.payment.DataEntryActivity.onCreate(Unknown Source)
15      at android.app.Activity.performCreate(Activity.java:5104)
16      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
17      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
18      ... 11 more
19  java.lang.IllegalStateException: Didn't find any extras!
20      at io.card.payment.DataEntryActivity.onCreate(Unknown Source)
21      at android.app.Activity.performCreate(Activity.java:5104)
22      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
23      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
24      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
25      at android.app.ActivityThread.access$600(ActivityThread.java:141)
26      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
27      at android.os.Handler.dispatchMessage(Handler.java:99)
28      at android.os.Looper.loop(Looper.java:137)
29      at android.app.ActivityThread.main(ActivityThread.java:5041)
30      at java.lang.reflect.Method.invokeNative(Native Method)
31      at java.lang.reflect.Method.invoke(Method.java:511)
32      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
33      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
34      at dalvik.system.NativeStart.main(Native Method)

OS Versions:

  • 4.1.1 (47%)
  • 4.2.2 (3%)
  • 4.4.2 (50%)

Devices:

  • Galaxy Nexus (47%)
  • Nexus 5 (50%)
  • Samsung SIII GT-I9300 (3%)

@ditn
Copy link

ditn commented Feb 16, 2015

We've been having the same issues too for some time, and have seen this on V3.2.0 as well as 4.0.0. Seems to be affecting rooted users on 4.2.2 most commonly.

@braebot
Copy link
Member

braebot commented Feb 18, 2015

Somehow the DataEntryActivity is being called without extras. We'll have to investigate why the extras are null, despite CardIOActivity explicitly passing the extras along.

@braebot
Copy link
Member

braebot commented Mar 10, 2015

This was fixed in the latest release, 5.0.0.

@braebot braebot closed this as completed Mar 10, 2015
@tkzht0105
Copy link

No card.io.jar in this package .

@braebot
Copy link
Member

braebot commented Mar 19, 2015

@tkzht0105, I'm sorry, I'm not able to determine if you're reporting an issue. If you have a new issue to report, please open a new GitHub issue. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants