Android release notes

Tuesday, March 8, 2016 - 10:15 Download

Improvements

This release adds a new feature flag, DefaultInteractions, that controls whether automatically instrumented (default) interactions are collected by the agent. With auto-instrumented interactions disabled, only custom interactions (interactions created through the public New Relic agent API) will be recorded. This flag is enabled by default, and is disabled by calling

NewRelic.disableFeature(FeatureFlag.DefaultInteractions);

Fixes

  • Fixes a problem reading a response body in asynchronous network requests via OkHttp, which was introduced by version 5.4.1.
Wednesday, February 10, 2016 - 10:30 Download

Fixes

  • Prevent duplication of the New Relic HTTP header used for cross application tracing ('X-NewRelic-Id') if the request is replayed through OkHttp​
  • The agent will now send the HTTP header 'X-NewRelic-Id' (used for cross application tracing) using exactly that casing (it was previously lowercased)​
  • Failed OkHttp requests will now correctly report the full error response body

Changes

This release will be the last to support the New Relic Eclipse plugin for Eclipse IDE's. Eclipse users are encouraged to use the Eclipse Gradle plugin or migrate to Android Studio. Eclipse users may continue to use this (5.4.1) or any previous agent release.

Thursday, January 7, 2016 - 15:20 Download

Improvements

  • Interaction tracing can now be globally disabled with the new API method, NewRelic.withInteractionTracing(boolean). This method should be called prior to starting the agent, but it can be changed any time thereafter. Interaction tracing will be disabled after the agent has started; interactions for any activity or methods executed prior to starting the agent may still appear in the Interactions page.

Fixes

  • A bug introduced in the previous release that resulted in missing analytics data in crash reports has been fixed.
  • The session ID is now correctly updated when the app returns to foreground. Unique session counts were not affected.
  • Additional safeguards were added to prevent agent from starting or harvesting when app is in the background.
Tuesday, November 24, 2015 - 10:15 Download

Improvements

  • This release adds two new Insights attributes for the upcoming Mobile Version Trends Report : install, and upgradeFrom. This allows tracking when a session includes a new install or a new upgrade. The install attribute records true if the app was a new installation. The upgradeFrom attribute tracks the last version of the application when an upgrade is detected.

Fixes

  • Patched a GSON vulnerability that could result in null pointer exception in Json serialization during harvest.
Thursday, October 29, 2015 - 03:00 Download

Improvements

  • Android Gradle plugin 1.4 compatibility (1.4.0-beta6)
    • Google is working to improve the build system within Android Developer Toolkit (ADT) and as of version 1.4.0-beta2 a change was made that breaks compatibility with the New Relic Android agent. This update provides compatibility with the new beta and previous versions of the Android Gradle plugin.

Fixes

  • With Strict Mode enabled in Android Studio, there may have been a resource leak detected with the Android agent installed. This has been corrected for Strict Mode compatibility and to prevent potential resource leaks.
  • An edge case scenario was detected where an app left open past the scheduled timeout value would continue sending data on the standard harvest cycle rather than the timeout value. This was corrected to ensure the timeout count is reset and respected.
  • A small number of network error types in the Android agent were found to be reporting invalid codes that resulted in missing exceptions on the Errors page for the app. This behavior was corrected and each type of exception is now properly displayed in the Errors screen.
  • In version 1.3 of the Gradle plugin, Google made a change that requires the mapping.txt file to be in a specific format when creating multi-dexed apps. This release accounts for that and ensures building with the Android agent is supports multi-dex.
Monday, October 12, 2015 - 11:30 Download

Improvements

  • Retrofit compatibility - this release of the Android SDK adds support for the current beta version of the Retrofit library (2.0.0-beta2) and addresses a crash that may have occurred previously when making an HTTP request with this beta version.
Thursday, September 3, 2015 - 10:30 Download

Improvements

  • This release adds a new API method withApplicationBuild(String build) which replaces the now deprecated method, withBuildIdentifier(String build). The functionality remains the same, allowing the application build to be set rather than relying on the versionCode. See Android API documentation for details.
  • Log messages from the Android SDK have been updated to reflect updated New Relic support team contact information.

Fixes

  • This release improves UI performance when an app has crashed and that crash is being sent to New Relic.
  • The logic for sampling memory and CPU resources during an interaction trace was improved to limit the use of system resources.
  • A crash was addressed in a rare instance when the Apache BasicHttpRequest library was used for networking purposes.
Wednesday, August 5, 2015 - 10:30 Download

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
Wednesday, July 29, 2015 - 15:30 Download

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.
Friday, June 19, 2015 - 13:30 Download

Fixes

  • Resolves an issue where the connection type used by the app may have been incorrectly reported. 
Friday, June 5, 2015 - 15:45 Download

Notes

  • Resolves a compatibility issue that may occur when running apps on Android M preview. 
Wednesday, June 3, 2015 - 09:45 Download

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. If versionCode 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 from versionCode.
  •  Updates to unique ID management to improve accuracy of unique device counts.
Tuesday, May 19, 2015 - 11:00 Download

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.

 

Friday, May 1, 2015 - 17:00 Download

Fixes

Friday, May 1, 2015 - 09:00 Download

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.

 

Wednesday, April 8, 2015 - 15:00 Download

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

 

Wednesday, March 4, 2015 - 15:00 Download

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

 

Thursday, February 19, 2015 - 09:00 Download

Improvements

  • A custom application version can now be set using the new method NewRelic.withApplicationVersion(String appVersion)
  • Added the method NewRelic.recordMetric(String name, String category) to allow recording a custom metric with just a name and category, the value defaulted to 1. 

Notes

  • This release supports Android 2.2+. Future releases will require 2.3+. 

 

Thursday, February 5, 2015 - 15:30 Download

Improvements

  • Improved instrumentation of the OkHttp library v1.6 to include support for OkURLFactory

Notes

  • This will be the last release of the Android SDK to support Android 2.2. Future versions will require 2.3+.
Thursday, January 8, 2015 - 12:30 Download

Fixes

  • Addresses an issue that may have caused an upgraded application to continue reporting the older version of the application to New Relic.
  • Corrects a potential RuntimeException when the HEAD method was used in an HTTP request.
  • Resolves an IllegalArgumentException that could have occurred in the edge case where the start or end time of an HTTP transaction was invalid.

Pages