Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Google Android

Integrating a 3rd party jar library into Eclipse project

Google Play Store, Amazon Kindle, Nook, and so many more

Integrating a 3rd party jar library into Eclipse project

Postby redmotion » 25 Apr 2012, 21:36

I've got an eclipse project exported, I need to add a .jar library which contains an API that I need Shiva to send and recieve data from.

Do I need to create a plugin for this that will act as a wrapper or is there another way?

If yes, (I've never made a wrapper before), would the right approach be to create a Shiva plugin in Shiva, add the 3rd parties API commands as new shiva commands, then add calls to the library functions inside the exported plugin functions?

Thanks.
J.
User avatar
redmotion
Platinum Boarder
Platinum Boarder
 
Posts: 574

Re: Integrating a 3rd party jar library into Eclipse project

Postby giggsy » 26 Apr 2012, 07:28

There are 3 options I know of:

1)Plugin
2)Events
3)system.callClientFunction

1)Depending on what you do, it is not done with creating a plugin.
You probably also have to modify e.g. the Android manifest.

2)We use this a lot, maybe check out http://www.stonetrip.com/developer/forum/viewtopic.php?f=42&t=23252

3)It's there, but I havent really played with that.
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1096
Location: Austria



Return to Google Android