I have included phonertc sample application as part of my Android Native Java Application. On my home activity, I have a button which start the phonertc sample app on click. Here is what button does:
Intent i = new Intent(this, CordovaApp.class);
startActivity(i);
Inside CordovaApp.class, I have the following code taken from the sample app of phonertc:
public class CordovaApp extends CordovaActivity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.init();
// Set by <content src="index.html" /> in config.xml
loadUrl(launchUrl);
}
}
This loads the sample phonertc application in a separate activity. I want to send some data of my own from Java to sample phonertc application when it is loaded.
My goal is to do communication between the phonertc application and my java android code apart from the communication of the plugin. How can I do this?
Is there any way that phonertc application calls function of my java android code after getting loaded in webview?
Please help.