Re: javafx on android - weird box within regions

2014-01-28 Thread Stephen F Northover
Hi Christoph, We don't build or run Android so it's a pain to recreate the problem. Please confirm the bug on a desktop platform. It might likely be the bug David is talking about. Also, on desktop, we can't do more than guess at a problem without code: https://wiki.openjdk.java.net/displ

Re: javafx on android - weird box within regions

2014-01-28 Thread David Grieve
https://javafx-jira.kenai.com/browse/RT-30479 is probably the issue you are bumping up against. On Jan 28, 2014, at 2:29 PM, Christoph Caks wrote: > Hi, > I have a question regarding regions on android > > it seems that all regions with a set background have some kind of white box > inside >

Re: javafx on android - weird box within regions

2014-01-28 Thread Christoph Caks
It seems the list got my attachment -.- i uploaded it here: http://de.tinypic.com/r/ou4p46/8 Am 2014-01-28 20:29, schrieb Christoph Caks: Hi, I have a question regarding regions on android it seems that all regions with a set background have some kind of white box inside (in this case it is gr

Re: JavaFX on Android build (instructions)

2013-12-02 Thread Sebastian Rheinnecker
Hello Tomas, I attached the patch for the FXActivity and DalvikLauncher classes. To make this work, you need to patch the build process for the created projects as well. I couldn't find where this is done in the repo, so I did this manually every time :-), this is also the reason why it isn't

Re: JavaFX on Android build (instructions)

2013-12-02 Thread tomas.brandalik
Hi Sebastian, please would you send the patch to me? thank you in advance -Tomas On 12/02/2013 09:55 AM, Sebastian Rheinnecker wrote: Hi again, I just wanted to let you know that I solved the issue with the max method references in the dex files with using multiple dex files. To accomplish t

Re: JavaFX on Android build (instructions)

2013-12-02 Thread Sebastian Rheinnecker
Hi again, I just wanted to let you know that I solved the issue with the max method references in the dex files with using multiple dex files. To accomplish this I patched the classes FXActivity and DalvikLauncher to dynamically load the second dex file and its classes. I also patched the bui

Re: JavaFX on Android build (instructions)

2013-11-30 Thread Yennick Trevels
Thanks Johan for gathering this information! I just tried to run my simple JavaFx application on Android with your build instructions, and I got it build and deployed rather easily. When trying to run it the UI appeared (albeit rather distorted), but when touching the app it crashed, I guess bec

Re: JavaFX on Android build (instructions)

2013-11-26 Thread Sebastian Rheinnecker
Hi, I used your instructions with some tweaks to build a JavaFX application for android on Windows. However, it turns out that Android's dex format is putting a spoke into our wheel with the 65k method reference limit. The JavaFX runtime itself already contains 51k method references and becau

Re: JavaFX on Android build (instructions)

2013-11-17 Thread Jonathan Giles
Thanks Johan for stepping up to the plate on this one. Whilst I've not been actively involved with the iOS and Android work, I have been observing the community interest and progress. I was getting very close to the point of proposing a similar project myself, as I was very worried about community

Re: JAVAFX on ANDROID

2013-10-21 Thread Jonathan Giles
On 22/10/2013 7:26 a.m., Richard Bair wrote: >> 3. The Listview shows a scrollbar. That makes me believe that the control >> doesn't really know that it is running >> in embedded mode. Maybe the mouse emulation is not possible if the embedded >> mode is correcly enabled. >> Where do I enable the

Re: JAVAFX on ANDROID

2013-10-21 Thread Richard Bair
> 1. Is that mouse emulation supposed to be eliminated due to the latest > lensWindow changes? > I believe that must be handled in higher layers not in the input layer > itself. > > 2. What is the best way to fix this issue? Reimplementing the mouse emulation > is not a real good solution.

Re: JAVAFX on ANDROID

2013-10-18 Thread Matthias Hänel
Am 17.10.2013 um 17:45 schrieb Richard Bair : > Usually, file jira and attach a patch (and a unit test for expedited service > :-)) > > Richard Ok, I'll check that for the future. Actually, I am not sure how a unit test would look like for a crash fix like that ;) Matthias

