View Full Version : Launching a Sencha app loaded by appMobi only shows a blackscreen.

27 Oct 2011, 1:45 PM
I've also posted the question on the appmobi forums (http://forums.appmobi.com/viewtopic.php?f=8&t=606&p=2721#p2721), but the recommendations there aren't working.

In chrome and from the iPhone, the web-app loaded in safari works fine, seen here (http://wendler.mobi/mobile/).

In order to get around the black screen, I tried this:

<script type="text/javascript">
document.addEventListener("appMobi.device.ready", wendler.launch, false);

"use strict";
wendler.launched = false;
wendler.launch = function() {
if (!wendler.readyToStart()) return;
new Ext.TabPanel({...items: [...]});
wendler.readyToStart = function() {
var appMobiStarted = typeof(AppMobi) !== 'undefined' ? AppMobi.device : true;
return (wendler.launched && appMobiStarted);
wendler.hideLoader = function(){if( typeof(AppMobi) !== 'undefined' && typeof(AppMobi.device) !== 'undefined' ){AppMobi.device.hideSplashScreen();}};

Ext.regApplication({...launch: function() {wendler.launched = true;wendler.launch();}});

No matter what I try, I only get a black screen when I build an APK and load in the android emulator. What am I doing wrong here? What do I need to do to deploy with appMobi?

2 Nov 2011, 6:48 AM
Did you follow the sets that appMobiIan suggested?
Also, you mentioned you are loading the apk into an emulator. While it may/should work, it is not supported at this point in time. Try loading it on an actual 2.1 or 2.2 device.