I developed a web application using phone gap framework for android platform. I only have single file called index.html, so i copied both the index.html and phonegap.js(from framework) files to the server and ran them from emulator. then i’m getting an error as below
02-24 10:46:42.540: WARN/browser(277): Console: Error: ReferenceError: Can't find variable: PluginManager http://192.168.1.25:8084/web2/phonegap.js:552
In index.html file i wrote a code to play a stream from the internet using the Media class, that i have seen in the documentation of phonegap and it worked in emulator by installing the apk. I guess the error is not because of the Media or the code, i guess i’m not deploying the web app correctly because i left the phonepap.0.9.4.jar because i don’t know where to include this file in the server. I use Tomcat and i’m deploying this in WebRoot folder..
Please help me in deploying this project(the procedure how to deploy and how user can view the page in device browser).. Thank you..
The PhoneGap framework does not work in this way, you should put both phonegap.0.9.4.jar and phonegap.js on your mobile device, instead of on a remote server.