cordova-2.0.0

Why is PhoneGap slower than Browser?

不问归期 提交于 2019-11-28 18:47:21
I'm running the same exact web app on Android under PhoneGap and under the built in Browser. The app runs fine on the built-in browser but is unbelievably slow under PhoneGap. Even basic scrolling on the page stutters under PhoneGap. Is there anything, in general, that I might be doing wrong? I was under the impression that PhoneGap just uses the same WebKit renderer as the normal Browser app, so why would the same HTML and JavaScript run much slower inside PhoneGap? P.S. This has been asked before , but due to wording I think the original question was misunderstood. Matt Zukowski I may have

How can I get the cordova InAppBrowser to provide a way for the user to close the browser when using an Android device?

一世执手 提交于 2019-11-28 17:17:32
I'm using the cordova InAppBrowser to display content from an external site in my app. When I open the browser on an iPhone, there are some buttons at the bottom of the InAppBrowser for closing it or navigating back and forth. The InAppBrowser on an Android device has no such buttons and has no obvious way for the user to close the browser. I know how to programmatically close the InAppBrowser, but how can the user close it when using an Android device? I know the user can hit the hardware back button to close the browser, but (1) that's not intuitive - the back button typically means "go back

phonegap - open link in browser

时间秒杀一切 提交于 2019-11-28 06:57:26
I use phonegap (cordova 2.2) I have link like this : <a href="http://twitter.com/foobar" target="_blank">twitter</a> On iOS - it opens link in browser(Safari) But on Android - it opens inside webview(inside my phonegap app) Is there a way to make Android work same way as iOS ? This is how I got it working using Cordova 2.2 and jQuery mobile on Android Javascript: $('.link').live('tap', function() { url = $(this).attr("rel"); loadURL(url); }); function loadURL(url){ navigator.app.loadUrl(url, { openExternal:true }); return false; } html: <a href='#' class='link' rel='http://www.someurl.com'>Go

How to call native function from cordova 3.x

孤人 提交于 2019-11-28 02:18:28
问题 How can I call a native function from cordova/phonegap webview for example for showing an ad. EDIT: OK I FUNALLY GOT IT and I'm gonna write some steps for all of you who don't know how to do that (just to spare 2 days of your lifetime :D) A) if you have just cordova/phonegap and and wish to call from js do this: 1) Replace the following code with your existing DroidGap Activity. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); //

Is there any way to check reachability test of server in jQuery

可紊 提交于 2019-11-27 20:53:33
Is there any way to check reachability test of server .If application not able to connect server then it show a alert? is there any thing method to check.. I check the internet connection .If there is no connection then i am showing a alert .But if there is an connection but there is no reachability of server than how can i handle this.? I am checking like this connection status..!! setInterval(function () { connectionStatus = navigator.onLine ? 'online' : 'offline'; if(connectionStatus=="offline"){ // alert("There is no connection"); } }, 100); $.ajax({url: "192.168.12.171", dataType: "jsonp"

how to use iscroll javascript in phone gap?

懵懂的女人 提交于 2019-11-27 20:41:49
I have tried implementing the iscroll java script for my application as a remedial process for the CSS position:fixed that does not work in android 2 and 3 versions using cordova 2.1.0 I have copied the javascript of iscroll-lite from here html code <div id="wrapper" class="wrapper"> <div id="wrapper-container" class="wrapper-container"> <div id="header" class="header"> <div id="header_title" class="header_title"> </div> <div id="abc" class="abc"><img src="img/abc.png""/> </div> </div> <div id="images" class="images"><img name="slide" src="img/abc.png" width=100%; /> </div> <div id=

Why is PhoneGap slower than Browser?

早过忘川 提交于 2019-11-27 11:39:45
问题 I'm running the same exact web app on Android under PhoneGap and under the built in Browser. The app runs fine on the built-in browser but is unbelievably slow under PhoneGap. Even basic scrolling on the page stutters under PhoneGap. Is there anything, in general, that I might be doing wrong? I was under the impression that PhoneGap just uses the same WebKit renderer as the normal Browser app, so why would the same HTML and JavaScript run much slower inside PhoneGap? P.S. This has been asked

How can I get the cordova InAppBrowser to provide a way for the user to close the browser when using an Android device?

依然范特西╮ 提交于 2019-11-27 10:24:04
问题 I'm using the cordova InAppBrowser to display content from an external site in my app. When I open the browser on an iPhone, there are some buttons at the bottom of the InAppBrowser for closing it or navigating back and forth. The InAppBrowser on an Android device has no such buttons and has no obvious way for the user to close the browser. I know how to programmatically close the InAppBrowser, but how can the user close it when using an Android device? I know the user can hit the hardware

Is there any way to check reachability test of server in jQuery

自闭症网瘾萝莉.ら 提交于 2019-11-26 20:28:57
问题 Is there any way to check reachability test of server .If application not able to connect server then it show a alert? is there any thing method to check.. I check the internet connection .If there is no connection then i am showing a alert .But if there is an connection but there is no reachability of server than how can i handle this.? I am checking like this connection status..!! setInterval(function () { connectionStatus = navigator.onLine ? 'online' : 'offline'; if(connectionStatus==