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
BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Null Pointer Exception in Native Task Application....

You can use the CoverageInfo class to determine what type of coverage is availabe (MDS Connection Service, direct TCP, etc...).

 

You can use the RadioInfo class to determine the network the user is on and then supply the appropriate APN information.

 

How To - Specify APN information for a direct TCP connection 
Article Number: DB-00532

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To_...

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
New Developer
Posts: 24
Registered: ‎07-29-2008
My Device: Not Specified

Re: Null Pointer Exception in Native Task Application....

Thanx for the fast response,

 

I will use CoverageInfo.getCoverageStatus() to get the type of Network....so this would define wether to use deviceside=false or deviceside=true accordingly.....

 

Now,

   If i use deviceside = true we need to use the RadioInfoClass to get the apn settings and authority name and password. Am i right... or i need to remove the Network Name I am on  and then store the apn settins against it ?

 

Because in the RadioInfoClass there is a function getAccessPointName(int apnId)... what is the apnID....

 

I am sorry mark for the trouble but thanks a lot....


 

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Null Pointer Exception in Native Task Application....

There aren't any APIs that allow you to read the APN settings.  But you can store them within your application or prompt the user for them.  The RadioInfo class can be used to determine what network the user is running on.
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
New Developer
Posts: 24
Registered: ‎07-29-2008
My Device: Not Specified

Re: Null Pointer Exception in Native Task Application....

If i store the API's within the application it gets too much... I need to store a lot of them and need to be sure of the network name. Since i am not only looking for a particular country but worldwide.

What about BIS... can we use the BIS can u please tell me how.

 

I am currently in India Airtel i dont seem to be any HTTP connections going through Airtel but google talk and msn work perfectly fine. Why is that.... I am just not able to figure it out.

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Null Pointer Exception in Native Task Application....

The following document explains the options and requirements for making connections, including over the BlackBerry Internet Service.

 

What Is - Different ways to make an HTTP or socket connection
Article Number: DB-00396

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

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
New Developer
Posts: 13
Registered: ‎07-17-2008
My Device: Not Specified

Re: Null Pointer Exception in Native Task Application....

Hi Mark,

               I am trying to retrieve the RepeatRule from the ToDo list using  toSerialFormat method  of PIM but the format is not returning me the STATUS  as well as the RepeatRule, other things are getting retrieved correctly.can you please look into this ? waiting for your reply.

 

Regards,

Saumitra

Developer
Posts: 45
Registered: ‎01-05-2009
My Device: Not Specified

PIM event not available if "send using" option is set to other than default email address

hi Mark 

 

Could you please confirm if this is a bug too.

 

Hi all 

 

I have more than two email address configured to my BlackBerry(OS 4.5) and set one email address as default of my BB.

 

now if I create a new event in native calendar app and set "send using" option to my other email address (not default).

 

than in my application I m accessing the EventList 

 

(EventList)PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE);

 

that list only contains events  in which "send using" option is set to my default email address( set in default services).

 

is this the normal behavior  of the PIM EventList??

 

Thanks

 

Gautam  

 

 

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: PIM event not available if "send using" option is set to other than default email addr

Each email address has its own calendar, which has its own EventList.  You can use PIM.listPIMLists method to get a list of all event lists.
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
Developer
Posts: 45
Registered: ‎01-05-2009
My Device: Not Specified

Re: PIM event not available if "send using" option is set to other than default email addr

Hi Mark, 

 

i m using BB OS (4.5) the below code didn't return me the list of all PIM Event list 

 

  String[] lists = PIM.getInstance().listPIMLists(PIM.EVENT_LIST);

 

it only returns the default PIM Event list. 

 

Is this due to my OS version ?? will it work on OS 4.6??

 

Thanks

Gautam 

          

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: PIM event not available if "send using" option is set to other than default email addr

This feature was added in version 4.6.0, so you will only get 1 list in version 4.5.0.
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