April 22, 2016
On Friday, 22 April 2016 at 15:02:32 UTC, FrankLike wrote:
>>> You can downlowd sample APK: https://sourceforge.net/projects/crengine/files/DlangUI/
>>
>> DlangUI Tetris example now works ok on Android (arm, android4.4+)
>
> Android5.02 ,Not ok, sorry.

Does it crash instantly or shows app GUI for some time?
Is your smartphone arm-based?
Couldn't you collect logs with `adb logcat`?

April 22, 2016
On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:
> (snip)

Wow, really nice stuff! I wasn't even aware we could write D for Android at all...

April 22, 2016
On Thursday, 21 April 2016 at 14:48:40 UTC, ANtlord wrote:
> Am I sleeping? Can we develop UI applications for Android on D? It's great!

Yes – cool, right?

This is a reality now mostly due to Joakim's great LDC work.

 — David
April 22, 2016
On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:
> I've implemented initial support of Android in DlangUI.

Congratulations, Vadim.

This is a very exciting development.  (And impressive in the 'consequent' department, as the Germans say - you said you would have DlangUI ported to Android some weeks after the working compiler, and that's what you did!).

Might be useful for me to port some D code for internal enterprise apps to Android that currently runs on linux (I recognise how experimental it is, but I'm okay with that since mobile is just nice to have, and not yet necessary).

Will you be at dconf?
April 22, 2016
On Friday, 22 April 2016 at 18:48:26 UTC, David Nadlinger wrote:
> This is a reality now mostly due to Joakim's great LDC work.

(the fact that we can deploy stuff to Android in the first place, that is – obviously, the UI layer is a whole separate story)
April 23, 2016
On Friday, 22 April 2016 at 18:48:26 UTC, David Nadlinger wrote:
> This is a reality now mostly due to Joakim's great LDC work.

Yes, it's really GREAT work!
I just took his NativeActivity example and modified a bit to make dlangui's platform class implementation.

I would be nice to have all Joakim's patches in upstream LDC and druntime/phobos.

April 23, 2016
On Friday, 22 April 2016 at 18:49:24 UTC, Laeeth Isharc wrote:
> This is a very exciting development.  (And impressive in the 'consequent' department, as the Germans say - you said you would have DlangUI ported to Android some weeks after the working compiler, and that's what you did!).

It took about one week to make DlangUI android backend once I managed to build NativeActivity example by Joakim's instructions.

I would say it will take a week or too to make iOS backend once we have working compiler for iOS (in my estimations it will have 1K-2K lines of D code and 1K-2K lines of obj-c code.

Unfortunately, I have no experience with objective C neither with iOS programming.

Android port was easy for me because DlangUI was a kind of port/reimplementation of my C++ cross platform GUI library I used for my CoolReader GL project (e-book reader).

> Might be useful for me to port some D code for internal enterprise apps to Android that currently runs on linux (I recognise how experimental it is, but I'm okay with that since mobile is just nice to have, and not yet necessary).
Please let me know issue you face when using DlangUI for mobile development.

> Will you be at dconf?
No, I'm not planning to participate.
D is just a hobby for me.


April 23, 2016
Works on Nexus 7, Android 6.0.1!
April 23, 2016
On Friday, 22 April 2016 at 17:02:20 UTC, Vadim Lopatin wrote:
> On Friday, 22 April 2016 at 15:02:32 UTC, FrankLike wrote:
>>>> You can downlowd sample APK: https://sourceforge.net/projects/crengine/files/DlangUI/
>>>
>>> DlangUI Tetris example now works ok on Android (arm, android4.4+)
>>
>> Android5.02 ,Not ok, sorry.
>
> Does it crash instantly or shows app GUI for some time?
> Is your smartphone arm-based?
> Couldn't you collect logs with `adb logcat`?

What is the name of log file?
Nothing  is  in SDCard.
April 23, 2016
On Friday, 22 April 2016 at 17:02:20 UTC, Vadim Lopatin wrote:

> Does it crash instantly or shows app GUI for some time?
> Is your smartphone arm-based?
test-runner.apk is ok,but DLangUITetrisExample.apk and DlangUIHelloWorld.apk ,only shows black color.
HTC Android 5.02 ,it's arm-based,Not ok, sorry.
Where is the log file? Path?