java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • h5. 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. h5.Actual Result: 1. The emulator for android 4.4W gets launched but the app fails to start giving errors: {code} [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 {code} h5.Expected Result: 1. As this is a new sdk & not tested for titanium apps, not sure what should be the expected result.
    via by Lokesh Choudhary,
  • h5. 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. h5.Actual Result: 1. The emulator for android 4.4W gets launched but the app fails to start giving errors: {code} [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 {code} h5.Expected Result: 1. As this is a new sdk & not tested for titanium apps, not sure what should be the expected result.
    via by Lokesh Choudhary,
  • UI Stack Traces++
    via GitHub by moxie0
    ,
  • request focus must be called error android
    via Stack Overflow by game on
    ,
  • Using custom title bar in android studio
    via by Unknown author,
    • 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. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258) at android.app.ActivityThread.access$800(ActivityThread.java:138) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5026) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) at dalvik.system.NativeStart.main(Native Method) Caused by: android.util.AndroidRuntimeException: You cannot use indeterminate progress on a watch. at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:285) at android.app.Activity.requestWindowFeature(Activity.java:3308) at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:426) at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:150) at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:108) at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:519) at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144) at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97) at android.app.Activity.performCreate(Activity.java:5242) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161) ... 11 more

    Users with the same issue

    Indri YunitaIndri Yunita
    2 times, last one,
    jkjk
    15 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Agócs TamásAgócs Tamás
    12 times, last one,
    szosziszoszi
    1 times, last one,
    6 more bugmates