Página 1 de 1
Harbour Android + Hwgui
Enviado: 02 Fev 2015 10:41
por Itamar M. Lins Jr.
Comunicado!
Hi All,
recently I started experimenting with Android and have created a small
demo application. It allows to write your own simple application - just
edit the prg source file and rebuild the apk, Some details and an
application package - at
http://www.kresin.ru/en/h4a.html
Now I think over possibility to create Android GUI components from
Harbour code - something like Android GUI farmework for Harbour.
Regards, Alexander.
E esse sabe o que está falando, por traz do Fivewin e Minigui tem os conceitos e ideias da Hwgui feito pelo Alexander.
Como dizia um comunicado que eu li alhures, a Hwgui serviu de inspiração...? para eles.
Saudações,
Itamar M. Lins Jr.
Harbour Android + Hwgui
Enviado: 02 Fev 2015 14:31
por frazato
Boa tarde!
Muito legal mesmo fiz o teste no celular e funcionou legal, será que existe alguma maneira de montar um browse ai teria quase que pronto um sistema de cotação online, hoje tenho um usando o LetoDB com Gtwvw, no android iria ficar perfeito.
O único inconveniente e ter que ficar enviando o executável pra nossos vendedores ou clientes.
Estou no aguardo e confiante no projeto.
Frazato
Harbour Android + Hwgui
Enviado: 04 Fev 2015 18:22
por Itamar M. Lins Jr.
Version 2 is uploaded:
Added additional support for <i>hrb</i> updates. An update module is
included in <i>testhrb.prg</i>, it allows to get new <i>hrb</i> files
from my site.
Besides, a problem solved, related to some Android feature - it
doesn't close an application after closing a main window (Activity).
Regards, Alexander.
Harbour Android + Hwgui
Enviado: 09 Fev 2015 11:06
por Itamar M. Lins Jr.
Monitorando... Isso interessa a muita gente inclusive eu
Francesco,
I guess you are referring to using QT on Android.
I don't want to start a debate about QT pros and cons. The fact is that I simply decided that QT will not be my way on Android.
So, my wish (as I've stated in other thread) is to be able to use plain Harbour for Androind (fast and lightweight) using HTML/CSS/JavaScript GUIs as (ie) RFO BASIC does, meaning, something like this:
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$
In addition, you could use strings instead of HTML files, so, we could create our HTML forms dinamycally from Harbour.
input "Name:", name$
frm$ = "<form action=\"form\">Name: <br>" + ~
"<input type=\"text\" name=\"name\" value=\"" + ~
name$ + "\"><br><br>" + ~
"<input type=\"submit\" name=\"submit\" value=\"submit\">" + ~
"</form>"
html.open
html.load.string frm$
do
html.get.datalink data$
until data$ <> ""
data$ = mid$(data$,5)
print "Form data: "+data$
The possibilities are huge.
Note that only three things are required to make this work: html.open, html.load and html.get.datalink.
Dreaming a little more... if these features could be added to all platforms supported by Harbour, we will have a universal, multi-platform, lightweight and simple alternative GUI for our programs: HTML.
More info on RFO BASIC HTML interface:
http://rfobasic.com/#section-10.3
Regards,
Roberto.
Tá vendo com quem o pessoal pesca as ideias ?
Thanks, Roberto.
> If we could catch webview events from Harbour (ie: form's submit button) we could build our GUIs with plain HTML.
I look at this direction, too.
But now I gradually, little by little, try to implement another approach - creating natural Android GUI compenents with Harbour code - some HDroidGUI.
Regards, Alexander.
Saudações,
Itamar M. Lins Jr.
Harbour Android versão 4 uploaded
Enviado: 10 Fev 2015 21:46
por Itamar M. Lins Jr.
Version 4 has been uploaded:
Mastering the technique of calling Java methods from Harbour and debugging techniques - added Harbour function h4a_isInternetOn() to determine whether there is an Internet connection and h4a_Wrlog( sText ) - write debug messages to a log for saving to a file using
adb shell logcat.
Scripts are slightly modified.
Regards, Alexander.
Harbour Android + Hwgui
Enviado: 13 Fev 2015 10:58
por Itamar M. Lins Jr.
marco bra writes:
Ok good to have on github so we have a place to send issues and testing results
The github repository is created:
http://github.com/alkresin/h4aFirstApp
But mostly I'm working on another project - real framework for creating Harbour applications for Android - something, which may be called HDroidGUI. For now it is based on a similar approach - using hrb files in assets and it is able already to create a simple interface with textviews, editviews, checkboxes and buttons, set/get values to/from these items and handle button clicks.
BTW FYI in my test of app (ver 4) , after choosing items the displayed result is too quick to read it show result and return to main menu...
Strange. It works normally here on two emulators and on my tablet.
Harbour Android + Hwgui
Enviado: 13 Fev 2015 14:42
por sygecom
Esse Russo é o cara mesmo, pena que bagunçou a Hwgui, kkkkk agora to batendo mais que bolacha em boca de veio para deixar compatível.
Harbour Android + Hwgui
Enviado: 13 Fev 2015 17:33
por Itamar M. Lins Jr.
O problema não foi dele.
Foi do Rafael e de outros brasileiros que toda modificação era apenas para funcionar exclusivamente no xHarbour com BCC 5.5 e Windows.
Tinha que testar e funcionar no Linux e no Harbour com Mingw o pessoal não fazia isso, quando ele voltou teve que tomar essa atitude radical.
Agora esta até melhor, nós que fomos a cobaia da 2.18 e 2.19... ainda tem uns erros, mas a maioria foi corrigido.
Agora funciona no Windows,Linux, BCC, Mingwin...Activex está funcionando com Mingw...
Quem está saindo da 2.16 p/ 2.19 acho que não percebeu mudança apenas ganhos com mais comandos e funções.
Saudações,
Itamar M. Lins Jr.