Hi everyone,
I am looking for someone to help me with a simple RPC service. What I
want to do is create a notification message once the service is
started and every time the RPC interface is called I want to update
the notification. Creating the notification works but when I add the
following...
P.S. new to GGs so sorry if there is some secret <code> tag
public String getAndroidText(String conversation) throws
RemoteException {
NotificationManager currentManager =
(NotificationManager)
getSystemService(Context.NOTIFICATION_SERVICE);
Context context = getApplicationContext();
CharSequence contentTitle = "Sogeti";
CharSequence contentText = "This is a message";
Intent notificationIntent = new Intent(this,
AndroidServiceImpl.class);
PendingIntent contentIntent =
PendingIntent.getActivity(this, 0,
notificationIntent, 0);
notification.setLatestEventInfo(context, contentTitle,
contentText,
contentIntent);
currentManager.notify(NOTIFICATION_ID, notification);
return "Android Services are Fun!";
}
to my inner impl class, however, I get the following compile error...
The constructor Intent(AndroidService.AndroidServiceImpl,
Class<AndroidService.AndroidServiceImpl>) is undefined
Can someone help me do this the right way?
Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en