Re: JAVAFX on ANDROID

2013-10-18 Thread Matthias Hänel
Hi Tomas, I am currently running a bit different openjfx than yours and got it kind of running. 1. the main difference is font deactivation. You disabled the entire CSS renderer, which I did not. I am deactivating just the font renderer. That means a lot more patching but it gives me the chan

Re: JAVAFX on ANDROID

2013-10-17 Thread Richard Bair
Usually, file jira and attach a patch (and a unit test for expedited service :-)) Richard > On Oct 17, 2013, at 8:26 AM, Matthias Hänel wrote: > > the mailerdemon striped my java file ;) > > The fixed code snippet from FXActivity.java is: > >} else { >//single tou

Re: JAVAFX on ANDROID

2013-10-17 Thread Matthias Hänel
the mailerdemon striped my java file ;) The fixed code snippet from FXActivity.java is: } else { //single touch actions[0] = actionCode; ids[0] = event.getPointerId(0); touchXs[0] = (int)event.getX(); touc

Re: JAVAFX on ANDROID

2013-10-17 Thread Matthias Hänel
Hi, I found the reason for the touch crashes on Android. It's a JNI threading error in the current implementation. We have to enqueue the touch events into the javafx dispatch thread. There is a workaround for this attached in the java source file at dispatchTouchEvent and dispatchKeyEvent. W

Re: JAVAFX on ANDROID

2013-10-16 Thread Matthias Hänel
Hi Tomas, thanks for your patch. Your way doesn't seem to be so different to the jfx78 approach except the retro-stuff ;) In the meanwhile I am pretty sure, this will not be entirely needed since DAVLIK can run java7 class code. Nevertheless, I tried your patch... Patching works. After adap

Re: JAVAFX on ANDROID

2013-10-15 Thread tomas.brandalik
I would recommend to build pango by hand first. I don't think that it is so straightforward. It has many dependencies iconv, expat, fontconfig, freetype, glib at least. After a whole day of struggling my pango build failed somewhere in the middle at "who-knows-where-it-comes-from" macro :( -wi

Re: JAVAFX on ANDROID

2013-10-15 Thread tomas.brandalik
Hi Philip, I do backport jfx8 to jfx7 and then retrolambda it to be jdk6 compatible. It sort of works ok. I suppose that it just replaces class file version since there are not used lambda expressions in jfx8 yet. Will see if that solution works when lambdas start to appear in jfx. -Tomas On

Re: JAVAFX on ANDROID

2013-10-15 Thread Matthias Hänel
Hi Tomas, I couldn't stand to merge it by hand ;) I merged the changes from RT-32802 into my backport. Unfortunately, it still crashes: 10-15 08:59:47.182: INFO/GLASS(3644): JNI call notifyTouchEvent 10-15 08:59:47.202: INFO/GLASS(3644): Window 1[0x2a41a138] isVisible=true, state=NORMAL 10-15

Re: JAVAFX on ANDROID

2013-10-15 Thread Philipp Dörfler
I might be a bit late to the party but I lately discovered something that might be useful for backporting JavaFX 8 to Java 6: > Retrolambda lets you run Java 8 code with lambda expressions on Java 7 or > lower. It does this by transforming your Java 8 compiled bytecode so that it > can run on a

Re: JAVAFX on ANDROID

2013-10-15 Thread Matthias Hänel
Hey Tomas, I've seen a check-in for RT-32802. This seems to be your fix. There are a lot of interface changes. Could you explain the changes a bit, so I can merge it by hand into my jfx678 code? Today, I merged from Stefans b111 JFX78 but it will take a while to get your changes through this w

Re: JAVAFX on ANDROID

2013-10-15 Thread Matthias Hänel
Hi Felipe, thanks for your fast answer. Unfortunately, this is not enough information for a sufficient solution ;) Maybe I am too far from gradle away in my thinking (Makefiles) to understand this one fully. I know where the sources are and I am pretty sure I can build a library by hand. Ac

Re: JAVAFX on ANDROID

