Description:
1. After the update to the android SDK tools to ver23 you will be getting new titanium SDK for Android 4.4W (Wear) API20.
2. Create an emulator for android 4.4W in the android avd manager.
3. In studio create a default classic/alloy app.
4. Build it for android 4.4W emulator.
Actual Result:
1. The emulator for android 4.4W gets launched but the app fails to start giving errors:
[ERROR] : TiApplication: (main) [364,364] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.defapp/com.app.defapp.DefaultappActivity}: android.util.AndroidRuntimeException: You cannot use indeterminate progress on a watch.; Titanium 3.3.0,2014/06/26 14:41,0722c55
[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.defapp/com.app.defapp.DefaultappActivity}: android.util.AndroidRuntimeException: You cannot use indeterminate progress on a watch.
[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
[ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
[ERROR] : TiApplication: at android.app.ActivityThread.access$800(ActivityThread.java:138)
[ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:136)
[ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5026)
[ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:515)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
[ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method)
[ERROR] : TiApplication: Caused by: android.util.AndroidRuntimeException: You cannot use indeterminate progress on a watch.
[ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:285)
[ERROR] : TiApplication: at android.app.Activity.requestWindowFeature(Activity.java:3308)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:426)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:150)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:108)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:519)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97)
[ERROR] : TiApplication: at android.app.Activity.performCreate(Activity.java:5242)
[ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
[ERROR] : TiApplication: ... 11 more
Expected Result:
1. As this is a new sdk & not tested for titanium apps, not sure what should be the expected result.
Verified the issue is seen in CLI too & not just studio. We get the same errors in CLI as well. Environment: Appc Studio : 3.3.0.201407031747 Ti SDK : 3.3.0.v20140703093313 Mac OSX : 10.8.5 Alloy : 1.4.0-rc4 CLI - 3.3.0-rc4 Code Processor: 1.1.1 Android W emulator
3.4.0 is moved forward, and 3.5.0 is taking its place in the calendar.
Is this no longer slated for a 5.0.1 release then? When can we expect android wear to be integrated?