jueves, 22 de marzo de 2012

BlackBerry - Notifications and Background app

I know it's a mess with all this background application, notifications and more. So I decided to put all together and share it here.

If you need to do one (or more) of the stuff I'll enumerate here, well, this post is for you!

1) Don't want to deal with PUSH but you need to show a LED notification in your BlackBerry?
2) Want to show a custom icon on your BlackBerry desktop?
3) Want to run a task (Thread) in the background and make your own auto-start application?

You can find all these tasks by following this link. Enjoy!

Don't forget to set your AppDescriptor.xml


<Properties ModelVersion="1.1.2">
  <General Title="" Version="1.0.0" Vendor="BlackBerry Developer" Description=""/>
  <Application Type="BlackBerry Application" MainMIDletName="" MainArgs="gui" HomeScreenPosition="0" StartupTier="7" IsSystemModule="false" IsAutostartup="true"/>
  <Resources hasTitleResource="false" TitleResourceBundleName="" TitleResourceBundleRelativePath="" TitleResourceBundleClassName="" TitleResourceBundleKey="" DescriptionId="">
    <Icons>
      <Icon CanonicalFileName="res/img/icon.png" IsFocus="false"/>
      <Icon CanonicalFileName="res/img/icon_focus.png" IsFocus="true"/>
    </Icons>
  </Resources>
  <KeywordResources KeywordResourceBundleName="" KeywordResourceBundleRelativePath="" KeywordResourceBundleClassName="" KeywordResourceBundleKey=""/>
  <Compile OutputCompilerMessages="false" ConvertImages="true" CreateWarningForNoExportedRoutine="true" CompressResources="false" AliasList="">
    <PreprocessorDefines/>
  </Compile>
  <Packaging PreBuildStep="" PostBuildStep="" CleanStep="" OutputFileName="_Notification" OutputFolder="deliverables" GenerateALXFile="true">
    <AlxFiles/>
  </Packaging>
  <HiddenProperties>
    <ClassProtection/>
    <PackageProtection/>
  </HiddenProperties>
  <AlternateEntryPoints/>
</Properties>