After adding hyperloop module run the following sample code
////////
var Activity = require('android.app.Activity');
var activity = new Activity(Ti.Android.currentActivity);
var contextValue = activity.getApplicationContext();
var notification = require('android.support.v4.app.NotificationManagerCompat');
var notificationObject = notification.from(contextValue);
function doClick(e) {
alert(notificationObject.areNotificationsEnabled());
}
////
Thanks!
////////
var Activity = require('android.app.Activity');
var activity = new Activity(Ti.Android.currentActivity);
var contextValue = activity.getApplicationContext();
var notification = require('android.support.v4.app.NotificationManagerCompat');
var notificationObject = notification.from(contextValue);
function doClick(e) {
alert(notificationObject.areNotificationsEnabled());
}
////
Thanks!
No comments:
Post a Comment