Developing Hello World Application in Blackberry
Those have experience in .net and are new to mobile application development, will find this article useful for developing your first application on blackberry mobile.
For developing blackberry mobile application you need to have pre-requisite installed on your computer (see my other article for installing pre-requites for blackberry development).
For short, you should have installed :
- Blackberry plug-in for Visual Studio 2005/2008
If you have this plug-in in your visual studio then move ahead.
Step 1.
- Open Visual Studio
- On File Menu-> New Project
- Select Blackberry from left panel -> Blackberry MDS Runtime Application
- Name your application to BlackberryHelloWold
Note: Please remember when you'll click OK "MDS development server" will start in system tray.
You'll see blackberry mobile screen available on your visual studio along with blackberry controls onto the left side.
Step 2.
- Drag a TextBox from the toolbox to the blackberry form
- Click right button of mouse on TextBox and select Properties
- In Properties window (right side), change name to txtName
- Now drag a button and drop it to the form just below the txtName (TextBox)
- Change its name to btnOK
- Change its Text to OK from Property window
- Double click on the button (btnOK)
- Form1_btnOK_Click() will be appeared in .js file (this creates .js file not cs file) and write the following in for display text in dialog box.
function Form1_btnOK_Click()
{
Dialog.display(Form1.txtName.value);
}
- Now Run your application (just click play symbol available in your visual studio)
This will start simulator (Just Looks like that you are running your application in mobile). Wait for some time your application will be loaded automatically.
Note: please check with Symentic Client Firewall this should not block your ports, otherwise your application will stuck and will not be run.
Installing BlackBerry Plug-in for Visual Studio 2005/2008
If your are new to mobile application development and having experience in .NET using Visual Studio, then this article will help you a lot for developing blackberry mobile application. What you only have to do is to download and install Blackberry Plug-ins for Visual Studio 2005/2008 and install it on your system. After installing this will give you a separate environment/template for blackberry mobile application development.
For installing BlackBerry plug-in you need to be very sure for you system configuration as follows:
System Requirements
- Microsoft® Visual Studio® 2005 or 2008 Standard or Professional
- 1 GHz processor
- 1 GB of RAM
- Windows Vista™ (32-bit), Windows® XP Service Pack 2 (32-bit), or Windows Server® 2003 Service Pack 1 (32-bit)
The BlackBerry® platform supports several different ways of developing applications. Each methodology has unique strengths, but all of them will help you leverage the BlackBerry solution’s easy connectivity and robust security.
- BlackBerry Browser Development
- Rapid Application Development (RAD)
- Java Application Development
I am going to discuss here for Rapid Application Development. Rapid application development provides you drag and drop tooling facility using Visual Studio plug-ins those are available on Blackberry website. RAD also lets you create customized user interfaces and access more advanced features. You can download tools Blackberry Visual Studio Plug-in.
Download Plug-in which is suitable for you. After downloading run downloaded file. Blackberry application development is ready for your visual studio.
Please find my other article for creating hello world application in blackberry.
Enjoy
