Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
14
Erster Beitrag:
vor 4 Jahren, 9 Monaten
Letzter Beitrag:
vor 4 Jahren, 9 Monaten
Beteiligte Autoren:
Viggo Poulsen, ccc2, Ruben Sanchez Peña, GuenterP

WM18, Small project makes large app

Startbeitrag von Viggo Poulsen am 14.07.2013 19:35

Hi there

As far as I see it, WM18 makes very large app's (android).
One project which is standard for WM18 (Android To-Do List) is a usefull, but not large, project. When looking at it on a smartphone, it uses 34 MB for the program. This is more than Google play shop and Google play services together !! (more than 1/2 of Google Crome).
Is there any settings I am missing ?
I ask because my smartphone (Xperia play) are equiped with 420 MB, so each and every app I make, takes up a great part of the memory.

Best regards
Viggo Poulsen

Antworten:

which db are you using . sqlite or HF

von ccc2 - am 15.07.2013 08:49
Hi

I am using HF

von Viggo Poulsen - am 15.07.2013 09:12
Hi Viggo,

the main technology behind Wx-products is the interpreter, a runtime that compiles code temporarily in order to make things execute faster. Even small programs take this overhead with them, but it's the reason for easy debugging and easy moving to new platforms. This means that programs will not grow that much when becoming bigger.

von GuenterP - am 15.07.2013 09:23
Quote
Viggo Poulsen
Hi

I am using HF


one window with a button using SQLITE generate 600kb apk

one window with a button using HF generate 8mb apk

you may want stick to sqlite .

von ccc2 - am 15.07.2013 10:55
Thank you both for explaining it.

Best regards
Viggo Poulsen

von Viggo Poulsen - am 15.07.2013 11:13
Hi. i have compiled the sample application and it generate an apk file about 9 Mb. Iys in runtime when the app use 35 Mb of RAM. Maybe the HF engine need all this memory to run.

A simple app without HF use 11 Mb of RAM for me.

Rubén

von Ruben Sanchez Peña - am 15.07.2013 12:32
Hi Rubén

Yes I guess it is a HF engine overhead. I like HF so I don't want to go down to SQLite. I just have to advice my customers to buy a smartphone with a decent ram size.

Best regards
Viggo Poulsen

von Viggo Poulsen - am 15.07.2013 14:58
Hi. I understand you. HF is great, but you must read about the specifications of the machine where HF can run... Only recent Android versions are allowed.

Rubén

von Ruben Sanchez Peña - am 15.07.2013 22:08
Hi Rubén

Thank you for the advice. I have desided to develop for the future, not the past, so it is ok for me, that the devices has to be fairly new. The product I am working on are for a specific market where I have to advice what equipment must be used. So It is important that I know what to use but no showstopper if my program cannot run on a smaller device.

Best regards
Viggo Poulsen

von Viggo Poulsen - am 16.07.2013 06:07
Quote
Ruben Sanchez Peña
Hi. I understand you. HF is great, but you must read about the specifications of the machine where HF can run... Only recent Android versions are allowed.

Rubén


Hi,
you must be new . if not you won't think HF classic is good .

for anyone want to use HF on android must aware of following issue
1. do not use on multi user enviroment
2. do not use transactions . rollback fail will lock the records , it's very troublesome to reset . I don't know how u plan that on android device
3. need often to delete/recreate the key files. alot funny funny problem show up if you don't do it . for example auto numbering keep generate same number .

since most tools are in windows version , if you need any recovery to HF , you have to copy it out from the device . good luck with that

von ccc2 - am 16.07.2013 08:14
Hi ccc2

I think i read about limitations with SqLite conserning using keys.
The way I use HF is (a project which mixes WB and WM):
In WB I use HF CS which seems to work very well.
In WM I use HF classic. On 1 smartphone I will have no problem with multi user and I don't use transactions, so this could be the reason it works well. In my test I have a DB with 100.000 records. It takes up 97 MB data on a smartphone. Using SQL queries works very well.

Best regards
Viggo Poulsen

von Viggo Poulsen - am 16.07.2013 11:30
Excuse me Sir. I'm speaking about HF in general, not in Android. I'm ussing HF without a simple issue since year 2005 (Windev 9 times). I use HF/CS with WD and WB without issues, and now with WM.

1) Multiuser in an Android device? It's SQLlite better in a muktiuser scenary?
2) Transactions in an Android Device? Well, i can live witout them.
3) i hadn't this issue.

If you use HF Classic in a network scenary you must configure the opportunistic lock in the machines to coordinate data caching and coherency between clients. This isn't a HF failure, its a Windows design problem. This is for all database system where a "server" share a file to other clients (Clarion TopSpeed files for example).

Rubén

von Ruben Sanchez Peña - am 16.07.2013 13:28
Hi,

if problem happen on the db , there's a lot tools you can use to manage sqlite in android , but there's is none for HF.

von ccc2 - am 17.07.2013 00:24
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.