![]() |
[Newbie]Ask for help on development on N9
I want to write a simple toggle for on off the nfc. AFAIK there is no such an app.
Now I am at hello world stage and I googled I need to do that via DBus(Dont know what is that and is that able to control nfc). I have read this link on nokia and I still confuse:(. I have school lab on iphone and android. Is there some method like "onCreate" or "viewDidAppear" on n9(Qt Quick or Qt Widget)? How can I call C++/C method via QML? I am so confuse. Is there some more "getting started" guide about development on harmattan? Thank You. |
Re: [Newbie]Ask for help on development on N9
Any hints for starter?
|
Re: [Newbie]Ask for help on development on N9
Still in trouble:(. Personally want to refer git projects, however I can't found toggle application which has open source.
Also should I need to install harmattan platform sdk? Seem scratchbox no longer host by nokia, do I need scratchbox if I have a real n9 device? Or should I go for qtsdk? Thanks |
Re: [Newbie]Ask for help on development on N9
This is a pretty good example:
http://harmattan-dev.nokia.com/docs/...sicplayer.html It shows how to set up an application with a c++ entry point that loads a qml document. You probably want to create your own NFC handling class, based on QObject, and use that in the setContextProperty call. In that NFC class, your method will be marked with Q_INVOKABLE to be able to call that method from the qml. You probably want to use qt-components to get your toggle button: http://harmattan-dev.nokia.com/docs/...go-switch.html |
Re: [Newbie]Ask for help on development on N9
Thank you very much.
But the toggle I mean is something like :Toggle PSM, Toggle BT, 2G3G and FlightMode in ovi store, not qt-components toggle Anyway those example help a lot. The qml seems differ from xml on android and storyboard/xib on ios. |
Re: [Newbie]Ask for help on development on N9
I just found this: toggle availability
https://github.com/ajalkane/toggleavailability toggle Telepathy availability on n9/50 and 2g3g https://projects.developer.nokia.com/2g3g/browser I can't build the project using QtSDK 1.2.1(simulator): TelepathyQt4/AccountManager: No such file or directory qemu: Qemu finished with error: Exit code was 127. |
Re: [Newbie]Ask for help on development on N9
Quote:
Quote:
Code:
#include <QDeclarativeView> Code:
qmlRegisterType<MyClass>("com.myapplication.items",1,0,"MyClass"); Code:
import QtQuick 1.1 Code:
public: Code:
.... |
Re: [Newbie]Ask for help on development on N9
Understood, toggle or switch is the GUI component, as seen here:
http://www.developer.nokia.com/Commu...20110930200022 I guess the first question should have been, will this have a GUI? |
Re: [Newbie]Ask for help on development on N9
Quote:
But I think I should start with simple ui first:p. Also having notification without ui seem a bit difficult for me. |
Re: [Newbie]Ask for help on development on N9
Quote:
Code:
michael@michaelmhk-PC:~/QtSDK/Madde/bin$ ./mad remote -r dfl61-harmattan_3.2012.07-1 poweron -fg |
All times are GMT. The time now is 04:52. |
vBulletin® Version 3.8.8