summaryrefslogtreecommitdiffstats
path: root/apps/Development
diff options
context:
space:
mode:
authorSreeram Ramachandran <sreeram@google.com>2014-06-03 18:53:38 -0700
committerSreeram Ramachandran <sreeram@google.com>2014-06-06 14:51:59 -0700
commit732d646f5185c0fe2da14a8902862c9413bdf4d7 (patch)
tree82678cb723e108c9734fea200f2b0df36b994a0c /apps/Development
parent319d36a9d1f425d3044215f109a0e70cfdb2b034 (diff)
downloadandroid_development-732d646f5185c0fe2da14a8902862c9413bdf4d7.tar.gz
android_development-732d646f5185c0fe2da14a8902862c9413bdf4d7.tar.bz2
android_development-732d646f5185c0fe2da14a8902862c9413bdf4d7.zip
Use the updated RouteInfo API.
Bug: 15142362 Bug: 13885501 Change-Id: I97f1625e037c889b0cddd3db418c42c1d48b26b9
Diffstat (limited to 'apps/Development')
-rw-r--r--apps/Development/src/com/android/development/Connectivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/Development/src/com/android/development/Connectivity.java b/apps/Development/src/com/android/development/Connectivity.java
index 55e53500c..accdbf09d 100644
--- a/apps/Development/src/com/android/development/Connectivity.java
+++ b/apps/Development/src/com/android/development/Connectivity.java
@@ -28,6 +28,7 @@ import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.ConnectivityManager;
+import android.net.LinkAddress;
import android.net.NetworkUtils;
import android.net.RouteInfo;
import android.net.wifi.ScanResult;
@@ -525,7 +526,7 @@ public class Connectivity extends Activity {
private void onAddDefaultRoute() {
try {
int netId = Integer.valueOf(((TextView) findViewById(R.id.netid)).getText().toString());
- mNetd.addRoute(netId, new RouteInfo(null,
+ mNetd.addRoute(netId, new RouteInfo((LinkAddress) null,
NetworkUtils.numericToInetAddress("8.8.8.8")));
} catch (Exception e) {
Log.e(TAG, "onAddDefaultRoute got exception: " + e.toString());
@@ -535,7 +536,7 @@ public class Connectivity extends Activity {
private void onRemoveDefaultRoute() {
try {
int netId = Integer.valueOf(((TextView) findViewById(R.id.netid)).getText().toString());
- mNetd.removeRoute(netId, new RouteInfo(null,
+ mNetd.removeRoute(netId, new RouteInfo((LinkAddress) null,
NetworkUtils.numericToInetAddress("8.8.8.8")));
} catch (Exception e) {
Log.e(TAG, "onRemoveDefaultRoute got exception: " + e.toString());