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

Web and WebWorks Development

Reply
Highlighted
Developer
Posts: 86
Registered: ‎06-05-2009
My Device: Bold 9900 7.1
My Carrier: T-Mobile Germany
Accepted Solution

Start Widget in Background

Hi,

 

Is there a way to start a Widget application in the background, when the device starts like it is in Java applications using the entry point?

 

regards,

 

Nallo

Developer
Posts: 482
Registered: ‎10-24-2008
My Device: 9300
My Carrier: AT&T

Re: Start Widget in Background

Currently, there is not a way to start a widget on device boot. 

 

I'm also waiting for this feature. I have seen talks of this being in an upcoming widget update.

_________________________________________
www.jasonmace.com/blackberry
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Start Widget in Background

This is a feature that is planned for the next release of the software Smiley Happy

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 8
Registered: ‎04-21-2010
My Device: BlackBerry Tour 9630
My Carrier: Sprint

Re: Start Widget in Background

Hi Tim,

 

I think I've figured out a way to make this work in the current release, but it would be great if others can verify.  I will post the steps to my solution shortly.

 

-Eric Michaels

New Developer
Posts: 8
Registered: ‎04-21-2010
My Device: BlackBerry Tour 9630
My Carrier: Sprint

Re: Start Widget in Background

Hi All,

 

Here are the steps that I use to configure a widget to auto-run using VS 2008.  It seems to work with the simulators as well as when the widget is deployed through BES 5.0.   Please give it a try and let me know if it works for you. 

 

  1. Create a new BlackBerry Widget project in VS 2008.  Name it "AutoRunWidget".
  2. Build the solution with the Build->Build Solution menu command or F6.
  3. Use windows explorer to navigate to the project folder and drill down into the bin\OTAInstall folder. 
  4. Locate the AutoRunWidget.jad file within the OTAInstall folder.
  5. Right click the AutoRunWidget.jad file and select the "Copy" command.
  6. Navigate up two levels to the main project folder (the one the contains index.htm and config.xml).
  7. Paste AutoRunWidget.jad file into the main project folder.
  8. In VS 2008 solution explorer, click the "Show All Files" button.  You should now see the AutoRunWidget.jad file above the config.xml and index.htm files in the list (Fig 1).
  9. Right-click on the AutoRunWidget.jad item and select "Include In Project" menu command (Fig 2).
  10.   In the properties window, change the "Build Action" attribute for the AutoRunWidget.jad file to "Compile" (Fig 3).
  11.   Double-click the AutoRunWidget.jad file to view it in the VS 2008 editor.
  12.   In the AutoRunWidget.jad file content, change the line that reads "RIM-MIDlet-Flags-1: 0" to "RIM-MIDlet-Flags-1: 1" (Fig 4). 
  13.   Save and close the AutoRunWidget.jad file.
  14.   Clean the solution with the Build->Clean Solution command.
  15.   Rebuild the solution with the Build->Rebuild Solution command.

That's it!   Please note that whenever you make changes to the config.xml file, you will need to repeat steps 4 through 15 so that those changes are reflected in the .jad file. 

 

Coming soon: 

 

- How to configure a widget to auto-run using Eclipse.

- How to deploy a widget to the device home screen instead of the "Downloads" folder.

 

 

Fig 1. 

autorun3.png

 

 

Fig 2.

2480i8ABEEED5F65FD33E

 

 

Fig 3.

2481iAB3E1E95B62AA59C

 

 

Fig 4.

2482i353552E8D425305B

 

Developer
Posts: 86
Registered: ‎06-05-2009
My Device: Bold 9900 7.1
My Carrier: T-Mobile Germany

Re: Start Widget in Background

Thanks jmace, Tim for your clarification(s).

I am eagerly awaiting the next release Smiley Wink

*Note to myself: don't ask the when question, he will only be annoyed by it* Smiley Very Happy

 

Eric, this looks quite impressive. I will test that in a few days.

Thanks for sharing Smiley Happy

Developer
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2

Re: Start Widget in Background

[ Edited ]

 


Nallo wrote:

Hi,

 

Is there a way to start a Widget application in the background, when the device starts like it is in Java applications using the entry point?

 

regards,

 

Nallo


just forget what I wrote Smiley Happy

 



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Developer
Posts: 86
Registered: ‎06-05-2009
My Device: Bold 9900 7.1
My Carrier: T-Mobile Germany

Re: Start Widget in Background

Your words are riddles to me. What might that mean? What did you write?

Smiley Indifferent *this is my confused face*

 

Sorry for being slow

Developer
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2

Re: Start Widget in Background

 


Nallo wrote:

Your words are riddles to me. What might that mean? What did you write?

Smiley Indifferent *this is my confused face*

 

Sorry for being slow


dont worry Smiley Happy I just overread "...when the device starts..." and made a suggestion that would be apparently wrong Smiley Wink

 



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Developer
Posts: 86
Registered: ‎06-05-2009
My Device: Bold 9900 7.1
My Carrier: T-Mobile Germany

Re: Start Widget in Background

[ Edited ]

Hi,

 

I was now able to test it with the Eclipse-Plugin.

You can skip steps 9 - 11 and it works like a charm. Love it Smiley Happy

 

Thank you.

 

Nallo