=== chihchun_afk is now known as chihchun | ||
=== chihchun is now known as chihchun_afk | ||
=== chihchun_afk is now known as chihchun | ||
=== chihchun is now known as chihchun_afk | ||
=== chihchun_afk is now known as chihchun | ||
=== chihchun is now known as chihchun_afk | ||
sai_ | hi | 06:32 |
---|---|---|
=== chihchun_afk is now known as chihchun | ||
=== nhandler_ is now known as nhandler | ||
=== hyperair is now known as Guest47721 | ||
=== Guest47721 is now known as hypera1r | ||
=== hypera1r is now known as Guest53587 | ||
=== hypera1r_ is now known as hyperair | ||
=== chihchun is now known as chihchun_afk | ||
=== zsombi_ is now known as zsombi | ||
ubik__ | helo, i want to develop a ubuntu phone app. but i don't know how to write to a .txt file within the application, can somebody help me? | 15:33 |
mcphail | ubik__: is this a qml app. an html app, or something else? | 15:34 |
ubik__ | qml app | 15:34 |
ubik__ | its an app to count your steps | 15:34 |
ubik__ | but i dont know how to save the steps | 15:34 |
mcphail | ubik__: ok, the easiest way is not to write to a .txt file | 15:35 |
mcphail | ubik__: 2 minutes and i'll find you a helpful link | 15:35 |
ubik__ | thank you | 15:35 |
mcphail | ubik__: use this component and your headach will go away - http://doc.qt.io/qt-5/qml-qt-labs-settings-settings.html | 15:38 |
mcphail | *headache | 15:38 |
ubik__ | ok, thanks | 15:39 |
mcphail | ubik__: if you need something fancier, i _think_ you have to extend into c++, but that component should be enough to keep count of a variable | 15:40 |
ubik__ | btw: are different mobile phones are using different sensors? | 15:40 |
ubik__ | well, i want to save the steps by date | 15:40 |
ubik__ | could be tricky | 15:40 |
ubik__ | the counter for my steps is working fine with bq aquaris e4.5 | 15:41 |
ubik__ | when i do 100 steps, the app displays 101 steps | 15:41 |
ubik__ | :-) | 15:41 |
ubik__ | but will it with bq aquaris 5 and meizu, too? | 15:41 |
mcphail | ubik__: I'm not sure the API has the capability of writing to arbitrary files without falling back to c++ | 15:42 |
mcphail | ubik__: best thing would be to publish the app and ask on here (or #ubuntu-touch) for someone with a meizu to test. They are friendly channels | 15:42 |
ubik__ | okay | 15:43 |
mcphail | ubik__: I just have the bq | 15:43 |
mcphail | (4.5) | 15:43 |
ubik__ | another question: Is it possible to restore the app settings in a scope? | 15:53 |
ubik__ | The I could program a scope, too for the step counter | 15:53 |
ubik__ | *Then | 15:54 |
mcphail | ubik__: not sure about that, but my guess would be "not easily" | 15:54 |
ubik__ | hm | 15:55 |
mcphail | ubik__: due to confinement, ubuntu apps are reluctant to share data | 15:55 |
mcphail | ubik__: but I don't know much about the security environment around scopes. I haven't used them | 15:56 |
ubik__ | ok | 15:57 |
ubik__ | but your explanations already helped me | 15:58 |
mcphail | ubik__: the real developers are generally around during European office hours so you might want to ask again tomorrow | 15:58 |
ubik__ | okay | 15:59 |
ubik__ | I'm missing a good documentation about developing apps in ubuntu touch | 15:59 |
ubik__ | but i think, it all will come soon | 16:00 |
mcphail | ubik__: you've seen the API? https://developer.ubuntu.com/api/apps/qml/current/ | 16:00 |
ubik__ | ah | 16:01 |
ubik__ | cool | 16:01 |
ubik__ | :D | 16:01 |
mcphail | ubik__: also a decent wor-in-progress on qml is at http://qmlbook.github.io/ | 16:01 |
mcphail | *work | 16:01 |
mcphail | ubik__: Happy reading :) | 16:01 |
ubik__ | before i fall asleep i will read it | 16:02 |
ubik__ | :D | 16:02 |
mcphail | ubik__: it will help you to drift off, I'm sure | 16:02 |
ubik__ | lol | 16:05 |
JanC | should be possible to use local storage, no? | 16:09 |
ubik__ | but i dont know how | 16:23 |
ubik__ | because ubuntu has restrictions | 16:23 |
ubik__ | well my solution is, to save it like mcphail said, into an array | 16:33 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!