I'm trying to get a list of all defined Account on the device, by using Java Function.
This is what I've done:
GetAccounts (91)
A1: Java Function [ Return:accmgr Class Or Object:AccountManager Function:get
{AccountManager} (Context) Param:CONTEXT Param: Param: Param: Param: Param: Param: ]
A2: Java Function [ Return:(Account[]) accounts Class Or Object:accmgr Function:getAccounts
{Account[]} () Param:1 Param: Param: Param: Param: Param: Param: ]
A3: Java Function [ Return:%accsize Class Or Object:Array Function:getLength
{int} (Object) Param:accounts Param: Param: Param: Param: Param: Param: ]
A4: Flash [ Text:%accsize Long:Off ]
I would expect it to return a non empty array of all the accounts, as the SDK says (I have multiple accounts defined on that device), but task A4 shows 0 in the toast. :(
Any idea why?