<beneroth>
maybe you should write a fuzzer to find the solution :(
<Regenaxer>
The stopping seems to be clean and OK
<Regenaxer>
What is a fuzzer? :)
<beneroth>
a program which has a definition/model of what input types/ranges/kinds another program takes and what the returns/result should look like, then generating all kind of random ("fuzzy") (technically possible) inputs to test the other program
<beneroth>
did you use the right class for your service?
<beneroth>
just a random pointer
<Regenaxer>
Ok
<Regenaxer>
I think the class is right
<Regenaxer>
The problem has to do with setting to foreground only
<Regenaxer>
Without this everything works right
<Regenaxer>
Only if PilBox is in "foreground" state
<Regenaxer>
and I suspect I have something wrong with this state
<Regenaxer>
I have two apps where I use this only
<Regenaxer>
For SimpleLinks it would not be absolutely necessary, so I could simply omit (startForeground) and be done
<Regenaxer>
But the firemen app *does* need it
<Regenaxer>
The app must send GPS position permanently
<Regenaxer>
Without (startForeground) it is stopped when in the background for a few minutes
<Regenaxer>
and the firemen have the phone in their pochet when working on the fire
<Regenaxer>
BTW: I got a message the the firemen got an "Innovation price" in Catalonia this week! :D
<Regenaxer>
(despite that it is not finished yet!! :)
<beneroth>
:D
<beneroth>
so you got one? :D
<Regenaxer>
one?
<Regenaxer>
oops, wrong
<Regenaxer>
I meant "the firemen *App* got an Innovation price"
rob_w has joined #picolisp
<Regenaxer>
What I don't understand is that Marcel writes in the above link "I already solved, and this is how, thanks any ways", but where is "this"?
<Regenaxer>
I don't see his solution
<Regenaxer>
Anyway, I suspect the problem is either in my implementation of startForeground or in my AndroidManifest file
orivej has quit [Ping timeout: 240 seconds]
<beneroth>
Marcel means "return START_NOT_STICKY;" in onStartCommand()
<Regenaxer>
I see, OK, but I believe this is wrong (as explained above)
<beneroth>
nice, congratulations! so, basically, YOU got an innovation price, no? sounds like a fact which could be used for picolisp advertising, if you (and the firemen) would be okay with that
<beneroth>
yeah. I guess it was right for his case.
<Regenaxer>
Well, me or the boss of the catalonian firemen in the first place
<Regenaxer>
START_NOT_STICKY seems only relevant if the OS killed the service (mainly if out of memory)
<Regenaxer>
I found more of similar questions, none with a useful answer
<Regenaxer>
So I think there must be some side-effect in another place
<Regenaxer>
like how the foreground is set, or some declarations in the Manifest
orivej has joined #picolisp
rob_w has quit [Quit: Leaving]
<Regenaxer>
Interesting perhaps is that it is restarted always after 15 seconds
<Nistur>
morning all
<Regenaxer>
Hi Nistur!
orivej has quit [Ping timeout: 256 seconds]
<Regenaxer>
Now I traced the code backwards, using Log.d calls
<Regenaxer>
Funny, the start is caused by the WebView component, trying to access the pil server (despite that everything is closed)
<beneroth>
interesting
<beneroth>
Hi Nistur !
<Regenaxer>
WebView tries to ping the server, so it is simply not terminated
<Regenaxer>
No idea why this happens only after startForeground
<Regenaxer>
Completely different place
<Regenaxer>
WebView is in the Activity and foreground is the Server object
<Regenaxer>
And swiping off PilBox is supposed to kill the Activity in the first place
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Regenaxer>
Hmm, I released a new PilBox every few days recently. Nobody cares
<tankf33der>
of course.
<tankf33der>
tweet every month is ok then
<beneroth>
maybe this is even true for now, but when later on people look back and see such signals of improvement -> that is a message, too
<Regenaxer>
And PlayStore updates it on all phones which installed it automatically anyway
<beneroth>
is auto-update the norm?
<Regenaxer>
yes
<beneroth>
(I would guess so, but still..)
<Regenaxer>
yeah
<beneroth>
it's the first things I disable usually. a unmonitored auto-update is a backdoor.
<beneroth>
but yeah, then one has to take care of it
<Regenaxer>
yep, and one has to trust the app and the store anyway
<beneroth>
though on windows (I still have a few) it becomes an advantage, they release broken patches so often these days that its better to install them fixed delayed xD
<beneroth>
T
<Regenaxer>
So, no, I won't tweet this. There is no chance anybody even faintly understands the problems which are fixed with this fix
<beneroth>
hm. T.
<beneroth>
I want to learn your habits more. good habits, I think.
<beneroth>
oh in the end he puts very well (I think) into words the (pretty fundamental) opinion on which I (apparently imho) differ with you guys:
<beneroth>
"One of the legacies of the counterculture, particularly on the left, is the idea that expression is action. This idea has haunted those of us on the left for a long time. "
<beneroth>
[...]
<beneroth>
"So the challenge for those of us who want a different world is not to simply trust that the expressive variety that the internet permits is the key to freedom. Rather, we need to seek a kind of freedom that involves people not like us, that builds institutions that support people not like us" [...]
<beneroth>
"Our challenge is to build a world that takes responsibility for people not like ourselves."
<beneroth>
of course, this also goes into promoting diversity and equal opportunities etc.
arievw has quit [Quit: Connection closed for inactivity]
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]