/srv/irclogs.ubuntu.com/2015/08/16/#ubuntu-app-devel.txt

=== 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_hi06: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
mcphailubik__: is this a qml app. an html app, or something else?15:34
ubik__qml app15:34
ubik__its an app to count your steps15:34
ubik__but i dont know how to save the steps15:34
mcphailubik__: ok, the easiest way is not to write to a .txt file15:35
mcphailubik__: 2 minutes and i'll find you a helpful link15:35
ubik__thank you15:35
mcphailubik__: use this component and your headach will go away - http://doc.qt.io/qt-5/qml-qt-labs-settings-settings.html15:38
mcphail*headache15:38
ubik__ok, thanks15:39
mcphailubik__: if you need something fancier, i _think_ you have to extend into c++, but that component should be enough to keep count of a variable15:40
ubik__btw: are different mobile phones are using different sensors?15:40
ubik__well, i want to save the steps by date15:40
ubik__could be tricky15:40
ubik__the counter for my steps is working fine with bq aquaris e4.515:41
ubik__when i do 100 steps, the app displays 101 steps15:41
ubik__:-)15:41
ubik__but will it with bq aquaris 5 and meizu, too?15:41
mcphailubik__: I'm not sure the API has the capability of writing to arbitrary files without falling back to c++15:42
mcphailubik__: 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 channels15:42
ubik__okay15:43
mcphailubik__: I just have the bq15: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 counter15:53
ubik__*Then15:54
mcphailubik__: not sure about that, but my guess would be "not easily"15:54
ubik__hm15:55
mcphailubik__: due to confinement, ubuntu apps are reluctant to share data15:55
mcphailubik__: but I don't know much about the security environment around scopes. I haven't used them15:56
ubik__ok15:57
ubik__but your explanations already helped me15:58
mcphailubik__: the real developers are generally around during European office hours so you might want to ask again tomorrow15:58
ubik__okay15:59
ubik__I'm missing a good documentation about developing apps in ubuntu touch15:59
ubik__but i think, it all will come soon16:00
mcphailubik__: you've seen the API? https://developer.ubuntu.com/api/apps/qml/current/16:00
ubik__ah16:01
ubik__cool16:01
ubik__:D16:01
mcphailubik__: also a decent wor-in-progress on qml is at http://qmlbook.github.io/16:01
mcphail*work16:01
mcphailubik__: Happy reading :)16:01
ubik__before i fall asleep i will read it16:02
ubik__:D16:02
mcphailubik__: it will help you to drift off, I'm sure16:02
ubik__lol16:05
JanCshould be possible to use local storage, no?16:09
ubik__but i dont know how16:23
ubik__because ubuntu has restrictions16:23
ubik__well my solution is, to save it like mcphail said, into an array16:33

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!