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