Difference between revisions of "BlackBerry Concepts"
(→Building your first Java Application for BlackBerry) |
(→Building your first Java Application for BlackBerry) |
||
Line 2: | Line 2: | ||
− | == | + | == Development Environment for BlackBerry Applications using Java == |
This is a practical introduction of steps for building a BlackBerry apps using Eclipse IDE. [https://www.blackberry.com/bdsc/?iid=bdsc_DevZoneLogin&lang=na#devcon (Alan Wong - January 13, 2011)]. | This is a practical introduction of steps for building a BlackBerry apps using Eclipse IDE. [https://www.blackberry.com/bdsc/?iid=bdsc_DevZoneLogin&lang=na#devcon (Alan Wong - January 13, 2011)]. | ||
Line 17: | Line 17: | ||
|- | |- | ||
| [[File:3bb.png|left|600px]] || Goals of Hello World Application: | | [[File:3bb.png|left|600px]] || Goals of Hello World Application: | ||
+ | * run the application by adding it to the event dispatcher | ||
+ | * create a Screen and push it onto the Screen stack | ||
+ | * specify the title of a Screen | ||
+ | * display text on the screen using a RichTextField | ||
+ | * display a dialog box when the user closes the application | ||
+ | |||
+ | |} | ||
+ | ----------- | ||
+ | |||
+ | === Configuring the Project === | ||
+ | |||
+ | {| class="wikitable" border="0" cellpadding="6" | ||
+ | ! Steps !! Actions | ||
+ | |- | ||
+ | | [[File:4bb.png|left|600px]] || <source lang="xml"> | ||
+ | <Properties ModelVersion="1.1.2"> | ||
+ | <General Title="Hello World Demo" Version="0.9" Vendor="Research In Motion Ltd." Description=""/> | ||
+ | <Application Type="BlackBerry Application" MainMIDletName="" MainArgs="" HomeScreenPosition="0" StartupTier="7" IsSystemModule="false" IsAutostartup="false"/> | ||
+ | <Resources hasTitleResource="false" TitleResourceBundleName="" TitleResourceBundleRelativePath="" TitleResourceBundleClassName="" TitleResourceBundleKey="" DescriptionId=""> | ||
+ | <Icons> | ||
+ | <Icon CanonicalFileName="res\img\helloworld_jde.png" IsFocus="false"/> | ||
+ | </Icons> | ||
+ | </Resources> | ||
+ | <Compile OutputCompilerMessages="false" ConvertImages="true" CreateWarningForNoExportedRoutine="true" CompressResources="false"> | ||
+ | <PreprocessorDefines/> | ||
+ | </Compile> | ||
+ | <Packaging OutputFileName="HelloWorldDemo" OutputFolder="deliverables" PreBuildStep="" PostBuildStep="" CleanStep="" GenerateALXFile="true"> | ||
+ | <AlxFiles/> | ||
+ | </Packaging> | ||
+ | <HiddenProperties> | ||
+ | <ClassProtection/> | ||
+ | <PackageProtection/> | ||
+ | </HiddenProperties> | ||
+ | <AlternateEntryPoints/> | ||
+ | </Properties> | ||
+ | </source> | ||
+ | |- | ||
+ | |- | ||
+ | | [[File:5bb.png|left|600px]] || [http://us.blackberry.com/developers/javaappdev/javaplugin.jsp BlackBerry Java Plug-in for Eclipse] | ||
+ | |||
+ | |- | ||
+ | | [[File:6bb.png|left|600px]] || Goals of Hello World Application: | ||
* run the application by adding it to the event dispatcher | * run the application by adding it to the event dispatcher | ||
* create a Screen and push it onto the Screen stack | * create a Screen and push it onto the Screen stack |
Revision as of 23:15, 21 February 2011
Main Page · Course Description · Course Topics · Schedule, Students, Teams · Course Resources · Course Projects
Development Environment for BlackBerry Applications using Java
This is a practical introduction of steps for building a BlackBerry apps using Eclipse IDE. (Alan Wong - January 13, 2011).
Steps | Actions |
---|---|
Install, Configuration, Check | |
BlackBerry Java Plug-in for Eclipse | |
Goals of Hello World Application:
|
Configuring the Project
Steps | Actions |
---|---|
<Properties ModelVersion="1.1.2">
<General Title="Hello World Demo" Version="0.9" Vendor="Research In Motion Ltd." Description=""/>
<Application Type="BlackBerry Application" MainMIDletName="" MainArgs="" HomeScreenPosition="0" StartupTier="7" IsSystemModule="false" IsAutostartup="false"/>
<Resources hasTitleResource="false" TitleResourceBundleName="" TitleResourceBundleRelativePath="" TitleResourceBundleClassName="" TitleResourceBundleKey="" DescriptionId="">
<Icons>
<Icon CanonicalFileName="res\img\helloworld_jde.png" IsFocus="false"/>
</Icons>
</Resources>
<Compile OutputCompilerMessages="false" ConvertImages="true" CreateWarningForNoExportedRoutine="true" CompressResources="false">
<PreprocessorDefines/>
</Compile>
<Packaging OutputFileName="HelloWorldDemo" OutputFolder="deliverables" PreBuildStep="" PostBuildStep="" CleanStep="" GenerateALXFile="true">
<AlxFiles/>
</Packaging>
<HiddenProperties>
<ClassProtection/>
<PackageProtection/>
</HiddenProperties>
<AlternateEntryPoints/>
</Properties> | |
BlackBerry Java Plug-in for Eclipse | |
Goals of Hello World Application:
|