Skip to content
This repository was archived by the owner on Dec 13, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding//src/com/dattasmoon/pebble/plugin/NotificationService.java=UTF-8
52 changes: 50 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,66 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dattasmoon.pebble.plugin"
android:installLocation="internalOnly"
android:versionCode="22"
android:versionName="2.8.1" >
android:versionCode="25"
android:versionName="3.0" >

<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="19" />

<uses-permission android:name="com.sonyericsson.extras.liveware.aef.EXTENSION_PERMISSION" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Locale.Dark" >
<activity
android:name="com.dattasmoon.sony.plugin.SonyPreferenceActivity"
android:label="@string/pref_sony_activity_title" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>

<service android:name="com.dattasmoon.sony.plugin.SonyExtensionService">
<intent-filter>
<action android:name="com.dattasmoon.sony.plugin.notification" />
</intent-filter>
</service>

<receiver
android:name="com.dattasmoon.sony.plugin.SonyExtensionReceiver"
android:permission="com.sonyericsson.extras.liveware.aef.HOSTAPP_PERMISSION" >
<intent-filter>

<!-- Generic extension intents. -->
<action android:name="com.sonyericsson.extras.liveware.aef.registration.EXTENSION_REGISTER_REQUEST" />
<action android:name="com.sonyericsson.extras.liveware.aef.registration.ACCESSORY_CONNECTION" />
<action android:name="android.intent.action.LOCALE_CHANGED" />

<!-- Notification intents -->
<action android:name="com.sonyericsson.extras.liveware.aef.notification.VIEW_EVENT_DETAIL" />
<action android:name="com.sonyericsson.extras.liveware.aef.notification.REFRESH_REQUEST" />

<!-- Widget intents -->
<action android:name="com.sonyericsson.extras.aef.widget.START_REFRESH_IMAGE_REQUEST" />
<action android:name="com.sonyericsson.extras.aef.widget.STOP_REFRESH_IMAGE_REQUEST" />
<action android:name="com.sonyericsson.extras.aef.widget.ONTOUCH" />
<action android:name="com.sonyericsson.extras.liveware.extension.util.widget.scheduled.refresh" />

<!-- Control intents -->
<action android:name="com.sonyericsson.extras.aef.control.START" />
<action android:name="com.sonyericsson.extras.aef.control.STOP" />
<action android:name="com.sonyericsson.extras.aef.control.PAUSE" />
<action android:name="com.sonyericsson.extras.aef.control.RESUME" />
<action android:name="com.sonyericsson.extras.aef.control.ERROR" />
<action android:name="com.sonyericsson.extras.aef.control.KEY_EVENT" />
<action android:name="com.sonyericsson.extras.aef.control.TOUCH_EVENT" />
<action android:name="com.sonyericsson.extras.aef.control.SWIPE_EVENT" />
</intent-filter>
</receiver>

<activity
android:name="com.dattasmoon.pebble.plugin.EditNotificationActivity"
android:exported="true"
Expand Down
1 change: 0 additions & 1 deletion project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@

# Project target.
target=android-17
android.library.reference.1=../locale-api
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/badge_counter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/headset_pro_cancel_icn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/headset_pro_focus_xs_icn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/headset_pro_ok_icn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/icn_18x18_message_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/icn_30x30_message_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/icon_extension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/icon_extension_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/text_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions res/drawable/twofortyfouram_locale_ic_menu_dontsave.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright 2013 two forty four a.m. LLC <http://www.twofortyfouram.com>
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
-->

<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@android:drawable/ic_menu_close_clear_cancel" />
17 changes: 17 additions & 0 deletions res/drawable/twofortyfouram_locale_ic_menu_help.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright 2013 two forty four a.m. LLC <http://www.twofortyfouram.com>
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
-->

<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@android:drawable/ic_menu_help" />
17 changes: 17 additions & 0 deletions res/drawable/twofortyfouram_locale_ic_menu_save.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright 2013 two forty four a.m. LLC <http://www.twofortyfouram.com>
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
-->

<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@android:drawable/ic_menu_save" />
Binary file added res/drawable/widget_frame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions res/layout/smart_watch_notification_widget.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="@dimen/smart_watch_widget_width_inner"
android:layout_height="@dimen/smart_watch_widget_height_inner">

<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitXY"
android:id="@+id/smart_watch_notification_widget_background" />

<ImageView
android:layout_width="@dimen/smart_watch_widget_text_background_width"
android:layout_height="@dimen/smart_watch_widget_text_background_height"
android:layout_alignParentBottom="true"
android:visibility="gone"
android:id="@+id/smart_watch_notification_widget_text_background"
android:scaleType="fitEnd"
android:src="@drawable/text_bg" />

<com.sonyericsson.extras.liveware.extension.util.AefTextView
android:layout_width="76px"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginLeft="3px"
android:id="@+id/smart_watch_notification_widget_text_time"
android:textSize="@dimen/smart_watch_text_size_widget_time"
android:textColor="@color/smart_watch_text_color_grey" />

<com.sonyericsson.extras.liveware.extension.util.AefTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/smart_watch_notification_widget_text_time"
android:layout_marginBottom="16px"
android:layout_alignLeft="@id/smart_watch_notification_widget_text_time"
android:id="@+id/smart_watch_notification_widget_text_title"
android:textSize="@dimen/smart_watch_text_size_small"
android:textColor="@android:color/white" />

