From 28bb8be0daaf93d0053fdeafc9de283eb7c59848 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Fri, 16 Oct 2015 16:22:36 +0900 Subject: [PATCH] Update the Connectivity debug app to the multinetwork API. 1. Stop using the deprecated startUsingNetworkFeature and use requestNetwork instead. 2. Make use of clearCapabilities(). Bug: 23597341 Change-Id: I65cb813111947d159d2bb18f0d8a93fb726912e5 --- apps/Development/res/layout/connectivity.xml | 16 ++-- apps/Development/res/values/strings.xml | 8 +- .../com/android/development/Connectivity.java | 91 ++++++++++++++----- 3 files changed, 81 insertions(+), 34 deletions(-) diff --git a/apps/Development/res/layout/connectivity.xml b/apps/Development/res/layout/connectivity.xml index 00ba508bb..8de23dab5 100644 --- a/apps/Development/res/layout/connectivity.xml +++ b/apps/Development/res/layout/connectivity.xml @@ -248,27 +248,27 @@ android:paddingTop="4dip" android:layout_width="match_parent" android:layout_height="wrap_content"> -