Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Problem with navBarHidden in Android with SDK 3.3.0

$
0
0

I've been developing a simple android application and everything was fine before I've updated the SDK version to 3.3.0.

My problems are related to Window.navBarHidden attribute.

As seen in the docs - it's no longer possible to define that attribute on the Window object. I followed the suggested workaround and placed the navBarHidden inside the theme.xml file.

After that I'm unable to do a couple of things. One that is really bugging me now is that I'm unable to fire any events programmatically.


Ti.fireEvent("app:changed", {test: 'test'} );

produces the following stacktrace:

W/System.err(2186): java.lang.NullPointerException

W/System.err(2186): at android.support.v7.app.ActionBarImplICS.getTitle(ActionBarImplICS.java:214)

W/System.err(2186): at android.support.v7.app.ActionBarImplJB.getTitle(ActionBarImplJB.java:20)

W/System.err(2186): at org.appcelerator.titanium.proxy.ActionBarProxy.getTitle(ActionBarProxy.java:176)

W/System.err(2186): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)

W/System.err(2186): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:64)

W/System.err(2186): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:884)

W/System.err(2186): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1107)

W/System.err(2186): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:347)

From the trace I guess that this is related to the theme.xml navBarHidden trick (as everything was fine with SDK 3.2.X).

Is this a known issue? Any workarounds for it?

Application type: mobile

Titanium SDK: 3.3.0

Device: Android emulator

Host Operating System: OSX 10.X


Viewing all articles
Browse latest Browse all 7655

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>