Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Screen lock Window too slow to open

$
0
0

I'm trying to set a lock on the screen with an alpha window while a new window is being loaded for android.

So these are my steps: -> open first view -> sets/creates a window (lockscreen) with alpha background as a global variable

-------------------- this part where it matters --------------

-> user presses the button

-> lockscreenis open ( but it does not render )

-> next view starts being generated with Alloy.createController('view2').getView().open()

-> lockscreen is set to close


So my problems. The lock screen is too slow to open.

So what i did was to set lockscreen(callback) and then call lockScreen( new function() {Alloy.createController('view2').getView().open() } );

but didn't seemed to make anything.

In one test i've removed the alloy.createController , and placed a breakpoint on the close of the lockscreen, and the lockscreen was not being rendered.

I cant understand why a click takes soo long to generate a window that was "already" configured from the start.

Can someone explain me?

Also, I cant remember how to make a "newline" here at q&a ;p

Thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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