2013-10-14 Thread Felipe Heidrich
Hi, I'm not familiar with the Android build process but basically this is what you need: Build graphics/src/main/native-font/fontpath_linux.c to a library called "javafx_font", that it will be loaded by PrismFontFactory.java (but used by FontConfigManager.java). This is our fontconfig binding

Re: JAVAFX on ANDROID

2013-10-14 Thread Matthias Hänel
Hi Tomas, Am 14.10.2013 um 14:31 schrieb tomas.brandalik : > Hi Matthias, > cool, I'm surprised you we're able to run it on emulator. I run on device not > on emulator for a long time. There wasn't opengl extension > GL_EXT_texture_format_BGRA in emulator. But that could have changed > o

Re: JAVAFX on ANDROID

2013-10-14 Thread Richard Bair
Hi Matthias, > The main point of irritation comes from an quite unclear position about > providing the JVM and JFX of the Java-platform. > That's why I will sumarize what I heard between the lines: > > 1. there is NO official jvm planned for iOS and Android in the near future. > 2. jfx8 is beei

Re: JAVAFX on ANDROID

2013-10-14 Thread tomas.brandalik
Hi Matthias, cool, I'm surprised you we're able to run it on emulator. I run on device not on emulator for a long time. There wasn't opengl extension GL_EXT_texture_format_BGRA in emulator. But that could have changed overtime. Regarding events: yes there seems to be a problem which I have

Re: JAVAFX on ANDROID

2013-10-14 Thread Matthias Hänel
Hi Tomas, never mind, I found the problem over here in the simulator ;) I had to activate the GPU support. So, now I had to BGRA image format for Android and now I get JFX up and running without fonts. There are two things missing: 1. fonts- here we probably need to get pango working

Re: JAVAFX on ANDROID

2013-10-14 Thread Matthias Hänel
Hi Tomas, since Tobi told me he had a similiar problem in the first place with the iOS port and he managed to run JFX8 without font. We deactivated fonts. There is some code to deactivate and after that it looks like it is starting the JFX-Application. 10-14 06:06:49.529: INFO/GLASS(1546): gla

Re: JAVAFX on ANDROID

2013-10-14 Thread Niklas Therning
I don't think a Java6 backport is necessary. If the jfx78 backport works on RoboVM it should work on Android (provided that the native stuff is there of course). The problem is the dx tool which doesn't accept Java7 .class files, right? IIUC not much happened to the class file format between Java6

Re: JAVAFX on ANDROID

2013-10-14 Thread Matthias Hänel
Hey Niklas, Am 13.10.2013 um 11:49 schrieb Niklas Therning : > For PlatformLogger et al you can probably use the compatibility lib we have > been using for jfx78+RoboVM: https://github.com/robovm/robovm-jfx78-compat Hehe, yes I read it in Tobi's blog post that you wrote one that's why this is

Re: JAVAFX on ANDROID

2013-10-14 Thread Matthias Hänel
Hi Tomas, thanks for your fast answer. Am 12.10.2013 um 14:04 schrieb Tomas Brandalik : > I think that PlatformLogger initialization in CssHelper was causing problems. > I had to write one. I took the compat library fro robovm. I believe this should be sufficient. But the CssStyleHelper was

Re: JAVAFX on ANDROID

2013-10-13 Thread Matthias Hänel
Hi Felie, thanks for you fast answer. Am 12.10.2013 um 01:36 schrieb Felipe Heidrich : > The 'native' font stack for Linux uses Pango (to handle complex text) and > freetype (rendering glyph images, outlines, metrics, etc). > > As long as we manage to build our freetype code on Android we sh

Re: JAVAFX on ANDROID

2013-10-13 Thread Matthias Hänel
Hi Stefan, thanks for your fast answer. Am 12.10.2013 um 00:47 schrieb Stefan Fuchs : > I think you must |add the flag ||-PCOMPILE_PANGO=true to build the new > opensource font stuff. I am sure that's not that easy ;) Actually, I tried it but it didn't do anything in the first place. > If

Re: JAVAFX on ANDROID

