From e7db97a472aea5f958df3058703b46a37df19a53 Mon Sep 17 00:00:00 2001 From: Herbert von Broeuschmeul Date: Wed, 19 Jan 2011 01:34:46 +0100 Subject: Change app and notification icons Used icons inspired from XlAfbk's proposition: http://forum.xda-developers.com/showpost.php?p=10277778&postcount=29 --- AndroidManifest.xml | 2 +- res/drawable-hdpi/gplv3_icon.png | Bin 0 -> 2986 bytes res/drawable-hdpi/ic_launcher_bluegps.png | Bin 0 -> 4511 bytes res/drawable-hdpi/ic_stat_notify.png | Bin 0 -> 1780 bytes res/drawable-ldpi/gplv3_icon.png | Bin 0 -> 2986 bytes res/drawable-ldpi/ic_launcher_bluegps.png | Bin 0 -> 2022 bytes res/drawable-ldpi/ic_stat_notify.png | Bin 0 -> 805 bytes res/drawable-mdpi/gplv3_icon.png | Bin 0 -> 2986 bytes res/drawable-mdpi/ic_launcher_bluegps.png | Bin 0 -> 2849 bytes res/drawable-mdpi/ic_stat_notify.png | Bin 0 -> 1095 bytes res/drawable/ic_launcher_bluegps.png | Bin 0 -> 2849 bytes res/drawable/ic_stat_notify.png | Bin 0 -> 1095 bytes res/drawable/icon.png | Bin 2574 -> 0 bytes .../gps/bluetooth/provider/BlueetoothGpsManager.java | 4 ++-- .../bluetooth/provider/BluetoothGpsProviderService.java | 2 +- version.txt | 3 +-- 16 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 res/drawable-hdpi/gplv3_icon.png create mode 100644 res/drawable-hdpi/ic_launcher_bluegps.png create mode 100644 res/drawable-hdpi/ic_stat_notify.png create mode 100644 res/drawable-ldpi/gplv3_icon.png create mode 100644 res/drawable-ldpi/ic_launcher_bluegps.png create mode 100644 res/drawable-ldpi/ic_stat_notify.png create mode 100644 res/drawable-mdpi/gplv3_icon.png create mode 100644 res/drawable-mdpi/ic_launcher_bluegps.png create mode 100644 res/drawable-mdpi/ic_stat_notify.png create mode 100644 res/drawable/ic_launcher_bluegps.png create mode 100644 res/drawable/ic_stat_notify.png delete mode 100644 res/drawable/icon.png diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d9b0603..ac51b16 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -22,7 +22,7 @@ package="org.broeuschmeul.android.gps.bluetooth.provider" android:versionCode="120" android:versionName="@string/versionName"> - + diff --git a/res/drawable-hdpi/gplv3_icon.png b/res/drawable-hdpi/gplv3_icon.png new file mode 100644 index 0000000..b06e043 Binary files /dev/null and b/res/drawable-hdpi/gplv3_icon.png differ diff --git a/res/drawable-hdpi/ic_launcher_bluegps.png b/res/drawable-hdpi/ic_launcher_bluegps.png new file mode 100644 index 0000000..2c3c54a Binary files /dev/null and b/res/drawable-hdpi/ic_launcher_bluegps.png differ diff --git a/res/drawable-hdpi/ic_stat_notify.png b/res/drawable-hdpi/ic_stat_notify.png new file mode 100644 index 0000000..dc5f209 Binary files /dev/null and b/res/drawable-hdpi/ic_stat_notify.png differ diff --git a/res/drawable-ldpi/gplv3_icon.png b/res/drawable-ldpi/gplv3_icon.png new file mode 100644 index 0000000..b06e043 Binary files /dev/null and b/res/drawable-ldpi/gplv3_icon.png differ diff --git a/res/drawable-ldpi/ic_launcher_bluegps.png b/res/drawable-ldpi/ic_launcher_bluegps.png new file mode 100644 index 0000000..f3576ff Binary files /dev/null and b/res/drawable-ldpi/ic_launcher_bluegps.png differ diff --git a/res/drawable-ldpi/ic_stat_notify.png b/res/drawable-ldpi/ic_stat_notify.png new file mode 100644 index 0000000..59c05da Binary files /dev/null and b/res/drawable-ldpi/ic_stat_notify.png differ diff --git a/res/drawable-mdpi/gplv3_icon.png b/res/drawable-mdpi/gplv3_icon.png new file mode 100644 index 0000000..b06e043 Binary files /dev/null and b/res/drawable-mdpi/gplv3_icon.png differ diff --git a/res/drawable-mdpi/ic_launcher_bluegps.png b/res/drawable-mdpi/ic_launcher_bluegps.png new file mode 100644 index 0000000..1bd9013 Binary files /dev/null and b/res/drawable-mdpi/ic_launcher_bluegps.png differ diff --git a/res/drawable-mdpi/ic_stat_notify.png b/res/drawable-mdpi/ic_stat_notify.png new file mode 100644 index 0000000..31ef160 Binary files /dev/null and b/res/drawable-mdpi/ic_stat_notify.png differ diff --git a/res/drawable/ic_launcher_bluegps.png b/res/drawable/ic_launcher_bluegps.png new file mode 100644 index 0000000..1bd9013 Binary files /dev/null and b/res/drawable/ic_launcher_bluegps.png differ diff --git a/res/drawable/ic_stat_notify.png b/res/drawable/ic_stat_notify.png new file mode 100644 index 0000000..31ef160 Binary files /dev/null and b/res/drawable/ic_stat_notify.png differ diff --git a/res/drawable/icon.png b/res/drawable/icon.png deleted file mode 100644 index a07c69f..0000000 Binary files a/res/drawable/icon.png and /dev/null differ diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java index 39a0bf4..1917f77 100644 --- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java +++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java @@ -185,14 +185,14 @@ public class BlueetoothGpsManager { parser.setLocationManager(locationManager); connectionProblemNotification = new Notification(); - connectionProblemNotification.icon = R.drawable.icon; + connectionProblemNotification.icon = R.drawable.ic_stat_notify; Intent stopIntent = new Intent(BluetoothGpsProviderService.ACTION_STOP_GPS_PROVIDER); // PendingIntent stopPendingIntent = PendingIntent.getService(appContext, 0, stopIntent, PendingIntent.FLAG_CANCEL_CURRENT); PendingIntent stopPendingIntent = PendingIntent.getService(appContext, 0, stopIntent, PendingIntent.FLAG_CANCEL_CURRENT); connectionProblemNotification.contentIntent = stopPendingIntent; serviceStoppedNotification = new Notification(); - serviceStoppedNotification.icon=R.drawable.icon; + serviceStoppedNotification.icon=R.drawable.ic_stat_notify; Intent restartIntent = new Intent(BluetoothGpsProviderService.ACTION_START_GPS_PROVIDER); PendingIntent restartPendingIntent = PendingIntent.getService(appContext, 0, restartIntent, PendingIntent.FLAG_CANCEL_CURRENT); serviceStoppedNotification.setLatestEventInfo(appContext, diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java index a2f1c8d..c896008 100644 --- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java +++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BluetoothGpsProviderService.java @@ -125,7 +125,7 @@ public class BluetoothGpsProviderService extends Service implements NmeaListener } if (enabled) { gpsManager.enableMockLocationProvider(mockProvider); - Notification notification = new Notification(R.drawable.icon, this.getString(R.string.foreground_gps_provider_started_notification), System.currentTimeMillis()); + Notification notification = new Notification(R.drawable.ic_stat_notify, this.getString(R.string.foreground_gps_provider_started_notification), System.currentTimeMillis()); Intent myIntent = new Intent(this, BluetoothGpsActivity.class); PendingIntent myPendingIntent = PendingIntent.getActivity(this, 0, myIntent, PendingIntent.FLAG_CANCEL_CURRENT); notification.setLatestEventInfo(getApplicationContext(), this.getString(R.string.foreground_service_started_notification_title), this.getString(R.string.foreground_gps_provider_started_notification), myPendingIntent); diff --git a/version.txt b/version.txt index 4b2d495..fd0c7ba 100644 --- a/version.txt +++ b/version.txt @@ -3,8 +3,7 @@ BlueGps4Droid 1.2.0 (2010-12-10) * Add verifications: if bluetooth or mock locations are not enabled, the service is not started. * Add alert messages to explain why the service cannot be started if bluetooth or mock locations are not enabled * If device doesn't have an internal GPS, the bluetooth GPS provider is enabled automatically - * Add an about window that gives the version of application, licensing information and where the sources may be downloaded. - + * Add an about window that gives the version of application, licensing information and where the sources may be downloaded. BlueGps4Droid 1.2 alpha (2010-10-25) * SiRF configuration management (NMEA sentences - SBAS - Static Navigation) -- cgit v1.1