it seems that the libs/ directory doesn't exist. I wonder, why this could happen, because clear.bat, which is called from the build.bat, creates them.
Yes, agree. The same as with hrbs - we can have one(!) application, which may do absolutely different tasks depending on which prg ( or hrb ) module is loaded from some repository in the web
It sounds Great!
It sounds Great!Yes, it sounds to Fivetouch :-)
C:\hdcalcul>call C:\PROGRA~1\java\jdk1.7.0_75/bin/javac -d obj -cp c:\Android\sdk/platforms/android-22/android.jar;\android\projects\hdroidgui\libs -sourcepathsrc src/su\harbour\hdcalcul/*.java 1>errore_java.outsrc\su\harbour\hdcalcul\DopActivity.java:25: error: cannot find symbolsId = MainApp.harb.sActId;^symbol: variable sActIdlocation: variable harb of type Harbour1 error
1. Precompiled contrib libraries: Specially those related with remote data access (hbtip, hbmysql, hbnetio, rddsql, etc.)
BTW I'm building full feature Harbour applications using GTQTC
as Android .APK and they work without any problems.
the newest Quad-core Raspberry model B - 2 ( since 2 ? months available ) is ARM-v7 based,
all other Raspberry before are based on ARM-v6 -- maybe worth a note ?
best regards
---
to Alexander,
just a very very tiny note, i would have named it: HbDroidGUI :-)
alike 'Hb' is somehow the shortened form of Harbour ......
[ excuse, actually no need of such for me, but sure i have an eyelook for ... ]
best regards
Rolf
http://pytesting.altervista.org/a-working-solution-for-hdroidgui-and-hdcalchddbf/ My working solution for HDroidGui because using the buildall.bat is not working for me.
1. Copy harbour headers (.ch) from HDroidGUI\src\include and paste to
your harbour\include installation folder eg C:\harbour\include
2. Change the paths in HDroidGUI\setenv.bat to reflect your paths
3. Open command prompt and call buildall.bat. If you get no errors well-done. I got errors and these are my work arround
4. After the errors go to HDroidGUI\jni and you will see some
csourcefiles.This were harbour prg files from HDroidGUI\src\prg compiled
to c source file. In HDroidGUI\src\prg folder copy the h4droid.c and
paste in HDroidGUI\jni.
5. In HDroidGUI\jni\Android.mk. In Android.mk you see two variable
$(HRB_INC) and $(SRC_FILES). You can either replace them directly in
Android.Mk or write a bat file eg
—————————————————————————————————–
Ndkhbsrc.bat
set HRB_INC=C:\harbour\include
set SRC_FILES=h4droid.c hdmain.c hdactiv.c hdwidget.c drawwidg.c hdbrowse.c
—————————————————————————————————–
Open your command prompt in your HDroidGUI\jni directory and type
Ndkhbsrc.bat and ndk-build. Declare your android ndk version as a system
path variable to get ndk-build.
6. Copy the entire c source files and Ndkhbsrc.bat from HDroidGUI\jni\ and to HDroidGUI\static\jni.
Open your command prompt in your HDroidGUI\jni directory and type Ndkhbsrc.bat and ndk-build.
7. Copy folder armeabi from HDroidGUI\libs to HDroidGUI\lib
8. Copy libh4droida.a from HDroidGUI\static\obj\local\armeabi to HDroidGUI\lib
Steps in HDroidGUI folder are over
Steps in hddbf and hdcalc folder are the same.
Unzip hddbf and I renamed hddbf-master to HDroidGUI
9. Change the paths in hddbf\setenv.bat to reflect your paths
10. Open command prompt and call build.bat. If you get no errors well-done. I got errors and these are my work arround
11. After the errors go to hddbf \jni and you will see main.c.This was a main.prg from hddbf \src compiled to c source file.
Guru enough read the main.prg and edit it. Your main.prg will become
your harbour android gui. If you edit it save somewhere else together
with hddbf\setenv.bat. eg hddbfedit
Hddbfedit
—setenv.bat
—src
——main.prg
Delete folder hddbf and unzip again from hddbf-master.zip. Replace setenv.bat and src\main.prg in hddbf with hddfedit
Repeat 10
12. Edit Android.mk in hddbf\jni by
Adding
HDROIDGUI:=E:/ HDroidGUI
after the first line
Replace
LOCAL_SRC_FILES := $(SRC_FILES)
LOCAL_SRC_FILES := main.c
13. Open your command prompt in your hddbf \jni directory and type ndk-build
Creating an android application
14. Create a new android project in Eclipse ADT
Package name: su.harbour.hddbf
Target SDK: 19
Minimum Required SDK: 14
Theme: Nome
Project Name and Application Name: HrApk
15: Click NEXT
Uncheck the first two checkbox
16. Click FINISH.
The Android Eclipse will be whatever you call your project name eg HrApk
17. Copy the armeabi from hddbf\libs to Android Eclipse\libs
18 Copy the su from hddbf \src to Android Eclipse\src
19. Copy the AndroidManifest.xml from hddbf to Android Eclipse
20. Copy the hDroidGUI from HDroidGUI\src\su\harbour to Android Eclipse project\src\su\harbour
Rolf,
> just a very very tiny note, i would have named it: HbDroidGUI :-) alike 'Hb' is somehow the shortened form of Harbour ......
with 04.1 Now I get an error (net: is not know), maybe you have not linked NETIO ?
> Does hbtip depends on any external libraries ?
No. Only dynamic binding to HBSSL library. If HBSSL is not linked
then SSL/TLS extensions are not supported by HBTIP.
> Does hbtip depends on any external libraries ?
No. Only dynamic binding to HBSSL library. If HBSSL is not linked
then SSL/TLS extensions are not supported by HBTIP.
Hi,
I just created two new projects on the github:
https://github.com/alkresin/HDroidGUI - HDroidGUI - a new Android GUI framework for Harbour ( or Harbour GUI framework for Android :) )
https://github.com/alkresin/hdcalcul - a calculator sample, which uses the HDroidGUI.
The documentation, as usually :), delayed. I'll create a web page later.
Pay attention to hdroidgui/utils/newproject.prg. It is a standalone utility, which creates a new project, based on HDroidGUI. Hdcalcul was created with it.
Just to have an idea how it looks, below is a source of hdcalcul:#include "hdroidgui.ch"
FUNCTION HDroidMain
LOCAL oActivity, oLayV, oLayH1, oBtn1, oEdit1, oText1
INIT WINDOW oActivity TITLE "Calculator"
BEGIN LAYOUT oLayV SIZE MATCH_PARENT,MATCH_PARENT
BEGIN LAYOUT oLayH1 HORIZONTAL SIZE MATCH_PARENT,WRAP_CONTENT
EDITBOX oEdit1 HINT "Input an expression" SIZE 0,MATCH_PARENT
BUTTON oBtn1 TEXT "Ok" TEXTCOLOR 255 SIZE WRAP_CONTENT,WRAP_CONTENT ;
ON CLICK {||onBtn1(oEdit1,oText1)}
END LAYOUT oLayH1
TEXTVIEW oText1 TEXTCOLOR 10485760 BACKCOLOR "#FFFFFF" SIZE MATCH_PARENT,MATCH_PARENT
END LAYOUT oLayV
RETURN oActivity
STATIC Function OnBtn1( oEdit1, oText1 )
LOCAL s, xRez, bOldError, lRes := .T.
s := oEdit1:GetText()
bOldError := ErrorBlock( { |e|break( e ) } )
BEGIN SEQUENCE
xRez := &( Trim( s ) )
RECOVER
xRez := "Error..."
END SEQUENCE
ErrorBlock( bOldError )
oText1:SetText( Iif( xRez == Nil, "Nil", Iif( Valtype(xRez)=="A", "Array", ;
Transform( xRez, "@B" ) ) + Chr(10)+Chr(13) + oText1:GetText() ) )
RETURN "1"
Maybe, you mean something else, but, as I see it, the multiselect feature can be realized in any browse, including that one in HDroidGUI, using the onClick.
Just change the value of a first column in appropriate row, setting some mark there - and then after clicking on a some button or selecting menu item do what you need with marked rows.
Regards, Alexander.
Regards, Alexander.
> It is possible to extend coverage to other processors such as MIPS and X86?
Yes, it is. The jni/Application.mk include a line, which define a platform type. Now it is set to "armeabi", but it may be changed.
First of all, libharbour.so should be build for appropriate processor.
There is a project in Github, https://github.com/alkresin/libharbour4a , which contains scripts for it. Yesterday I've changed 'APP_ABI := armeabi' to 'APP_ABI := all' - so it can be used now for all processors, supported by Android NDK. You may built it yourself, or I my upload ready libraries to my site.
If you need to build an apk for a certain processor type only, you just need to copy appropriate libharbour.so to HDroidGUI/jni/, change the HDroidGUI/jni/Application.mk, HDroidGUI/static/jni/Application.mk and in build.bat, build.sh scripts of your project replace 'armeabi' directory name with a new one.
Regards, Alexander.
Hi Alex:
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> I want to send the sources, but gmail does not allow me, how I can do this?
I change the platform with the android-21 and now I have this error...C:\Android\projects\HDROID~1>call C:\ARCHIV~1\java\jdk1.8.0_151/bin/javac -d libs -cp c:\Android\sdk/platforms/android-21/android.jar -sourcepath src src/su/harbour/hDroidGUI/*.javaNote: src\su\harbour\hDroidGUI\Common.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.Diego.
El martes, 21 de noviembre de 2017, 7:31:12 (UTC-3), Diego Fazio escribió:Hi alkresin, when I compile HDroidGui with buildall I have an error....C:\Android\projects\HDROID~1>call C:\ARCHIV~1\java\jdk1.8.0_151/bin/javac -d libs -cp c:\Android\sdk/platforms/android-27/android.jar -sourcepath src src/su/harbour/hDroidGUI/*.javaNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.ThanksDiego.
El domingo, 22 de febrero de 2015, 8:34:43 (UTC-3), alkresin escribió:Hi,
I just created two new projects on the github:
https://github.com/alkresin/HDroidGUI - HDroidGUI - a new Android GUI framework for Harbour ( or Harbour GUI framework for Android :) )
https://github.com/alkresin/hdcalcul - a calculator sample, which uses the HDroidGUI.
The documentation, as usually :), delayed. I'll create a web page later.
Pay attention to hdroidgui/utils/newproject.prg. It is a standalone utility, which creates a new project, based on HDroidGUI. Hdcalcul was created with it.
Just to have an idea how it looks, below is a source of hdcalcul:#include "hdroidgui.ch"
FUNCTION HDroidMain
LOCAL oActivity, oLayV, oLayH1, oBtn1, oEdit1, oText1
INIT WINDOW oActivity TITLE "Calculator"
BEGIN LAYOUT oLayV SIZE MATCH_PARENT,MATCH_PARENT
BEGIN LAYOUT oLayH1 HORIZONTAL SIZE MATCH_PARENT,WRAP_CONTENT
EDITBOX oEdit1 HINT "Input an expression" SIZE 0,MATCH_PARENT
BUTTON oBtn1 TEXT "Ok" TEXTCOLOR 255 SIZE WRAP_CONTENT,WRAP_CONTENT ;
ON CLICK {||onBtn1(oEdit1,oText1)}
END LAYOUT oLayH1
TEXTVIEW oText1 TEXTCOLOR 10485760 BACKCOLOR "#FFFFFF" SIZE MATCH_PARENT,MATCH_PARENT
END LAYOUT oLayV
RETURN oActivity
STATIC Function OnBtn1( oEdit1, oText1 )
LOCAL s, xRez, bOldError, lRes := .T.
s := oEdit1:GetText()
bOldError := ErrorBlock( { |e|break( e ) } )
BEGIN SEQUENCE
xRez := &( Trim( s ) )
RECOVER
xRez := "Error..."
END SEQUENCE
ErrorBlock( bOldError )
oText1:SetText( Iif( xRez == Nil, "Nil", Iif( Valtype(xRez)=="A", "Array", ;
Transform( xRez, "@B" ) ) + Chr(10)+Chr(13) + oText1:GetText() ) )
RETURN "1"
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-users+unsubscribe@googlegroups.com.