Jackie,
I already gave you one suggestion, it had to do with
AndroidServiceImpl.class.
Here is another:
If inner classes are a new thing to you, don't use one, they can be
confusing at first.
Make a method in your Service class proper, call it from inside
AndroidServiceImpl, and then
Kostya,
Thanks for the advice I did as you have said and everything compiles.
There is still a problem, however, the notification manager does not
show the updates I am expecting.
Here is my Service Impl
public class AndroidServiceImpl extends IAndroidService.Stub{
public String
I don't see code in getAndroidText that would initialize notification.
It should be something like:
notification = new Notification(R.drawable.status_icon, Hello,
System.currentTimeMillis());
And does getAndroidText really get called? You can verify by setting a
breakpoint.
-- Kostya
I set this in my Service onCreate method and then share it through a
global variable. Should I create a new notification within the
Impl.Stub class? Do I need to remove the old notification?
Thanks again for all your help.
On Jan 9, 11:35 am, Kostya Vasilyev kmans...@gmail.com wrote:
I don't
Also double checked and it is hitting the breakpoint.
On Jan 9, 11:35 am, Kostya Vasilyev kmans...@gmail.com wrote:
I don't see code in getAndroidText that would initialize notification.
It should be something like:
notification = new Notification(R.drawable.status_icon, Hello,
How are you creating notification ?
09.01.2011 22:33, Jackie G. пишет:
Also double checked and it is hitting the breakpoint.
On Jan 9, 11:35 am, Kostya Vasilyevkmans...@gmail.com wrote:
I don't see code in getAndroidText that would initialize notification.
It should be something like:
private Notification notification;
private static final int NOTIFICATION_ID=1;
public void onCreate(){
super.onCreate();
NotificationManager currentManager = (NotificationManager)
getSystemService(Context.NOTIFICATION_SERVICE);
notification =
onCreate looks good.
A couple things jumped at me just now in your original code:
Intent notificationIntent = new
Intent(AndroidService.this,*AndroidServiceImpl.class*);
The second parameter is not a class known to Android, so the Intent is
not valid. Just because you can use a Java .class
Thanks so much for taking so much time to try and help me out. Here is
how I create the Notification
private Notification notification;
private static final int NOTIFICATION_ID=1;
protected Context context;
@Override
public IBinder onBind(Intent arg0) {
9 matches
Mail list logo