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

Null Pointer Exception in Native Task Application....

When i create a new ask and setRepeatRule(null) the task application crashes when i open that particular task.
Please use plain text.
Forums Advisor III
bumblepie
Posts: 1,054
Registered: ‎05-23-2008
My Device: 8110, 8300, 8800, 8700, 9000

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

Not sure if this is related, i was too impatient to wait for it to load up on my sreen..

 

http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=9461716&sliceId=&dialog...

 

 

or http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=SWDXJDEEN-027000&sliceI...

 

***************************************************************************************************
If your issue is resolved, put a checkmark in the green box that contains the resolution.
OR
If it was just/or also really helpful - Give it a Kudos.. Go on Mate.. Help the rest of the clueless blackberry user world find their answer too..
~Gday from Down Under~
Please use plain text.
New Developer
sandeepasrani
Posts: 24
Registered: ‎07-29-2008
My Device: Not Specified

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

there is nothing mentioned in this document regarding RepeatRule for ToDo... I am desperate.... and getting frusrated ... :smileysad:
Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

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

What BlackBerry model and handheld software version are you testing this one?  You can find this under Options, About on the BlackBerry.  What version of the BlackBerry JDE are you using?
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.
New Developer
sandeepasrani
Posts: 24
Registered: ‎07-29-2008
My Device: Not Specified

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

Using 4.2 version .....

 

And even i cannot set REMINDER on 4.3.... I can set the REMINDER but i can never see it in the native application and also when i try to retreive the value using countValue(REMINDER) it comes 0 and also when i try to get the date part REMINDER it crashes.... :smileysad:

Please use plain text.
New Developer
sandeepasrani
Posts: 24
Registered: ‎07-29-2008
My Device: Not Specified

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

Hi Mark,

         No reply from you. on the same.

Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

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

I have been able to reproduce this issue.  It has been sent to our development team.
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.
New Developer
sandeepasrani
Posts: 24
Registered: ‎07-29-2008
My Device: Not Specified

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

Thanks Mark,

         

         IF you do not mind i am facing a few other problems. Let me know if i am doing something wrong.

 

1. All Day Events are stored according to GMT on the device. When we retrerive it we obviously substract or add the appropriate millisecond depending on the time zone to retreive these events. So say i am on Pacific Time. I substract 7hrs from 12:00 AM to retrevie the AllDay event. So to the EventList.items i give GMT 12:00 as start & GMT 12:05 for end to remove all events starting at that time. I get the item properly. If i set a Recurrence Daily on these all Days I get only the first event dont get the subsequent events. I do give false in items function to retreive the recurrences.

 

2.  Can i read Email messages from the INBOX only... what if i have another email account setup on my handheld is it possible to read those emails. Because some how i cannot read the emails on the other email account.

 

Thanks For your response. I will keep posting bugs of blackberry that we face out here so that you ll can fix it in the subsequent JDE's.

Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

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

Can you provide a code sample for #1?

 

#2 is possible.  Please have a look at the link below that has samples that show how to traverse through email folders.

 

What Is - Application is not notified when new messages arrive
Article Number: DB-00153

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/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
Please use plain text.
New Developer
sandeepasrani
Posts: 24
Registered: ‎07-29-2008
My Device: Not Specified

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

Hi Mark,

      Sorry for the late reply. As far as the email thing works i guess. Thanks for the solution i will test it out over a few days and get back to you on it.

 

       You wanted the code for the all day thing so i just put a small snippet.

 

Calendar calMeeting = Calendar.getInstance();

calMeeting.set(Calendar.HOUR_OF_DAY,0);
calMeeting.set(Calendar.MINUTE,0);
calMeeting.set(Calendar.SECOND,0);

calMeeting.set(Calendar.MILLISECOND,0);

 

long allDayEventStart = calmeeting.getTime().getTime();

 

long diffZones = Calendar.getInstance().getTimeZone().getRawOffset();

if(Calendar.getInstance().getTimeZone().useDaylightTime())

{
    diffZones += 3600000;
}

 

allDayEventStart = start + diffZones;

 

 

long allDayEventEnd = allDayEventStart  + 300000

 

enumAllDay = eventList.items(EventList.STARTING,allDayEventStart,allDayEventEnd,false);

 

 

This returns me the first day event properly but it does not return any recurring events.

 

Please use plain text.