Closed Bug 848901 Opened 12 years ago Closed 12 years ago

NFC causes crashes in GB phones

Categories

(Firefox for Android Graveyard :: General, defect)

22 Branch
ARM
Android
defect
Not set
critical

Tracking

(firefox21 unaffected, firefox22 fixed)

RESOLVED FIXED
Firefox 22
Tracking Status
firefox21 --- unaffected
firefox22 --- fixed

People

(Reporter: sriram, Assigned: kats)

References

Details

(Keywords: crash, regression, Whiteboard: [native-crash] [NFC])

Crash Data

Attachments

(1 file)

E/GeckoAppShell( 1586): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main") E/GeckoAppShell( 1586): java.lang.NoClassDefFoundError: org.mozilla.gecko.BrowserApp$6 E/GeckoAppShell( 1586): at org.mozilla.gecko.BrowserApp.onCreate(BrowserApp.java:366) E/GeckoAppShell( 1586): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) E/GeckoAppShell( 1586): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) E/GeckoAppShell( 1586): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) E/GeckoAppShell( 1586): at android.app.ActivityThread.access$1500(ActivityThread.java:117) E/GeckoAppShell( 1586): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) E/GeckoAppShell( 1586): at android.os.Handler.dispatchMessage(Handler.java:99) E/GeckoAppShell( 1586): at android.os.Looper.loop(Looper.java:130) E/GeckoAppShell( 1586): at android.app.ActivityThread.main(ActivityThread.java:3683) E/GeckoAppShell( 1586): at java.lang.reflect.Method.invokeNative(Native Method) E/GeckoAppShell( 1586): at java.lang.reflect.Method.invoke(Method.java:507) E/GeckoAppShell( 1586): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) E/GeckoAppShell( 1586): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/GeckoAppShell( 1586): at dalvik.system.NativeStart.main(Native Method) And the corresponding piece of code is: if (Build.VERSION.SDK_INT >= 10) { NfcAdapter nfc = NfcAdapter.getDefaultAdapter(this); if (nfc != null) { #line: 366 nfc.setNdefPushMessageCallback(new NfcAdapter.CreateNdefMessageCallback() { @Override public NdefMessage createNdefMessage(NfcEvent event) { Tab tab = Tabs.getInstance().getSelectedTab(); if (tab == null || tab.isPrivate()) { return null; } return new NdefMessage(NdefRecord.createUri(tab.getURL())); } }, this); } } Device running: 2.3.4
Severity: normal → critical
Crash Signature: [@ java.lang.NoClassDefFoundError: org.mozilla.gecko.BrowserApp$6 at org.mozilla.gecko.BrowserApp.onCreate(BrowserApp.java) ]
Keywords: crash
Whiteboard: [native-crash]
kats, NfcAdapter was added in API Level 9 (GB), but NfcAdapter.CreateNdefMessageCallback was added in API Level 14 (ICS): https://developer.android.com/reference/android/nfc/NfcAdapter.CreateNdefMessageCallback.html
noooooooooo fix it
Assignee: nobody → bugmail.mozilla
Version: unspecified → Firefox 22
Comment on attachment 722552 [details] [diff] [review] Only send via beam on API 14+ Looks good to me.
Attachment #722552 - Flags: review?(sriram) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Whiteboard: [native-crash] → [native-crash] [NFC]
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: