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.

Appcelerator JIRA | Lokesh Choudhary | 2 years ago
  1. 0

    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.

    Appcelerator JIRA | 2 years ago | Lokesh Choudhary
    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.
  2. 0

    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.

    Appcelerator JIRA | 2 years ago | Lokesh Choudhary
    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.
  3. 0

    UI Stack Traces++

    GitHub | 2 years ago | moxie0
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.MediaPreviewActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    request focus must be called error android

    Stack Overflow | 3 years ago | game on
    android.util.AndroidRuntimeException: requestFeature() must be called before adding content**
  6. 0

    Using custom title bar in android studio

    Stack Overflow | 2 years ago
    android.util.AndroidRuntimeException: requestFeature() must be called before adding content
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.util.AndroidRuntimeException

    You cannot use indeterminate progress on a watch.

    at com.android.internal.policy.impl.PhoneWindow.requestFeature()
  2. Android
    PhoneWindow.requestFeature
    1. com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:285)
    1 frame
  3. Android Platform
    Activity.requestWindowFeature
    1. android.app.Activity.requestWindowFeature(Activity.java:3308)
    1 frame
  4. org.appcelerator.titanium
    TiRootActivity.onCreate
    1. org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:426)
    2. org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:150)
    3. org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:108)
    4. org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:519)
    5. org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144)
    6. org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97)
    6 frames
  5. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5242)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
    5. android.app.ActivityThread.access$800(ActivityThread.java:138)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:136)
    9. android.app.ActivityThread.main(ActivityThread.java:5026)
    9 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
    2 frames
  8. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame