03-23-2011 05:05 PM
Yes you can use native UI in your plugins.
I don't fondamentally know how webworks... works, but I guess it's a simple implementation of browserfield objects, loading the standard html pages...
The way the facebook SDK works is simply pushing a screen on top of the html page loaded by facebook.
You are correct, this is the exact way I use the extension. In your native code, you could simply create an other class that is called by your plugin manager, and then I beleive you can do pretty much what you want... I did something similar with the BB PrefsStorage classes.
Maybe you can't invoke your entire previous BB java project... try to import what you need. Also I don't have much experience with a "true" java BB project... I worked more on how to extend phonegap with native code, in the context of a webworks application.
03-25-2011 09:06 AM
I created a Java extension for WebWork.
However, the extension does not work.
I have a doubt. Running the Java project in the simulator a screen of acceptance of permits and Facebook login screen appears in the simulator. (It´s ok).
But, When I run the Java extension from the WebWork, Java code can overlay the screen permits, put it in the foreground??
Thank you very much, kind regards.
03-25-2011 09:10 AM
I used the Facebook SDK 0.3.5 because I could not make the latest one work
The 0.3.5 version works with the simple pushScreen, popScreen methods with the screen class.
What version of the SDK are you working with?
03-25-2011 09:23 AM
So i guess you use the latest version!
Be careful not to mix phonegap and Facebook, you only use the plugin system of phonegap.
Just create a java class that manages login/logout and session. You have to manually handle your token in order to retreive data from page to page.
03-25-2011 09:37 AM
Oh, I am trying to understand.
The Facebook BB SDK is 0.5.12. and you suggest to use the 0.3.5 ??
In the other hand, I download the SDK, I understand the "strawberry tests" and I create a java class with one only method, login to facebook.
( I test the Java project. I create the .jar. Import into a "hello world" webwork project and try. The webwork invoke directly the extension. The permissions screen doesn´t apper
It will be solve using 0.3.5 SDK instead 0.5.12???
03-25-2011 09:47 AM
Did you package phonegap in the .jar ?
Did you extend the Plugins class correctly ?
Because I really explained it all on my big post. I can't really help you more than that
03-25-2011 10:23 AM
One question ..Are you using similar code to invoke the UIAppcaition in your plugin java code ??
ZoomableImageApp theApp = new ZoomableImageApp();
This code is generally in main method of BB java project.