requestAccessToken line not working after base64 encoding alos

jyothish
Is this correct for android login ? Its crashing

String apiKey = "svlo1ylhol1wbuttybr5w5y7r37t30ml";
String secretKey = "secret key";

byte[] bytesEncoded1 = Base64.encodeBase64(apiKey.getBytes());


byte[] bytesEncoded2 = Base64.encodeBase64(secretKey.getBytes());


userModel = kiteSdk.requestAccessToken(apiKey, secretKey);
Tagged:
  • sujith
    Hi @jyothish,
    You don't need to do all these things. Just do things same as demonstrated in Test.java file of javakiteconnect. Just make sure you have all dependencies.

    PS: I would suggest you to code in android studio because google no more supports eclipse plugins for android development.
Sign In or Register to comment.