Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ShowcaseView with the v7 appcompat ActionBar

I'm using the ShowcaseView android library to add a welcome screen when my app is first launched.

Now, on 4.0+ (and possibly 3.0, however I haven't got a device to test it) it works perfectly, however on Gingerbread, the app crashes with the following error.

09-10 15:30:31.182    1650-1650/net.rymate.notes E/AndroidRuntime: FATAL EXCEPTION: main
    java.lang.RuntimeException: insertShowcaseViewWithType cannot be used when the theme has no ActionBar
    at com.github.espiandev.showcaseview.ShowcaseView$2.run(ShowcaseView.java:231)
    at android.os.Handler.handleCallback(Handler.java:587)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:130)
    at android.app.ActivityThread.main(ActivityThread.java:3683)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    at dalvik.system.NativeStart.main(Native Method)

Is there any way to make this work on gingerbread? I want my app to be able to work on nearly all devices, which is why I'm using a lot of support APIs.

Any help is appreciated!

like image 508
rymate1234 Avatar asked Sep 10 '13 15:09

rymate1234


2 Answers

The short answer is "not yet". Actually working on it as I type! Check the Github issue here for more information.

like image 154
Alex Curran Avatar answered Sep 28 '22 13:09

Alex Curran


Fixed in this pull request
Feel free to fork it

like image 45
maxcanna Avatar answered Sep 28 '22 12:09

maxcanna