<com.sonyericsson.extras.liveware.extension.util.AefTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/smart_watch_notification_widget_text_title"
android:layout_marginBottom="17px"
android:layout_alignLeft="@id/smart_watch_notification_widget_text_time"
android:id="@+id/smart_watch_notification_widget_text_name"
android:textSize="@dimen/smart_watch_text_size_normal"
android:textColor="@android:color/white" />

</RelativeLayout>
60 changes: 60 additions & 0 deletions res/layout/smart_watch_widget.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="@dimen/smart_watch_widget_width_outer"
android:layout_height="@dimen/smart_watch_widget_height_outer">

<ImageView
android:layout_width="108px"
android:layout_height="108px"
android:layout_centerInParent="true"
android:src="@drawable/widget_frame" />

<ImageView
android:layout_width="@dimen/smart_watch_widget_width_inner"
android:layout_height="@dimen/smart_watch_widget_height_inner"
android:layout_centerInParent="true"
android:id="@+id/smart_watch_widget_custom_image" />

<TextView
android:layout_width="88px"
android:layout_height="88px"
android:maxLines="5"
android:layout_centerInParent="true"
android:textSize="@dimen/smart_watch_text_size_small"
android:textColor="@android:color/white"
android:id="@+id/smart_watch_widget_custom_text_view"
android:gravity="center_vertical|center_horizontal" />

<ImageView
android:layout_width="30px"
android:layout_height="30px"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="1px"
android:layout_marginRight="1px"
android:id="@+id/smart_watch_widget_icon" />

<ImageView
android:visibility="gone"
android:layout_width="32px"
android:layout_height="22px"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="8px"
android:id="@+id/smart_watch_widget_event_counter_badge"
android:src="@drawable/badge_counter" />

<TextView
android:visibility="gone"
android:layout_width="32px"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/smart_watch_widget_event_counter_badge"
android:layout_alignTop="@+id/smart_watch_widget_event_counter_badge"
android:layout_marginTop="1px"
android:textSize="@dimen/smart_watch_text_size_small"
android:textColor="@android:color/white"
android:id="@+id/smart_watch_widget_event_counter_text"
android:gravity="center_horizontal" />

</RelativeLayout>
47 changes: 47 additions & 0 deletions res/menu/twofortyfouram_locale_help_save_dontsave.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright 2013 two forty four a.m. LLC <http://www.twofortyfouram.com>
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
-->

<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" >

<!-- Menu item to cancel the result. This should set the Activity result to RESULT_CANCELED and immediately finish the Activity. -->

<item
android:id="@id/twofortyfouram_locale_menu_dontsave"
android:icon="@drawable/twofortyfouram_locale_ic_menu_dontsave"
android:showAsAction="ifRoom|withText"
android:title="@string/twofortyfouram_locale_menu_dontsave"/>

<!--
Menu item to save the result. This should set the Activity result to RESULT_OK, with proper blurb and bundle extras,
and immediately finish the Activity.
-->

<item
android:id="@id/twofortyfouram_locale_menu_save"
android:icon="@drawable/twofortyfouram_locale_ic_menu_save"
android:showAsAction="ifRoom|withText"
android:title="@string/twofortyfouram_locale_menu_save"/>

<!-- Menu item to launch the Help. It should launch the web browser using ACTION_VIEW with the data set to a URL. -->

<item
android:id="@id/twofortyfouram_locale_menu_help"
android:icon="@drawable/twofortyfouram_locale_ic_menu_help"
android:showAsAction="never"
android:title="@string/twofortyfouram_locale_menu_help"
android:visible="false"/>

</menu>
23 changes: 23 additions & 0 deletions res/values-v11/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright 2013 two forty four a.m. LLC <http://www.twofortyfouram.com>
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
-->
<resources>

<style name="Theme.Locale.Dark" parent="android:Theme.Holo" />

<style name="Theme.Locale.Light" parent="android:Theme.Holo.Light" />

<style name="Theme.Locale.Dialog" parent="android:Theme.Holo.Dialog" />

</resources>
23 changes: 23 additions & 0 deletions res/values-v14/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright 2013 two forty four a.m. LLC <http://www.twofortyfouram.com>
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
-->
<resources>

<style name="Theme.Locale.Dark" parent="android:Theme.DeviceDefault" />

<style name="Theme.Locale.Light" parent="android:Theme.DeviceDefault.Light" />

<style name="Theme.Locale.Dialog" parent="android:Theme.DeviceDefault.Dialog" />

</resources>
26 changes: 26 additions & 0 deletions res/values-v9/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
** Copyright 2013 two forty four a.m. LLC <http://www.twofortyfouram.com>
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
-->
<resources>

<style name="Theme.Locale.Dark" parent="android:Theme">
<item name="android:listViewStyle">@style/MotorolaListViewHackStyle</item>
</style>

<!-- Stupid Motorola. This is a hack to avoid hideous ListViews on Motoblur devices. http://community.developer.motorola.com/t5/MOTODEV-Blog/Why-Does-My-ListView-Look-Different/ba-p/17462 -->
<style name="MotorolaListViewHackStyle" parent="@android:style/Widget.ListView">
<item name="android:overScrollFooter">@null</item>
</style>

</resources>
7 changes: 7 additions & 0 deletions res/values/sony_addon_sdk_headset_pro.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Constants for Smart Wireless Headset pro. -->
<resources>
<dimen name="headset_pro_text_size">14px</dimen>
<dimen name="headset_pro_control_width">128px</dimen>
<dimen name="headset_pro_control_height">36px</dimen>
</resources>
Loading