Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 11
Registered: ‎03-26-2009
My Device: Not Specified

How to check the Notification profile is already registered.

 

Issue is :  The application profile is resetting when update the application.

The changes made by the user is resetting after update the application.

 

 I think we should execute the code only if the profile is not existing.

 

So how can we check our application profile is exist or not ? !

 

The code we are using to register profile is :

 


 
public static final Object event = new Object() {
 
public String toString() {
   
return "Application Title";
 
}
 
};

 
NotificationsManager.registerSource(ID, event,
   
NotificationsConstants.IMPORTANT);
 

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to check the Notification profile is already registered.

i register the notification provider only on autostart

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
Posts: 11
Registered: ‎03-26-2009
My Device: Not Specified

Re: How to check the Notification profile is already registered.

 

"i register the notification provider only on autostart"  .. could you please explain what it means

 

FYI: the device will restart after update the application

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to check the Notification profile is already registered.

you can use an alternate entry point to execute code only at startup.

 

sample:

http://supportforums.blackberry.com/t5/Java-Development/Define-a-rollover-icon-for-an-application/ta...

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
Posts: 11
Registered: ‎03-26-2009
My Device: Not Specified

Re: How to check the Notification profile is already registered.

Hi,

 

yes we are using alternate entry point.

 

I thought it will also execute when rebooting the device.

 

ok, I wil check it and come back tomorrow.