31 lines
629 B
QML
31 lines
629 B
QML
|
import QtQuick 2.2
|
||
|
import QtQuick.Window 2.1
|
||
|
import QuickAndroid 0.1
|
||
|
import QuickAndroid.Styles 0.1
|
||
|
import AndroidNative 1.0 as AN
|
||
|
import "../theme"
|
||
|
|
||
|
Page {
|
||
|
|
||
|
actionBar: ActionBar {
|
||
|
id : actionBar
|
||
|
title: "Notification"
|
||
|
z: 10
|
||
|
upEnabled: true
|
||
|
onActionButtonClicked: back();
|
||
|
}
|
||
|
|
||
|
Button {
|
||
|
id: label
|
||
|
text : "Press to send notification"
|
||
|
anchors.centerIn: parent
|
||
|
onClicked: {
|
||
|
AN.SystemDispatcher.dispatch("Notifier.notify",{
|
||
|
title: "Quick Android Example",
|
||
|
message: "Hello!"
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|