if target_os == 'android':
notification_env.AppendUnique(CCFLAGS = ['-frtti', '-fexceptions'])
notification_env.AppendUnique(LIBS = ['gnustl_shared','log'])
+ notification_env.AppendUnique(LINKFLAGS = ['-Wl,-soname,libnotification_provider.so'])
+ notification_env.AppendUnique(LINKFLAGS = ['-Wl,-soname,libnotification_consumer.so'])
+
if not env.get('RELEASE'):
notification_env.AppendUnique(LIBS = ['log'])
LOGE("Error: jfieldID for message ttl is null");
return nullptr;
}
- jlong jttl = (jlong) env->GetObjectField( jMsg, fid_ttl);
- uint64_t ttl = jttl;
+ jlong jttl = (jlong) env->GetLongField( jMsg, fid_ttl);
+ uint64_t ttl = jttl;
LOGD("Message ID: %lld\n", ttl);
// Message Title
Log.i(TAG, "#" + notiId + " notified ..");\r
TvLog.append("Send Notitication(Msg ID: " + notiId + ")\n");\r
notiId++;\r
- org.iotivity.service.ns.common.Message notiMessage = new org.iotivity.service.ns.common.Message(title,body,"provider");\r
- notiMessage.setTTL(10);\r
- notiMessage.setTime(DateFormat.getDateTimeInstance().format(new Date()));\r
- notiMessage.setTopic(topic);\r
- MediaContents media = new MediaContents("Video");\r
- notiMessage.setMediaContents(media);\r
- mProviderSample.SendMessage(notiMessage);\r
}\r
break;\r
\r