Hi Tobi,
about cancelled sessions please contact Mr. JavaOne stephen.c...@oracle.com I believe he will give satisfactory answer.

best regards
-Tomas

On 09/25/2013 12:06 PM, Tobias Bley wrote:
Hi Tomas,



what happened with your JavaOne session track concerning „JavaFX on Android“ 
(https://oracleus.activeevents.com/2013/connect/sessionDetail.ww?SESSION_ID=7791)?

Best regards,
Tobi


Am 11.09.2013 um 16:04 schrieb tomas.brandalik <tomas.branda...@oracle.com>:

Hi Tobi,
project setup is straightforward like any other android project. Just create an 
android project and then copy all from openjfx/build/android-sdk/dalvik/lib 
into libs and build/android-sdk/rt/lib/ext/jfxrt.jar and armeabi folder again 
into libs. AndroidManifest.xml needs some additional parameters. Something like 
this:

<application android:label="@string/app_name" android:debuggable="true">
                <activity android:name="com.oracle.dalvik.FXActivity" 
android:label="@string/app_name">

            <meta-data android:name="launcher.class"
                android:value="com.oracle.dalvik.DalvikLauncher" />

                        <!-- Full name of the application class to run -->
                        <meta-data android:name="main.class"
                                android:value="com.samples.Demo" />
                        <!-- Jdwp debugging port. Don't forget to forward port 
(adb forward tcp:port1 tcp:port2) -->
                        <meta-data android:name="debug.port" android:value="0" 
/>
                        <intent-filter>
                                <action android:name="android.intent.action.MAIN" 
/>
                                <category 
android:name="android.intent.category.LAUNCHER" />
                        </intent-filter>
                </activity>
        </application>
        <uses-permission 
android:name="android.permission.READ_EXTERNAL_STORAGE"></uses-permission>
        <uses-permission 
android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>

jfxrt.jar must be jdk6 compatible. Font renderer library is missing, it remains 
in closed source.

I just want to emphasise that this is not supported configuration so expect 
experimenting. I've spent couple of days just to be sure DalvikLauncher works 
fine. It will require to prepare your own fork of openjfx without jdk8 features 
( I haven't found any uptodate) + some hacking with class files version because 
dexer requires jdk6 compatible classes.

good luck
-Tomas


On 09/09/2013 11:52 PM, Tobias Bley wrote:
Hi Tomas,

did you already open sourced your android launcher template? Could you please 
show me an example how to launch a JavaFX app on Androids Dalvik?

Best regards,
Tobi


Am 12.08.2013 um 09:27 schrieb tomas.brandalik <tomas.branda...@oracle.com>:

Ok, I have a template project for android which does necessary setup and 
copying. But I forgot it's still in closed source. I will add some readme and 
move it to opensource.

-Tomas

On 08/11/2013 06:07 PM, Tobias Bley wrote:
Hi Tomas,

When I extend a default Activity from FXActivity and try to start this activity 
(coding with Android Studio) the emulator does not find the *.so files from 
JavaFX (especially the libVMLauncher.so)… Do you know where to copy the JavaFX 
jars and native libraries?

Tobi


Am 08.08.2013 um 13:10 schrieb tomas.brandalik <tomas.branda...@oracle.com>:

Hi,
I have hardly any info about the project jfx78 backport and its status. I've 
just had a look at it and saw that last sync happened in beginning of July. 
It's good if somebody is willing to put his effort into that.
In order to run on dalvik we need to compile jfx with jdk1.6 (I suppose 1.7 
would do as well). Then there will be some packages missing for example 
java.beans or sun.misc but it could be fixed somehow.

-Tomas

On 08/08/2013 10:05 AM, Tobias Bley wrote:
Hi Tomas,

yes, I was able to build JavaFX for Android, but I would like to start JavaFX 
on Dalvik…You said its necessary to update the jfx78 backport to the latest 
openjfx code changes…?

btw: I just saw your very interesting JavaOne track ;)

  Am 08.08.2013 um 09:59 schrieb tomas.brandalik <tomas.branda...@oracle.com>:

Hi Tobi,
shouldn't be necessary to patch android.gradle file or set 
ANDROID_CROSS_TOOLS_VER anymore. The latest changes resolve path to a toolchain 
taking into account variants of NDK. Thank you for testing it.

-Tomas

On 08/01/2013 11:41 PM, Tobias Bley wrote:
Thanks Tomas,

after changing android.gradle script line "defineProperty("ANDROID_CROSS_TOOLS_VER", "arm-linux-androideabi-4.4.3“)“ to 
"defineProperty("ANDROID_CROSS_TOOLS_VER", "arm-linux-androideabi-4.6“)“ and "def toolsPlatform = IS_WINDOWS ? "windows" : IS_MAC ? 
"macosx" : "linux-x86““ to „def toolsPlatform = IS_WINDOWS ? "windows" : IS_MAC ? "darwin-x86_64" : "linux-x86““ I could successfully 
build OpenJFX for Android von Mac OS X 10.9!

So now I’m trying to use Android Studio and the Emulator to start a JavaFX test 
application on Android. I tried to start my activity which extends from 
FXActivity class in „com.oracle.dalvik“ package. But how do I have to specify 
the JavaFX application class or main method? How do I have to bind the 
FXActivity with the JavaFX app (Stage / Application)? Is there any demo code 
available?

Best regards,
Tobi


Am 01.08.2013 um 16:00 schrieb tomas.brandalik <tomas.branda...@oracle.com>:

The latest tools should be ok sdk ver. 22 and ndk r9. I have  sdk 21.1 and ndk 
r7c and r8e.
http://developer.android.com/sdk/index.html
http://developer.android.com/tools/sdk/ndk/index.html
-Tomas

On 08/01/2013 03:41 PM, Tobias Bley wrote:
Which android SDK do I need? Could you please give me the URL to the correct 
android SDK and NDK?

Thanks!
Tobi


Am 31.07.2013 um 16:42 schrieb tomas.brandalik <tomas.branda...@oracle.com>:

Hi Tobi,
it works on linux only right now.
Set properties for cross build and android sdk/ndk.
-PCOMPILE_TARGETS=android -PANDROID_SDK=/opt/android-sdk-linux 
-PANDROID_NDK=/opt/android-ndk-r7c -PCOMPILE_GSTREAMER=false -PSKIP_JAVADOC=true
Closed source parts web and font-t2k will be missing.

-Tomas

On 07/29/2013 11:22 PM, Tobias Bley wrote:
Hi,

can anyone say something about the current state of the gradle android support? 
Is it possible to build OpenJFX for Android now via gradle?

Best regards,
Tobi


Reply via email to