2013-10-13 Thread Matthias Hänel
Hi Richard, thanks for your fast answer. Am 11.10.2013 um 18:53 schrieb Richard Bair : > As frustrating as it is, the fact is that today Oracle has no announced plans > to release any official JVM for Android and iOS. That being the case, the > biggest hurdle to getting FX on iOS and Android

Re: JAVAFX on ANDROID

2013-10-13 Thread Matthias Hänel
Hey Tom, thanks for you answer. while the OSX font stuff is there and Orcale's goal is to use the native font renderer on each platform. I am sure there must be some kind of an Android font renderer in the code. I couldn't find one until now. Another question: Since I ported you latest jfx78

Re: JAVAFX on ANDROID

2013-10-13 Thread Tobi
I absolutely agree. The point is: nobody can expect from oracle to build such a vm. But if they won't do it, JavaFX will die. Even in the embedded space where companies will use QT or HTML5 instead. Without license fees So to sell JavaFX for embedded devices oracle MUST support mobile platfo

Re: JAVAFX on ANDROID

2013-10-13 Thread Tom Eugelink
On 2013-10-14 01:06, Rafal wrote: If you honestly encourage community to make a such big effort as developing, adjusting and maintaining JVMs on the two leading mobile platforms, you don't have any plans that Oracle VM on android will be released in the next 2 years. :/ Otherwise, if Oracle a

Re: JAVAFX on ANDROID

2013-10-13 Thread Felix Bembrick
Perhaps having more than one JVM on iOS/Android implementation is good for JavaFX as a whole? On 14 October 2013 10:06, Rafal wrote: > On 11.10.2013 18:53, Richard Bair wrote: > >> How much time do you think it would take community designers to develop >>> this? >>> >> RoboVM for iOS I think is

Re: JAVAFX on ANDROID

2013-10-13 Thread Rafal
On 11.10.2013 18:53, Richard Bair wrote: How much time do you think it would take community designers to develop this? RoboVM for iOS I think is basically at this stage, where they've got something up and running to the point of being able to do performance analysis and looking for bugs. It has

Re: JAVAFX on ANDROID

2013-10-13 Thread Niklas Therning
For PlatformLogger et al you can probably use the compatibility lib we have been using for jfx78+RoboVM: https://github.com/robovm/robovm-jfx78-compat Den lördagen den 12:e oktober 2013 skrev Tomas Brandalik: > I think that PlatformLogger initialization in CssHelper was causing > problems. I had

Re: JAVAFX on ANDROID

2013-10-12 Thread Tomas Brandalik
I think that PlatformLogger initialization in CssHelper was causing problems. I had to write one. Not 100% sure though I will look at it when I'm back in the office. (Or you can comment out css processing in the node.) I was able to run without font then. -Tomas On 10/11/2013 06:22 PM, Tom S

Re: JAVAFX on ANDROID

2013-10-11 Thread Felipe Heidrich
Hi, The 'native' font stack for Linux uses Pango (to handle complex text) and freetype (rendering glyph images, outlines, metrics, etc). As long as we manage to build our freetype code on Android we should be able to have something that works. As for pango, I heard it is not available on Andro

Re: JAVAFX on ANDROID

2013-10-11 Thread Stefan Fuchs
Hi Matthias, I think you must |add the flag ||-PCOMPILE_PANGO=true to build the new opensource font stuff. If I remember correctly I got a similar error, when I first build jfx78 on linux. I made some experiments with javafx on android by myself. I found the following interesting read: htt

Re: JAVAFX on ANDROID

2013-10-11 Thread Richard Bair
I've never seen a port of AWT to iOS or Android. Richard > -Original Message- > From: Tomas Brandalik > Sender: openjfx-dev-boun...@openjdk.java.net > Date: Fri, 11 Oct 2013 06:52:06 > To: > Subject: Re: JAVAFX on ANDROID > > COMPILE_TARGETS=android > Good,

Re: JAVAFX on ANDROID

