diff --git a/android/res/layout/select_launch_mode.xml b/android/res/layout/select_launch_mode.xml
index c4b37f8..25370dc 100644
--- a/android/res/layout/select_launch_mode.xml
+++ b/android/res/layout/select_launch_mode.xml
@@ -11,15 +11,6 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dip"/>
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml
index cee3b7a..62b2936 100644
--- a/android/res/values/strings.xml
+++ b/android/res/values/strings.xml
@@ -9,28 +9,34 @@
Click Next to establish the connection between Chrome and this phone.Connecting...Disconnecting...
- Your phone is now connected to Chrome.Error: Unable to connect.Error: Google Apps accounts not supported.FinishPlease set your link action preference:Automatically launch linksLet me launch links manually
+
+ Congratulations! Your phone is now connected and ready to receive links from Chrome. <br><br>
+ If you have not already done so, you now need to install the Chrome Extension by visiting the
+ Chrome Extension gallery on your desktop at<br>http://chrome.google.com/extensions/
+ and searching for "Chrome to Phone".
+ Your phone is connected to Chrome using this account:Link action preference:
- Disconnect phone
+ DisconnectError: Unable to disconnect.Help
Chrome to Phone lets you easily share links, maps, and selected phone numbers and text
between your computer and your phone. <br><br>You need to install the Chrome
browser extension on your computer to send links to your phone. The browser extension
- can be downloaded from the Chrome extension gallery at http://chrome.google.com/extensions/
- <br><br>There are just 3 simple steps to complete the set up on your phone:
- <br><br>1. Choose the Google Account to use.<br>2. Connect your Chrome and your
- phone.<br>3. Set your link action preference.<br><br>
- <a href="http://m.google.com/tos">Terms of Service</a><br><br>
- <a href="http://m.google.com/privacy">Privacy</a>
+ can be downloaded from the Chrome extension gallery at http://chrome.google.com/extensions/.
+ Simply search for "Chrome to Phone".<br><br>There are just 3 simple steps to complete
+ the set up on your phone: <br><br>1. Choose the Google Account to use.<br>
+ 2. Connect your Chrome and your phone.<br>3. Set your link action preference.<br><br>
+ By using this application, you agree to the <br>
+ <a href="http://m.google.com/tos">Terms of Service</a> and
+ <a href="http://m.google.com/privacy">Privacy Policy</a>
Chrome to Phone lets you easily share links, maps, and selected phone numbers and text
diff --git a/android/src/com/google/android/apps/chrometophone/MainActivity.java b/android/src/com/google/android/apps/chrometophone/MainActivity.java
index 2e5032f..5369a3b 100644
--- a/android/src/com/google/android/apps/chrometophone/MainActivity.java
+++ b/android/src/com/google/android/apps/chrometophone/MainActivity.java
@@ -115,22 +115,28 @@ public class MainActivity extends Activity {
mScreenId = screenId;
setContentView(screenId);
switch (screenId) {
- case R.layout.intro: {
- setIntroScreenContent();
- break;
- }
- case R.layout.select_account: {
- setSelectAccountScreenContent();
- break;
- }
- case R.layout.select_launch_mode: {
- setSelectLaunchModeScreenContent();
- break;
- }
- case R.layout.connected: {
- setConnectedScreenContent();
- break;
- }
+ // Screen shown if phone is registered/connected
+ case R.layout.connected: {
+ setConnectedScreenContent();
+ break;
+ }
+ // Ordered sequence of screens for setup
+ case R.layout.intro: {
+ setIntroScreenContent();
+ break;
+ }
+ case R.layout.select_account: {
+ setSelectAccountScreenContent();
+ break;
+ }
+ case R.layout.select_launch_mode: {
+ setSelectLaunchModeScreenContent();
+ break;
+ }
+ case R.layout.setup_complete: {
+ setSetupCompleteScreenContent();
+ break;
+ }
}
}
@@ -203,12 +209,30 @@ public class MainActivity extends Activity {
nextButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
storeLaunchModePreference();
- setScreenContent(R.layout.connected);
+ setScreenContent(R.layout.setup_complete);
}
});
- RadioButton manualButton = (RadioButton) findViewById(R.id.manual_launch);
- manualButton.setChecked(true);
+ setLaunchModePreferenceUI();
+ }
+
+ private void setSetupCompleteScreenContent() {
+ TextView textView = (TextView) findViewById(R.id.setup_complete_text);
+ textView.setText(Html.fromHtml(getString((R.string.setup_complete_text))));
+
+ Button prevButton = (Button) findViewById(R.id.prev);
+ prevButton.setOnClickListener(new OnClickListener() {
+ public void onClick(View v) {
+ setScreenContent(R.layout.select_launch_mode);
+ }
+ });
+
+ Button finishButton = (Button) findViewById(R.id.finish);
+ finishButton.setOnClickListener(new OnClickListener() {
+ public void onClick(View v) {
+ finish();
+ }
+ });
}
private void setConnectedScreenContent() {
@@ -217,13 +241,7 @@ public class MainActivity extends Activity {
statusText.setText(getString(R.string.connected_with_account_text) + " " +
prefs.getString("accountName", "error"));
- if (prefs.getBoolean("launchBrowserOrMaps", false)) {
- RadioButton automaticButton = (RadioButton) findViewById(R.id.auto_launch);
- automaticButton.setChecked(true);
- } else {
- RadioButton manualButton = (RadioButton) findViewById(R.id.manual_launch);
- manualButton.setChecked(true);
- }
+ setLaunchModePreferenceUI();
RadioGroup launchMode = (RadioGroup) findViewById(R.id.launch_mode_radio);
launchMode.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@@ -249,6 +267,17 @@ public class MainActivity extends Activity {
editor.commit();
}
+ private void setLaunchModePreferenceUI() {
+ SharedPreferences prefs = Prefs.get(this);
+ if (prefs.getBoolean("launchBrowserOrMaps", true)) {
+ RadioButton automaticButton = (RadioButton) findViewById(R.id.auto_launch);
+ automaticButton.setChecked(true);
+ } else {
+ RadioButton manualButton = (RadioButton) findViewById(R.id.manual_launch);
+ manualButton.setChecked(true);
+ }
+ }
+
private void register(String account) {
ProgressBar progressBar = (ProgressBar) findViewById(R.id.progress_bar);
progressBar.setVisibility(ProgressBar.VISIBLE);