Page 1 of 2

Harbour on Android

Posted: Sat Jul 05, 2014 1:09 am
by Roberto Lopez
Has anyone successfully created a Harbour app for Android?

I want to start experimenting with it and any information could help.

TIA.

Re: Harbour on Android

Posted: Sat Jul 05, 2014 2:00 am
by danielmaximiliano
Hola Roberto :
hace un tiempo Esgici publico este link del amigo Giovanni

http://www.elektrosoft.it/tutorials/har ... indows.asp

Re: Harbour on Android

Posted: Sat Jul 05, 2014 3:42 am
by Javier Tovar
Gracias DanielMeximiliano, en verdad se ve interesante la informaciĆ³n del Link.
leere un poco al respecto! :D

Saludos

Re: Harbour on Android

Posted: Sat Jul 05, 2014 2:16 pm
by pctoledo

Re: Harbour on Android

Posted: Sun Jul 06, 2014 4:19 am
by Roberto Lopez
Thanks to all for the info.

I'll start with Harbour console and then explore options for GUI.

I'm playing with an interesting toy for android ('RFO BASIC') that uses HTML files as GUI. This is an interesting idea and is implemented in an extremely easy way. If some like that could be done for Harbour, could be a nice solution.

Re: Harbour on Android

Posted: Sun Jul 06, 2014 11:51 pm
by danielmaximiliano
Hola Roberto :

me olvide ponerte este link

FiveDroid : Android GUI support for Harbour

https://code.google.com/p/fivedroid/

https://code.google.com/p/fivedroid/w/list

Re: Harbour on Android

Posted: Mon Jul 07, 2014 5:58 am
by Rathinagiri
RFO Basic is a nice language to approach Android. I had used it before.

The problem is HTML forms designed using RFO are not rendered same in different devices. Some of the controls are overlapped. :(

Re: Harbour on Android

Posted: Mon Jul 07, 2014 3:48 pm
by Roberto Lopez
Rathinagiri wrote:RFO Basic is a nice language to approach Android. I had used it before.

The problem is HTML forms designed using RFO are not rendered same in different devices. Some of the controls are overlapped. :(
Theoretically, you could use any standard HTML file. Even one using jQuery Mobile. JQM should work well in any device and/or screen orientation.

Re: Harbour on Android

Posted: Mon Jul 07, 2014 3:50 pm
by Roberto Lopez
I've posted the following message in Harbour Users Group too:

Hi All,

I'm experimenting with Harbour on Android thanks to the Giovanni Di Maria tutorial.

Its plain and easy to make it work. The problem is the lack of a GUI (I'm looking for an alternative to QT).

There is a nice app for Android called 'RFO BASIC'. It can handle GUI via HTML.

The approach is very simple:

1. Invoke Android web browser, showing an HTML file with our user interface.
2. Wait for an event comming from browser using a loop.
3. Whenn the event arrives, process the message (being the most relevant, pressing the 'submit' button in the HTML form.

The RFO Basic code looks like this:

Code: Select all

html.open
html.load.url "file:///sdcard/rfo-basic/data/myform.html"
do
    html.get.datalink data$
until data$ <> ""
data$ = mid$(data$,5)
print "Form data: "+data$
So, theoretically, we only need few new harbour functions to achieve this (equivalent to html.open, html.load and html.get.datalink in RFO BASIC).

So, the problem is how to interface our Harbour application with Android API. There is any information, documentation or examples about this topic?

TIA.

Re: Harbour on Android

Posted: Mon Jul 07, 2014 3:54 pm
by serge_girard
Roberto,

I'm very interested in this issue but I know nothing about it, so I can't help you!

Greetings, Serge