I have been able to inject the variable into c2runtime, but I still can't set the value of the c2runtime global variable to the variable I am sending from C# code. I can call it with alert, but it is not set to global variable. I have modificated c2runtime, by changing "Set phoneBeta->99" to "Set phoneBeta->change",which is the new varaible I have created.
I have added these lines to c2runtime to call the value out, it is located in the beginning of the c2runtime
window["wp_muuda"] = function (value) {
change = value;
// alert(change);
}
and set the value of the global variable to "change", it is located in the end of c2runtime:
cr.system_object.prototype.acts.SetVar,
null,
1421252773806425,
false
,[
[
11,
"phoneBeta"
]
, [
7,
[
��1,
��change//made change
]
]
]
The injection method is called out in MainPage.xaml.cs.
I would really appreciate, if someone would crack this issue for me.
New visual studio file using the windowsphone plugin:
http://www.upload.ee/files/3893236/Project.zip.html
New project:http://www.upload.ee/files/3893240/test.capx.html