Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
HAC Bug Reporting / Re: message after quiting compiled HAC applications
« Last post by Malkom on November 19, 2012, 08:52:36 AM »
A sample would be great thank you - then I can attach to to debugger and track it down :)

Its not appearing on G1 or HiApad devices but sounds like a bug when Activity is sent to back.
I'll test Kindle Fire etc later this morning.


UPDATE - Kindle Fire is okay.

Perhaps its to do with the version of Android OS on your device - I'll target specific emulator.




72
HAC Bug Reporting / Re: message after quiting compiled HAC applications
« Last post by kaboekieman on November 19, 2012, 08:42:15 AM »
thx malkom... I can sent you a sample hac and apk file if you want, just mention it :)
73
HAC Bug Reporting / Re: message after quiting compiled HAC applications
« Last post by Malkom on November 19, 2012, 08:40:24 AM »
Hi Jeroen

Many thanks for the report - I'll look into it right now.

Malkom
74
HAC Bug Reporting / message after quiting compiled HAC applications
« Last post by kaboekieman on November 19, 2012, 08:18:27 AM »
Hi there,
I wanted to report a possible bug in HAC after 'quiting' or pushing the home button on the phone (in a compiled apk file).

After a short moment every compiled application that I made comes with the message 'test1 is gestopt (test1 is stopped). Do you know how this can be prevented? I think it has someting to do with the life cycle of the app. I noticed this 'error' also in the solarsystem example and possible more examples?
 

grts, Jeroen
76
Databases / Re: Help with writing, opening, reading and updating SQlite database
« Last post by kaboekieman on November 15, 2012, 09:56:54 AM »
Great! that worked ... thx Malkom :)
I will rewrite my setup and will upload a micro dungeon App soon which I will upload here in this forum... The dungeon isn't that interesting (it's really short), but it will feature a save state routine. Just for other people who are interested in this. After completing that I will work on the full screen mode.

Good work Malkom and thanks a lot  :D
77
Databases / Re: Help with writing, opening, reading and updating SQlite database
« Last post by Malkom on November 14, 2012, 10:08:31 PM »
Hi Jeroen

I see the problem - my fault for missing it.

The way the underlying Java works meant making an end-of-file check to fetch each line.
However, we didn't use the EndTFileFN function so no data was returned for use by the ReadTLine command.

Below is a mod of your script that works for me:-
it has 2 extra lines - one declares Local var fend, and the second tests for end-of file.

Code: [Select]
@ database bestand
Put 'locatie.txt' into fname

@ volledige path naar database bestand
Put LocalPathFN into fpath
Append '/' onto fpath
Append fname onto fpath

message fpath

Local fend

@ open database bestand en lees inhoud
OpenTReadAbs fpath,temp
    Put EndTFileFN(temp) into fend
    ReadTLine temp,fvar
CloseTRead temp

message fvar

The HAC file example project uses a WHILE loop that checks for end-of-file so any lines are automatically returned for use by the ReadTLIne.

I hope this helps you make progress.

Malkom
78
Databases / Re: Help with writing, opening, reading and updating SQlite database
« Last post by kaboekieman on November 14, 2012, 04:14:56 PM »
Thx for your reply... I have made it even simpler (for me)... just to test if reading from a flatfile works... but I can't seem to get the correct code. Do you know what I do wrong?

Code: [Select]
@ initialiseer variabelen
Local fname, fpath, temp, fvar

@ database bestand
Put 'locatie.txt' into fname

@ volledige path naar database bestand
Put LocalPathFN into fpath
Append '/' onto fpath
Append fname onto fpath

message fpath

@ open database bestand en lees inhoud
OpenTReadAbs fpath,temp
    ReadTLine temp,fvar
CloseTRead temp

message fvar

I have stored the locatie.txt file in the "Local" folder. In this file there's is only a number, number: 3

When I test it in HAC ... fvar will pop up 3, but when I test it on my HTC One X fvar will be empty...  I feel like an idiot ;)
p.s. on my phone I get the following message from fpath: "/mnt/sdcard/test.grailquest.nl/Local/locatie.txt"

I guess there is something wrong with the ReadTLine command? Because when I echo (use message) temp... the result will be 1 (if flatfile exists) and 0 (If I deleted the flatfile before compiling the apk) hjust to test things.
79
Databases / Re: Help with writing, opening, reading and updating SQlite database
« Last post by Malkom on November 13, 2012, 10:04:59 PM »
Hi Malkom thx for your input :) I have decided I will use flatfiles for my application... The main reason is that I can check the app on the fly (when using HAC). If it will be to difficult with inventory issues I will have another go with sqlite. Only the stranges thing. I have included two .rar files in this post so you can see the problem... In HAC emulator mode (when using run) everything lookes and works fine, but when I export it as apk and install it on my phone (HTX One X) this simple application doen't work that good (sometimes it hangs)... I think it has issues with the flatfile? Do you know what I do wrong? I use a flatfile (locatie.txt) which is stored in a "Local" folder of my app (see boek1.rar file). For your convenience I have also included the apk file (boek1_apk.rar).

The goal of this app (without fancy graphics) is to test the save state routine using a text file as a reference point for the last visited HAC page.

Standard (first time users) will have number 3 stored (first page) in the locatie.txt file!

home => main screen (1 button, if number in locatie.txt = 3, 2 buttons, if number in locatie.txt is not 3)
card2 => reset book (sure? yes: goto card 3, no: goto Home)
card3 => save number 3 in locatie.txt, first page game
card4 => save number 4 in locatie.txt, second page game

Hope you can help me out with this? thx, Jeroen

Hi Jeroen

Thank you for the project and apk file.

I think its better to use the OpenTWriteAbs command instead of OpenTWriteLoc as its more consistent with paths.

When using the Local folder its necessary to use the function LocalPathFN otherwise the APK will just look for "Local" and not for the full path. HAC itself can use both but APKs cannot.

This code is from the earlier database stuff here might help:-

Code: [Select]
Local fname,fpath,fvar

@ filename
Put 'locatie.txt' into fname

@ --- form source path ---
Put LocalPathFN into fpath
Append '/' onto fpath
Append fname onto fpath

OPenTWriteAbs(fpath,fvar)
..
...


I hope this helps

Malkom


80
Databases / Re: Help with writing, opening, reading and updating SQlite database
« Last post by kaboekieman on November 13, 2012, 03:11:52 PM »
Hi Malkom thx for your input :) I have decided I will use flatfiles for my application... The main reason is that I can check the app on the fly (when using HAC). If it will be to difficult with inventory issues I will have another go with sqlite. Only the stranges thing. I have included two .rar files in this post so you can see the problem... In HAC emulator mode (when using run) everything lookes and works fine, but when I export it as apk and install it on my phone (HTX One X) this simple application doen't work that good (sometimes it hangs)... I think it has issues with the flatfile? Do you know what I do wrong? I use a flatfile (locatie.txt) which is stored in a "Local" folder of my app (see boek1.rar file). For your convenience I have also included the apk file (boek1_apk.rar).

The goal of this app (without fancy graphics) is to test the save state routine using a text file as a reference point for the last visited HAC page.

Standard (first time users) will have number 3 stored (first page) in the locatie.txt file!

home => main screen (1 button, if number in locatie.txt = 3, 2 buttons, if number in locatie.txt is not 3)
card2 => reset book (sure? yes: goto card 3, no: goto Home)
card3 => save number 3 in locatie.txt, first page game
card4 => save number 4 in locatie.txt, second page game

Hope you can help me out with this? thx, Jeroen
Pages: 1 ... 6 7 [8] 9 10
anything