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
Developer
neoknip
Posts: 38
Registered: ‎10-27-2010
My Device: Blackberry Torch 9800

Network Notification Popup when receiving Type 0 SMS

Hi,

I have developed my SMS application app in BB JDE 4.7 and using Blackberry Device Simulator 4.7.0(Storm).

I am using two instances of the simulator to test sending and receiving of Type 0 SMS.

When the mobile receives the Type 0 SMS, i get an global popup (Network Notification) as shown in the fig below. How to avoid this popup getting displayed?

I am able to receive the SMS and the data properly in the other simulator. But the "network notification" popup is not desired.

 

Check the code below for the SMS sending part. I am able to receive the sms properly

 

network notification popup.JPG

 

The code for sending SMS:

 

iDGC = (DatagramConnection)Connector.open("sms://+919764996160");

SmsAddress iSmsAddress;
iSmsAddress = new SmsAddress("//+919764996160");

SMSPacketHeader iSPH_Header = iSmsAddress.getHeader();
iSPH_Header.setProtocolId(SMSPacketHeader.PROTOCOL_ID_SM_TYPE0);
iSPH_Header.setMessageClass(SMSPacketHeader.MESSAGE_CLASS_0);
iSPH_Header.setMessageCoding(SMSPacketHeader.MESSAGE_CODING_8_BIT);


Datagram iDG_Message = iDGC.newDatagram(iDGC.getMaximumLength());

((DatagramBase)iDG_Message).setAddressBase(iSmsAddress);

final byte[] byMsgData = new byte[] {
0x54,
0x45,
0x21,
0x00,
};

iDG_Message.setData(byMsgData,0,byMsgData.length);

iDGC.send(iDG_Message);                        

 

 

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,685
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Network Notification Popup when receiving Type 0 SMS

I'm not able to see your screenshot.  Can you repost it?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
neoknip
Posts: 38
Registered: ‎10-27-2010
My Device: Blackberry Torch 9800

Re: Network Notification Popup when receiving Type 0 SMS

Hi Mark,

The screenshot got rejected.

Plz find the attachment for the screenshot.

Please use plain text.
New Contributor
McAllister
Posts: 7
Registered: ‎08-10-2011
My Device: Bold

Re: Network Notification Popup when receiving Type 0 SMS

[ Edited ]

hey,

is was wondering if you ever managed to resolve that issue.

thanks, sy

Please use plain text.
Contributor
dsokhan
Posts: 36
Registered: ‎07-06-2010
My Device: Blackberry Playbook tablet

Re: Network Notification Popup when receiving Type 0 SMS

What was the solution? I realy need it.

Please use plain text.