I applied this code in my project and it worked but when i run my Samsung S4 that Android version 4.2.2 then I get an error this are "Uncaught TypeError: Cannot call method 'customFunctionCalled' of undefined"
I appreciate your efforts of writing this blog content, it’s really a beneficial and informative post. Good work!! Keep going on. PhoneGap Development Company Texas
@Override is not working for
ReplyDelete>>
@Override
public void customFunctionCalled() {
<<
Hence total code snippet is waste... :(
You can test code by removing the @Override above the customFunctionCalled().
DeleteHope this help you to run the code.
Not work for me, what's wrong with my code sir?
ReplyDeletethis is my code:
public class MainActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.init();
appView.addJavascriptInterface(this,"MainActivity");
super.loadUrl("file:///android_asset/www/index.html");
}
public void customFunctionCalled() {
Log.e("Custom Function Called", "Custom Function Called");
}
}
Hello I Gde Dian Adi Juliartha,
DeleteSorry for delay in reply.
You can check here the updated/Working code.
http://stackoverflow.com/questions/7292553/how-to-call-an-android-activity-from-phonegap/
Please feel free to let me know, If still it's not working.
Thank You.
hello Avtarsingh,
Deletei see your new post, but still failing for me
i'm so noob :S . have u got a simply project full working ?
my mail is kimera_77@hotmail.com
ty men
i doesn't work in 2.7.0
Delete.. could yo please sent me a sample working project?
my mail id
maniya0205@gmail.com
I applied this code in my project and it worked but when i run my Samsung S4 that Android version 4.2.2 then I get an error this are "Uncaught TypeError: Cannot call method 'customFunctionCalled' of undefined"
ReplyDeleteplease help any one.
I appreciate your efforts of writing this blog content, it’s really a beneficial and informative post. Good work!! Keep going on.
ReplyDeletePhoneGap Development Company Texas
Hire PhoneGap Developers