Archive for the ‘PhoneGap’ Category

03
Dec
  • There is a 40px gap at the bottom of the window
  • Inorder to remove the space

    Open “filename”.js and add the following code

    
    if (typeof(PhoneGap) != 'undefined')
    {
    
    $('body > *').css({minHeight: '460px   !important'});
    
    }
    

26
Nov
  • Download the PhoneGap from GitHub (http://github.com/phonegap/phonegap)
  • PhoneGap download contains a bunch of device  specific directories (e.g., android,      iphone,blackberry, windows mobile), and some library and utility files and
    directories.We currently need iphone directory

  • A new folder with our project www which contains 2 files-
    index.html
    master.css
  • If we are importing an existing project into our work space we don’t need the 2 files so delete them.
  • Instead drag the existing application files into the www
  • Double Click the PhoneGap.xcodeproj file
  • Then build and run.

    NOTES
    :
  • Go into index.html file, add the following line to the <head> section, and save the file: <script type=”text/javascript” src=”phonegap.js” charset=”utf-8″></script>
  • Verify whether the index.html file contain a manifest link,If so remove it-
    <html manifest= demo.manifest>
  • Make sure the main page for your app is named index.html; otherwise, PhoneGap won’t know what file to launch. Run the project.

24
Nov

PhoneGap is an open source development framework for building cross-platform mobile apps.It enables software programmers to build applications for mobile devices using JavaScript, HTML and CSS, instead of less-popular languages such as Objective-C.
PhoneGap currently supports development for the iPhone, HP webOS, Google Android, Windows Mobile, Symbian OS[2] and BlackBerry operating systems.
Support for recent versions, such as BlackBerry 5 and 6 and Windows Phone 7, is being implemented now.