Fixes
- Fixes a crash that occurred when attempting to cast the result of OkHttpFactory.open() to a javax.net.ssl.HttpsURLConnection, resulting in a java.lang.ClassCastException
- Resolves a crashing java.lang.NullPointerException when the app is brought from background to foreground in a specific scenario
Improvements
- The SDK now tracks the number and duration of network requests per interaction, which will be used in upcoming features.
- Deprecates the NewRelic.shutdown() method, which will be removed from the API in a future release.
Fixes
- Resolves a potential UI performance issue when experiencing low/no network connectivity.
- Addresses a crashing java.lang.RuntimeException thrown while determining the root cause of an app crash.
- Fixes a potential crash during trace collection resulting from a java.lang.ClassCastException.
Fixes
- Resolves an issue where the connection type used by the app may have been incorrectly reported.
Notes
- Resolves a compatibility issue that may occur when running apps on Android M preview.
Improvements
- The Android SDK will now collect an app build identifier when an app crashes, which will be displayed in parentheses beside the version number in the Crash Details page in RPM. This value defaults to the string
versionCode
that is specified in the app's AndroidManifest.xml. IfversionCode
is not specified the build identifier not be displayed. - A new API method
withBuildIdentifier(String)
was added to allow specifying a custom app build identifier, overriding the default value pulled fromversionCode
. - Updates to unique ID management to improve accuracy of unique device counts.
Fixes
- Fixes a crash resulting from empty body responses when using version 1.9 of the Retrofit library.
- Corrects an internal issue with reserved attribute names. 'interactionDuration' is now a reserved attribute name.
Fixes
- Corrects an issue where the timeSinceLoad attribute may not have been sent for Insights Events.
Improvements
Insights for Mobile
This release introduces Insights for New Relic Mobile.
The Android SDK now automatically records Session, Interaction, and Crash events in New Relic Insights. After upgrading to this release, you will be able to build queries and dashboards in Insights with the new Mobile event type. All events include attributes reflecting session and unique install identifiers, device, OS, geography, duration and other data. See the Insights documentation for a description of Mobile attributes and Insights usage details.
Custom events
In addition to the standard events available in Insights, you can now record custom events. Custom events have a name and set of key:value attributes, perfect for capturing usage, monetization, and custom performance data. Custom events are also available in Insights. See the Mobile Custom Event documentation for details.
Custom attributes
In addition to event-specific attributes, this release provides support for install-scoped attributes. An attribute recorded in the app will be attached to every Session, Interaction, Crash, and Custom event reported from that instance of the app. Custom attributes are perfect for tracking durable information like account id, campaign origin, subscription level, etc. See the Mobile Custom Attribute documentation for details.
The Android API documentation includes details on sending custom events and attributes to Insights.
Fixes
- Addresses an issue that could cause a null pointer exception when an empty response body was received using older versions of the Retrofit library
- Corrects a potential ConcurrentModificationException during instrumentation when a large number of HTTP requests was made
Improvements
- This release adds instrumentation for versions 2.1+ of Square's OkHttp library. 1.x versions continue to be supported.
- This release also adds support for the Retrofit (1.8+) and Picasso (2.4+) libraries from Square.
Notes
- With this release, the Android SDK will require a minimum version of Android 2.3. Apps requiring Android 2.2 can still use the legacy version of the New Relic Mobile Android SDK, 4.244.0 (instructions here). The legacy version will only receive critical updates if necessary.
- Please note that versions 2.x of the OkHttp library require Android 2.3+ and Java 7. (see https://github.com/square/okhttp/blob/master/CHANGELOG.md#version-200)