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

Webview best practice example

$
0
0

Hey, Could anyone give some advice or reference where I can find some tips on how to properly use webview component in Titanium/Alloy. Except for the recomendations in docs and wiki - they weren't too helpful in my case. The thing is, when I try to create the simplest webview alloy implementation like the following:

index.xml
<Alloy>
    <Window >
        <WebView id="webview" url="http://www.appcelerator.com" />
    </Window>
</Alloy>
index.js
$.index.open();

After building and installing this example on Galaxy S2 , phone's android CPU monitor steadily shows extreme CPU overload (approx 50%) caused by the app. And as a result phone rapidly discharges and even overheats. Any titanium app without webview works without this issue

I really didn't manage to find any similar concerns so hopefully I'm doing something wrong or just missed something.

If you have any ideas why's this happening, please, share. 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>