FokkeZB / nl.fokkezb.loading

The widget provides a simple loading mask that can be easily styled and configured.
93 stars 18 forks source link

Hiding ActionBar in Android prevents modules from loading #17

Closed ksouthworth closed 10 years ago

ksouthworth commented 10 years ago

I'm trying to follow your readme and include the tiapp.xml snippet to hide the window action bar on Android:

 <activity android:name="org.appcelerator.titanium.TiTranslucentActivity"
    android:configChanges="keyboardHidden|orientation|screenSize"
    android:theme="@style/Theme.AppCompat.Translucent.NoTitleBar"/>
</activity>

But it seems to be preventing my other modules from loading, specifically the ti.googleanalytics module. With the XML snippet above added to tiapp.xml I get the following error when starting up the android emulator:

[INFO]  TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.webascender.dev.treadstat.TreadstatMobileActivity@528b01fc
[ERROR] TiExceptionHandler: (main) [3,3] ----- Titanium Javascript Runtime Error -----
[ERROR] TiExceptionHandler: (main) [0,3] - In ti:/module.js:280,9
[ERROR] TiExceptionHandler: (main) [0,3] - Message: Uncaught Error: Requested module not found: ti.googleanalytics
[ERROR] TiExceptionHandler: (main) [0,3] - Source:      throw new Error("Requested module not found: " + request);
[DEBUG] dalvikvm: GC_CONCURRENT freed 201K, 5% free 9057K/9448K, paused 1ms+0ms, total 4ms
[ERROR] V8Exception: Exception occurred at ti:/module.js:280: Uncaught Error: Requested module not found: ti.googleanalytics

The ti.googleanalytics module is the only module I'm referencing in the project.

FokkeZB commented 10 years ago

That's because the activity tag was a self closing one. I've corrected the README

ksouthworth commented 10 years ago

That was it! thanks, can't believe I didn't notice that either.

jasonkneen commented 8 years ago

Thanks for this! Just solved the same issue I had when merging code bases manually :)