diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index b7f6691..9a5d6a0 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -2,7 +2,7 @@ + android:versionName="2.1.0"> diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml index 1356ee4..1d50cec 100644 --- a/android/res/values/strings.xml +++ b/android/res/values/strings.xml @@ -1,34 +1,83 @@ + Chrome to Phone + + Back + + Next + + Exit + + Select an account to use: + + There are no accounts setup on this phone. + + Click Next to establish the connection between Chrome and this phone. + + (Note: Chrome to Phone does not currently support Google Apps accounts). + + Connecting... + + If you no longer want to send links to this phone, press the button below. + + Disconnecting... + + Error: Unable to connect. + + Error: Google Apps accounts not supported. + + Finish + + Please set your link action preference: + + Automatically launch links + + Let me launch links manually + + Set-up complete. 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 + + Error: Unable to disconnect. + + Help + + Copied desktop clipboard + + Chrome to Phone lets you easily share links, maps, and currently selected phone numbers and text between your computer and your phone. <br><br>You need to install the Chrome @@ -41,6 +90,8 @@ <a href="{tos_link}">Terms of Service</a> and <a href="{pp_link}">Privacy Policy</a>. + + Chrome to Phone lets you easily share links, maps, and currently selected phone numbers and text between your computer and your phone. <br><br>It is comprised of two components: diff --git a/android/src/com/google/android/apps/chrometophone/C2DMReceiver.java b/android/src/com/google/android/apps/chrometophone/C2DMReceiver.java index 9e280ce..5b4250a 100644 --- a/android/src/com/google/android/apps/chrometophone/C2DMReceiver.java +++ b/android/src/com/google/android/apps/chrometophone/C2DMReceiver.java @@ -29,6 +29,7 @@ import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; +import android.media.AudioManager; import android.media.Ringtone; import android.media.RingtoneManager; import android.net.Uri; @@ -149,7 +150,6 @@ public class C2DMReceiver extends C2DMBaseReceiver { Notification notification = new Notification(icon, title, when); notification.setLatestEventInfo(context, title, msg, PendingIntent.getActivity(context, 0, intent, 0)); - notification.defaults = Notification.DEFAULT_SOUND; notification.flags |= Notification.FLAG_AUTO_CANCEL; SharedPreferences settings = Prefs.get(context); @@ -158,6 +158,7 @@ public class C2DMReceiver extends C2DMBaseReceiver { NotificationManager nm = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE); nm.notify(notificatonID, notification); + playNotificationSound(context); SharedPreferences.Editor editor = settings.edit(); editor.putInt("notificationID", ++notificatonID % 32); @@ -168,6 +169,7 @@ public class C2DMReceiver extends C2DMBaseReceiver { Uri uri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); if (uri != null) { Ringtone rt = RingtoneManager.getRingtone(context, uri); + rt.setStreamType(AudioManager.STREAM_NOTIFICATION); if (rt != null) rt.play(); } }