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
mnandi
Posts: 16
Registered: ‎12-13-2009
My Device: Not Specified

Accessing custom ringtone field in ContactList using NotificationsConstants.CUSTOM_TUNE_NAME

Hi viewers!


CUSTOM_TUNE_NAME - Static variable in interface net.rim.device.api.notification.NotificationsConstants.

Context key to indicate there is a custom tune for this incoming message/call

 

Can anyone show me the path, how would I use this static variable to access my custome ringtone field

which I have added as a personalized tone in my Contact list.


Please anyone show me the path very much thankful to u.

If possible write with small code as example.


Thanks

Please use plain text.
New Developer
mnandi
Posts: 16
Registered: ‎12-13-2009
My Device: Not Specified

Accessing custom ringtone field in ContactList using NotificationsConstants.CUSTOM_TUNE_NAME

I saw in this forum that this is not supported but its clearly wriiten with this static varible that

This Context key to indicate there is a custom tune for this incoming message/call.

 

Please tell me how would I use this to get custom-tune-field NAME

 

Thanks

Please use plain text.
Developer
Atraxis
Posts: 27
Registered: ‎09-04-2009
My Device: Not Specified

Re: Accessing custom ringtone field in ContactList using NotificationsConstants.CUSTOM_TUNE_NAME

I'm not that experienced, but i would go for the JSR 75 FileConnection Api, using, resp. importing javax.microedition.io.file

 

Then probably something like:

try {

    FileConnection storeDirectory = (FileConnection)Connector.open("file:///store/");

} catch (IOException e) {

}

 

Hope this helps.

 

Please use plain text.