Harbour Android + Hwgui

Projeto HwGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Harbour Android + Hwgui

Mensagem 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.
Saudações,
Itamar M. Lins Jr.
frazato
Usuário Nível 3
Usuário Nível 3
Mensagens: 219
Registrado em: 08 Jul 2004 07:45

Harbour Android + Hwgui

Mensagem 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
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Harbour Android + Hwgui

Mensagem 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.
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Harbour Android + Hwgui

Mensagem 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.
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Harbour Android versão 4 uploaded

Mensagem 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.
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Harbour Android + Hwgui

Mensagem 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.
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
sygecom
Administrador
Administrador
Mensagens: 7131
Registrado em: 21 Jul 2006 10:12
Localização: Alvorada-RS
Contato:

Harbour Android + Hwgui

Mensagem 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.
Leonardo Machado
xHarbour.org + Hwgui + PostgreSql
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Harbour Android + Hwgui

Mensagem 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.
Saudações,
Itamar M. Lins Jr.
Responder