Example of some SmartWatch2 functions like Locking the device (must enable device administrator else force close), vibration, brightness, custom menus. modified sony sample code (c) sony. if copyright violated please email me. thanks.
ExampleSmartWatch2 is hosted in the following web site
https://github.com/The1andONLYdave/ExampleSmartWatch2
If you think the Android project ExampleSmartWatch2 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of ExampleSmartWatch2.
Item | Value |
---|---|
Java File Count | 53 |
Supported screen sizes | [nodpi] |
Target SDK Version | 18 |
Minimum SDK Version | 8 |
Activity Count | 1 |
Required Permissions | com.sonyericsson.extras.liveware.aef.EXTENSION_PERMISSION |
There are 18 image files in ExampleSmartWatch2. The names of the image files are listed as follows.
actions_call.png actions_reply.png actions_view_in_phone.png background_style_1.png badge_counter.png icon_extension.png icon_extension48.png left_bottom.png left_bottom_selected.png left_top.png left_top_selected.png right_bottom.png right_bottom_selected.png right_top.png right_top_selected.png sample_control_widget_anim.png text_bg.png widget_frame.png
The following screenshort is generated from the image listed above.
ExampleSmartWatch2 has the following Java source files.
com.sonyericsson.extras.liveware.aef.control.Control.java com.sonyericsson.extras.liveware.aef.notification.Notification.java com.sonyericsson.extras.liveware.aef.registration.Registration.java com.sonyericsson.extras.liveware.aef.sensor.Sensor.java com.sonyericsson.extras.liveware.aef.widget.Widget.java com.sonyericsson.extras.liveware.extension.util.AefTextView.java com.sonyericsson.extras.liveware.extension.util.Dbg.java com.sonyericsson.extras.liveware.extension.util.ExtensionService.java com.sonyericsson.extras.liveware.extension.util.ExtensionUtils.java com.sonyericsson.extras.liveware.extension.util.SmartWatchConst.java com.sonyericsson.extras.liveware.extension.util.SmartWirelessHeadsetProUtil.java com.sonyericsson.extras.liveware.extension.util.control.ControlExtension.java com.sonyericsson.extras.liveware.extension.util.control.ControlListItem.java com.sonyericsson.extras.liveware.extension.util.control.ControlObjectClickEvent.java com.sonyericsson.extras.liveware.extension.util.control.ControlTouchEvent.java com.sonyericsson.extras.liveware.extension.util.control.ControlView.java com.sonyericsson.extras.liveware.extension.util.control.ControlViewGroup.java com.sonyericsson.extras.liveware.extension.util.notification.DelayedContentObserver.java com.sonyericsson.extras.liveware.extension.util.notification.NotificationUtil.java com.sonyericsson.extras.liveware.extension.util.registration.DeviceInfo.java com.sonyericsson.extras.liveware.extension.util.registration.DeviceInfoHelper.java com.sonyericsson.extras.liveware.extension.util.registration.DisplayInfo.java com.sonyericsson.extras.liveware.extension.util.registration.HostApplicationInfo.java com.sonyericsson.extras.liveware.extension.util.registration.IRegisterCallback.java com.sonyericsson.extras.liveware.extension.util.registration.InputInfo.java com.sonyericsson.extras.liveware.extension.util.registration.KeyPadInfo.java com.sonyericsson.extras.liveware.extension.util.registration.RegisterExtensionTask.java com.sonyericsson.extras.liveware.extension.util.registration.RegistrationAdapter.java com.sonyericsson.extras.liveware.extension.util.registration.RegistrationInformation.java com.sonyericsson.extras.liveware.extension.util.sensor.AccessorySensor.java com.sonyericsson.extras.liveware.extension.util.sensor.AccessorySensorEvent.java com.sonyericsson.extras.liveware.extension.util.sensor.AccessorySensorEventListener.java com.sonyericsson.extras.liveware.extension.util.sensor.AccessorySensorException.java com.sonyericsson.extras.liveware.extension.util.sensor.AccessorySensorManager.java com.sonyericsson.extras.liveware.extension.util.sensor.AccessorySensorType.java com.sonyericsson.extras.liveware.extension.util.widget.NotificationWidgetEvent.java com.sonyericsson.extras.liveware.extension.util.widget.NotificationWidgetExtension.java com.sonyericsson.extras.liveware.extension.util.widget.SmartWatchNotificationWidgetImage.java com.sonyericsson.extras.liveware.extension.util.widget.SmartWatchWidgetImage.java com.sonyericsson.extras.liveware.extension.util.widget.WidgetExtension.java com.sonymobile.smartconnect.extension.controlsample.ExtensionReceiver.java com.sonymobile.smartconnect.extension.controlsample.SampleExtensionService.java com.sonymobile.smartconnect.extension.controlsample.SamplePreferenceActivity.java com.sonymobile.smartconnect.extension.controlsample.SampleRegistrationInformation.java com.sonymobile.smartconnect.extension.controlsample.Vibrator.java