OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chromoting; | 5 package org.chromium.chromoting; |
6 | 6 |
7 import android.accounts.Account; | 7 import android.accounts.Account; |
8 import android.accounts.AccountManager; | 8 import android.accounts.AccountManager; |
9 import android.accounts.AccountManagerCallback; | 9 import android.accounts.AccountManagerCallback; |
10 import android.accounts.AccountManagerFuture; | 10 import android.accounts.AccountManagerFuture; |
11 import android.accounts.AuthenticatorException; | 11 import android.accounts.AuthenticatorException; |
12 import android.accounts.OperationCanceledException; | 12 import android.accounts.OperationCanceledException; |
13 import android.app.Activity; | 13 import android.app.Activity; |
14 import android.content.Context; | 14 import android.content.Context; |
15 import android.content.Intent; | 15 import android.content.Intent; |
16 import android.content.SharedPreferences; | 16 import android.content.SharedPreferences; |
17 import android.os.Bundle; | 17 import android.os.Bundle; |
18 import android.os.Handler; | 18 import android.os.Handler; |
19 import android.os.HandlerThread; | 19 import android.os.HandlerThread; |
20 import android.text.Html; | 20 import android.text.Html; |
21 import android.util.Log; | 21 import android.util.Log; |
22 import android.view.Menu; | 22 import android.view.Menu; |
23 import android.view.MenuItem; | 23 import android.view.MenuItem; |
24 import android.view.View; | 24 import android.view.View; |
25 import android.view.ViewGroup; | 25 import android.view.ViewGroup; |
26 import android.widget.ArrayAdapter; | 26 import android.widget.ArrayAdapter; |
| 27 import android.widget.ListView; |
27 import android.widget.TextView; | 28 import android.widget.TextView; |
28 import android.widget.ListView; | |
29 import android.widget.Toast; | 29 import android.widget.Toast; |
30 | 30 |
31 import org.chromium.chromoting.jni.JniInterface; | 31 import org.chromium.chromoting.jni.JniInterface; |
32 import org.json.JSONArray; | 32 import org.json.JSONArray; |
33 import org.json.JSONException; | 33 import org.json.JSONException; |
34 import org.json.JSONObject; | 34 import org.json.JSONObject; |
35 | 35 |
36 import java.io.IOException; | 36 import java.io.IOException; |
37 import java.net.URL; | 37 import java.net.URL; |
38 import java.net.URLConnection; | 38 import java.net.URLConnection; |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 Toast.LENGTH_LONG).show(); | 414 Toast.LENGTH_LONG).show(); |
415 | 415 |
416 // Close the application. | 416 // Close the application. |
417 finish(); | 417 finish(); |
418 } | 418 } |
419 | 419 |
420 return target; | 420 return target; |
421 } | 421 } |
422 } | 422 } |
423 } | 423 } |
OLD | NEW |