Search code examples
gsonoracle-adf-mobile

Using Google Gson in ADF Mobile Application


Trying to use Gson in ADF Mobile project,

Downloaded the Jar files from Google https://code.google.com/p/google-gson/

Created A library in JDEV (Tools => Manage Libraries )

Added it to the ViewController project in my application ( Project Properties => Libraries and Classpath)

So now the library appears in (Application Resources => Libraries )

Added it to the Application Deployment Profile

Creates the below simple method to test

    public void AlertCart2(ActionEvent actionEvent) {

         Gson gson = new Gson();

    }

Created a button to invoke that method (but i get Invocation error)

Did i miss any thing?

Thank you.


Solution

  • Without specifying the error you get it is hard to know where the problem is. But my guess would be that the library doesn't work with the JDK 1.4 used by ADF Mobile.