I am using vidyo to implement video calls in my android app. How do I create a view instance on loading a new intent?
I have a button, and on clicking it I am able to do required action. It is defined as such.
public void Start(View v){
vc = new Connector(videoFrame, Connector.ConnectorViewStyle.VIDYO_CONNECTORVIEWSTYLE_Default,
16, "warning all@VidyoConnector info@VidyoClient", "", 0);
vc.showViewAt(videoFrame, 0, 0, videoFrame.getWidth(), videoFrame.getHeight());
}
But now, I want the same action to be performed without button click.
It should happen in onCreate(), but this is failing. I am unable to view my camera preview. What else can be done?