2013-10-11 Thread rdarrylr
er: openjfx-dev-boun...@openjdk.java.net Date: Fri, 11 Oct 2013 06:52:06 To: Subject: Re: JAVAFX on ANDROID COMPILE_TARGETS=android Good, then use FX78 and you can give it a try. I have my local fork of javafx for testing DalvikLauncher. Standalone Vm for Android is not available for download.

Re: JAVAFX on ANDROID

2013-10-11 Thread Tom Schindl
On 11.10.13 18:10, Matthias Hänel wrote: > Hi Tomas, > > > today, I took the time to investigate a little more time on this. > > 1. I build an entirely new openjfx78 build for android > 2. starting this gave me several errors that lead me to the > conclusion that I need a java6 openjfx > 3. ba

Re: JAVAFX on ANDROID

2013-10-11 Thread Matthias Hänel
Hi Tomas, today, I took the time to investigate a little more time on this. 1. I build an entirely new openjfx78 build for android 2. starting this gave me several errors that lead me to the conclusion that I need a java6 openjfx 3. based on openjfx78 I ported it back to java6 (adapted gradled

Re: JAVAFX on ANDROID

2013-10-10 Thread Tobi
Is this standalone vim working with JIT? Does it works well? We recently tried to use the embedded version of oracle JdKs com Linux/ARMv7 soft float on Android but if doesn't work because if missing linked dylibs on Android..,. > Am 11.10.2013 um 06:52 schrieb Tomas Brandalik : > > COMPILE_TA

Re: JAVAFX on ANDROID

2013-10-10 Thread Tomas Brandalik
COMPILE_TARGETS=android Good, then use FX78 and you can give it a try. I have my local fork of javafx for testing DalvikLauncher. Standalone Vm for Android is not available for download. -Tomas FX78 should be compatible with Java6 because RoboVM is built on dalvik classlib and JavaFX works t

Re: JAVAFX on ANDROID

2013-10-10 Thread Tom Schindl
FX78 should be compatible with Java6 because RoboVM is built on dalvik classlib and JavaFX works there! Tom On 10.10.13 22:42, Tobi wrote: > Hi Tomas, > > How did you test the Dalviklauncher? Do you have a Java6 compatible jFX > version? > > And how did you test the JavaSELauncher? Do you have

Re: JAVAFX on ANDROID

2013-10-10 Thread Tobi
No, targets=Android > Am 10.10.2013 um 22:41 schrieb Tom Schindl : > > So when I compile my own FX what target to I compile to? I guess I > compile on linux, right? > > Tom > >> On 10.10.13 22:01, Tomas Brandalik wrote: >> Hi Tobi and Philippe, >> Android port is being developed in open sourc

Re: JAVAFX on ANDROID

2013-10-10 Thread Tobi
Hi Tomas, How did you test the Dalviklauncher? Do you have a Java6 compatible jFX version? And how did you test the JavaSELauncher? Do you have a JVM for android? Where can we download it? > Am 10.10.2013 um 22:01 schrieb Tomas Brandalik : > > Hi Tobi and Philippe, > Android port is being deve

Re: JAVAFX on ANDROID

2013-10-10 Thread Tom Schindl
So when I compile my own FX what target to I compile to? I guess I compile on linux, right? Tom On 10.10.13 22:01, Tomas Brandalik wrote: > Hi Tobi and Philippe, > Android port is being developed in open source so all developers can see > every progress. There is nothing to hide. You can understa

Re: JAVAFX on ANDROID

2013-10-10 Thread Tomas Brandalik
Hi Tobi and Philippe, Android port is being developed in open source so all developers can see every progress. There is nothing to hide. You can understand it as an example of porting javafx runtime to a linux based platform not a product with a roadmap. As you've noticed there are 2 launchers

Re: JAVAFX on ANDROID

2013-10-10 Thread Tobias Bley
Tomas from Oracle is working on the Android port of JavaFX. He has developed a DalvikLauncher and a JavaSELauncher. So he is able to tell you (and me :)) more about that important theme „JavaFX on Android“. Best regards, Tobi Am 10.10.2013 um 16:55 schrieb Philippe TIFFEAU : > Hello, > > Som