on 08-14-2014 7:55 AM
Hi
I am trying to build a Phone-gap application in android platform eclipse environment.
I successfully created MBO, and then 'Generate Hybrid App API'
this created a few javascript files that i copy to Eclipse phone-gap application assets\www\js.
I have created js file (myapp.js), on a button click i am calling a function that trying to initialize connection to sup server,
var connectionSettings = new hwc.ConnectionSettings( hwc.REGISTRATION_METHOD_MANUAL,
"xxx.xxx.xxx.xxx",
5001,
0,
"????",
222,
"HTTP",
"",
"/" );
var saveSettingsStatus= hwc.saveSettings( connectionSettings );
but i am getting an error: "_HWC is not defined".
i don't understated what is wrong,
cant i build a phone-gap application without using the HWC?
do i missing something?
No, you cannot build a phongap application that uses the HWC APIs without using the HWC client. Any hwc.* JavaScript APIs are dependent on running within the HWC client.
Thanks,
Andrew.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.