User user = smartConnect.generateSession(clientId, "8844",myTotp);
if (user != null) {
String feedToken = user.getFeedToken();
String strWatchListScript = "nse_cm|2885&nse_cm|1594&nse_cm|11536&mcx_fo|221658";
String task = "mw";
Examples examples = new Examples();
try {
examples.tickerUsage(clientId, feedToken, strWatchListScript, task);
} catch (SmartAPIException e) {
e.printStackTrace();
}
I am using it in android studio and i am getting null user