What is type of value recieved from Java Object in Android WebView?

view story

http://stackoverflow.com – I have a class, say A, in Java with few methods and some static variables. I am building a WebView based application in Android. I have injected an instance of class A using addJavascriptInterface method. (The application is actually using Phonegap) I have a Javascript function which performs RSA Encryption using public key K(n, e) passed to it. encryptString(n, e); The 'n' is returned by a method from class A, called like: var keyn = window.A.load("publicKey"); This is where I have a problem. When I pass 'n' as string, and 'e' = "10001" as string too, the encryption works well. But, w (HowTos)