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
Contributor
ravinder_softgrace99
Posts: 15
Registered: ‎11-09-2012
My Device: 9900
My Carrier: AT &T

Update database in blackberry?

[ Edited ]

Hi friends,

 I have requirement that is update a database at specific time ?

Please use plain text.
Trusted Contributor
milanvishal
Posts: 201
Registered: ‎12-17-2010
My Device: Not Specified

Re: Update database in blackberry?

Hi,

For that I think you have to run specific thread in background which will update your database.

 

Regards,

Milan

Please use plain text.
Regular Contributor
milan555
Posts: 52
Registered: ‎07-04-2011
My Device: Bold-3
My Carrier: Developer

Re: Update database in blackberry?

Hi,

Can you please elaborate your post?

So I can understand what is your issue ?

May be then after I can help you to resolve your issue.

 

Regards

Please use plain text.
Contributor
ravinder_softgrace99
Posts: 15
Registered: ‎11-09-2012
My Device: 9900
My Carrier: AT &T

Re: Update database in blackberry?

Hi,

actually I need to send the data(like contacts) phone to remote area at  specific time  so that we have to schedule the time how can we do that?

Please use plain text.
Developer
peter_strange
Posts: 19,602
Registered: ‎07-14-2008
My Device: Not Specified

Re: Update database in blackberry?

If you are scheduling this from a Server, then ther are server mechanisms that can be used and you could then push this data to the phone.

 

if you are scheduling this on the phone, then you have two choices:

 

1) Have a background application that runs all the time, and checks the time and when it needs do, does the required processing.  Here is a KB article that should help set up the Application Program:

http://supportforums.blackberry.com/t5/Java-Development/Create-a-Background-Application/ta-p/445226

 

2) Use a start-up application to schedule the running of your Application at specifics times.  For more on the scheduling, see the API documentation for the ApplicationManager class.

Please use plain text.