** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
TVstartTeamViewerSession( )
Create config...
config created... now doing createTVSession...
IllegalArgumentException: java.lang.IllegalArgumentException: activity must not be null
i´m calling this method of an library i am doing a wrapper for b4a
B4X:
public void startTeamViewerSession(BA ba, String serviceCaseName, String serviceCaseDescription) {
try {
ba.Log("Create config...");
TVSessionConfiguration configuration = createConfiguration(serviceCaseName, serviceCaseDescription);
ba.Log("config created... now doing createTVSession...");
TVSessionFactory.createTVSession(ba.activity, SDK_TOKEN, createSessionCreationCallback(this.getInstance(), configuration));
ba.Log("TVSessionFactory.createTVSession executed...");
} catch (IllegalArgumentException e) {
// either the configuration, or the parameters of the factory are invalid
// no error handling wanted
ba.Log("IllegalArgumentException: "+e.toString());
} catch (IllegalStateException e) {
// the app's manifest is missing permissions or the service declaration
// no error handling wanted
ba.Log("IllegalStateException: "+e.toString());
}
}
This is the called method from b4a in my wrapper
B4X:
public void startTeamViewerSession(BA ba, String svcCaseName, String svcCaseDesc) {
this.getObject().startTeamViewerSession(ba, svcCaseName, svcCaseDesc);
}
and the b4a code calling this method
B4X:
Log("TVstartTeamViewerSession( )")
TV.startTeamViewerSession("MyName","Helpdescription")
The two CATCH blocks are empty by default. I just put the logs here to see what happen and i got the obove result
B4X:
} catch (IllegalArgumentException e) {
// either the configuration, or the parameters of the factory are invalid
// no error handling wanted
} catch (IllegalStateException e) {
// the app's manifest is missing permissions or the service declaration
// no error handling wanted
}