Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Contributor
Posts: 8
Registered: ‎01-02-2013
My Device: blackberry torch
My Carrier: blackberry

How to retrieve value from native code while using javascript extension

I am using java script extension in my phonegap project. I am able to successfully send data from html 5 to native code.My query is how we will use the value returned by the native inside html 5 in phonegap.The invoke method which performs the functionality required  has the below signature which means it returns an Object.Can i access this Object value returned by invoke method inside html 5.

public Object invoke(Object obj, Object[] args)



in html 5 i am calling native code as



can i do something like this

var temp = sample.demo.username(1000);