Friday, December 9, 2011
How to Install Application to use the Desktop Manger .
Wednesday, December 7, 2011
BlackBerry Push Notification Server Code in J2SE
In BlackBerry Push Notification three type entity use.
1.Server
2.Mobile
3.BIS
Here i clarify the Server Code.
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import java.util.Vector;
import javax.net.ssl.HttpsURLConnection;
public class Pusher {
private static String _appid = "xxx-xxxxxxxxxxxxxxxx";
private static String _spacers = "mPsbVQo0a68eIL3OAxnm";
private static String _auth = "Basic <base64token>"; // Replace <base64token> with your userid:password encode, http://bit.ly/diYQUr enter APPID:PASS and encode
private static String _pushurl = "https://pushapi.eval.blackberry.com/mss/PD_pushRequest";
private static String _uagent = "Hallgren Networks BB Push Server/1.0";
private static boolean _output = false;
public static boolean pushMessage(Vector<String> pins, String msg) {
if (pins.isEmpty())
return false;
if (msg.equals(""))
return false;
String pushid = "" + System.currentTimeMillis();
String delivebefore = getDeliveryTime();
StringBuffer dataToSend = new StringBuffer();
dataToSend.append("--" + _spacers + "\r\n");
dataToSend.append("Content-Type: application/xml; charset=UTF-8\r\n\r\n");
dataToSend.append("<?xml version=\"1.0\"?>\r\n");
dataToSend.append("<!DOCTYPE pap PUBLIC \"-//WAPFORUM//DTD PAP 2.1//EN\" \"http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd\">\r\n");
dataToSend.append("<pap>\r\n");
dataToSend.append("<push-message push-id=\"" + pushid + "\" ");
dataToSend.append("deliver-before-timestamp=\"" + delivebefore + "\" ");
dataToSend.append("source-reference=\"" + _appid + "\">");
for (int i = 0; i < pins.size(); ++i)
dataToSend.append("<address address-value=\"" + pins.elementAt(i) + "\"/>");
dataToSend.append("<quality-of-service delivery-method=\"unconfirmed\"/>\r\n");
dataToSend.append("</push-message>\r\n");
dataToSend.append("</pap>\r\n");
dataToSend.append("--" + _spacers + "\r\n");
dataToSend.append("Content-Type: text/plain\r\n");
dataToSend.append("Push-Message-ID: " + pushid + "\r\n");
dataToSend.append("\r\n");
dataToSend.append(msg + "\r\n");
dataToSend.append("--" + _spacers + "--");
printer("-------------------------------------------------------------------");
printer(dataToSend.toString());
printer("-------------------------------------------------------------------");
URL url;
HttpsURLConnection connection = null;
try {
url = new URL(_pushurl);
connection = (HttpsURLConnection) url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "multipart/related; boundary=" + _spacers + "; type=application/xml");
connection.setRequestProperty("User-Agent", _uagent);
connection.setRequestProperty("Authorization", _auth);
connection.setDoInput(true);
connection.setDoOutput(true);
DataOutputStream wr = new DataOutputStream(connection.getOutputStream());
wr.writeBytes(dataToSend.toString());
wr.flush();
wr.close();
BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = rd.readLine()) != null) {
sb.append(line + '\n');
}
printer(connection.getResponseCode() + " | " + connection.getResponseMessage());
printer(sb.toString());
if (sb.toString().contains("code=\"1001\""))
return true;
return false;
} catch (Exception e) {
printer(e.getMessage());
return false;
} finally {
if (connection != null) {
connection.disconnect();
}
}
}
public static String getDeliveryTime() {
Date now = new Date(System.currentTimeMillis() + 300000);
SimpleDateFormat d = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
d.setTimeZone(TimeZone.getTimeZone("GMT"));
return d.format(now);
}
private static void printer(Object response) {
if (_output)
System.out.println(response);
}
/*
public static void main(String[] args) {
Vector<String> v = new Vector<String>();
v.add("12345678");
if (pushMessage(v, "message"))
System.out.println("Sent Ok");
else {
System.out.println("Returned False");
}
/////////////////////////// Or send to all
Vector<String> v1 = new Vector<String>();
v1.add("push_all");
if (pushMessage(v, "message"))
System.out.println("Sent Ok");
else {
System.out.println("Returned False");
}
}
*/
}
How get Device Pin Number?
In BlackBerry we get all device info to Use the DeviceInfo api but there are some problem when we get the PIN number means PIN number get into Int so those pin number convert into Hexadecimal so check this code.
int pin = DeviceInfo.getDeviceId();
String pinNumber = Integer.toHexString(pin);
Tuesday, December 6, 2011
Below Point are mention it
// OS 4.5 - 5.0int mh1 = CodeModuleManager.getModuleHandle("net_rim_bb_lbs"); // OS 6.0
int mh2 = CodeModuleManager.getModuleHandle("net_rim_bb_maps"); if (mh1 == 0 && mh2 == 0) { Dialog.alert("BlackBerry Maps not installed"); }Saturday, October 31, 2009
CMS: Build, Deploy, and Maintain Content-Rich Websites
Web content management systems are installed to abridge and simplify the whole process of content creation. It is software or a program that automates the website submission to the search engines to gain much improved business revenue and site traffic, efficiently manages the content with a lot of ease. Some most common examples of content management systems are Joomla, Wordpress, Php Web site and phpbb2.
Today, on the grounds of its commendable efficiency and simplicity, the popularity of CMS has reached to an acme where a huge number of people are using it. Besides, giving the power of easy content management to the administrator, the system ensures to save a lot of working on every single web page separately. Huge scope of functionality, addition of new dynamic categories and new module, customized to work within the system are some of the other few benefits that act as a catalyst when it comes to considering the option of buying CMS. However, before purchasing any content management system, it is important for the webmaster to understand and gauge all the essential components of the system.
The first and foremost thing to consider is the list of features. In addition to the very imperative WYSWIG editors and some sort of security parameters, your CMS should also have certain built in components:
- Deeply inquire about the granular security model. Figure out if it is role-based and can easily be integrated into your existing security model. Also, it should let right people access the right content and work with the content as per the business requirements.
- Check for all built-in navigation components as they are very useful for having easy and quick creation of horizontal and vertical menu bars, bread crumbs along with category precise menus if required.
- The software must contain all major components required for social media purposes such as blogs, personalized web pages, forums, photo galleries and web messages.
- It must carry tools that are used on companywide purposes like news release manager or a FAQs component.
- Document management is also an imperative component. Mostly, it is incorporated in the web content management system and as otherwise, you may have to deal with an entirely new set of purchase orders, licensing fees and sales agreement.
Some other additional requirements that you must check for are:
- Training and support
- WYSIWG editors
- Easy and quick page template creation along with the feature to create replica of the already existing pages and or templates
- Built-in components for the creation of feature rich user experience with images, calendars, blogs, video and audio.
- Globalization features that facilitate the conversion of entire website content into any other local language.
BrainPulse website development India and have a very good experience in implementing most of the Content Management System Based Websites, CMS Solutions India along with custom plug-in module development.
Article Source: ArticlesBase.com - CMS: Build, Deploy, and Maintain Content-Rich Websites
Wednesday, October 21, 2009
Hire PHP developer - Outsoruce PHP Programmer

Author: Rightway Solution
In the fast changing world of web development it is really necessary to be adaptive to new technologies for becoming a budding developer. PHP is one of the best scripting language. PHP web development is gaining more and more attention day by day. PHP is easy to use and with help of Open source very effective to implement. For remaining forefront in the competitive world of development Outsourcing can be the best solution. There are lots of highly developed outsourcing web development firm provides skilled and experienced PHP developer for hire. Many companies are deploying the strategy of outsourcing web development need.
Small and medium sized businesses are running of a tight budget. So for getting best quality work in affordable price, outsourcing is the key. Some best outsourcing firm like Rightway solution can provide quality web application development and software development work with in affordable price. You can outsource for any kind of web application development, Enterprise application development, portal development, real estate website development. PHP is increasingly becoming popular in web development industries as it is open source server side scripting language that helps to develop dynamic websites as well as customize web applications.
If you are looking for low cost, good quality work by experienced and technically sound PHP Programmers then outsourcing is the way to get it done effectively. Offshore IT staffing is gaining more and more popularity. PHP gives support to different databases including the popular ones like MySQL, Oracle, Informix, Sybase, Solid, Generic ODBC, PostgreSQL, etc. PHP Programming functionality can be changed according to needs of every business. Besides developing website PHP can be used for developing Enterprise solutions like shopping cart with Content Management System (CMS).
One of the best PHP Open source is Joomla. Joomla website development is very easy and time saving. One can build a website instantly using Joomla. So when you plan to build enterprise applications it’s advisable to use Joomla as CMS as it is an open source which can be customized according to our needs.
Rightway solution is a leading web application development and software development company. Hire PHP developer, PHP programmers, PHP developers team for cost effective PHP web development.
About the Author:Rightway Solution is one of the leading outsourcing companies in India, trusted by web development companies to deliver cost effective website Solution, web site development and SEO expertise.
Article Source: ArticlesBase.com - Hire PHP developer - Outsoruce PHP Programmer
Wednesday, October 14, 2009
Understanding Data Management and Data Security

Companies today have so much data that flows in and out of the office that they need an effective system in place to manage all this data in a way that makes sense and from which all employees benefit. Data management is becoming more and more important as the volume of data that a company deals with on a daily basis needs to be sorted, delivered, and utilized. For small companies this usually isn't an issue as they can easily manage and store their data on computer servers. However, large companies have too much data to store in one place so that all employees can access it when necessary. This is where data management becomes crucial to the company.
There are many ways to achieve data management in these days of high technology. One of the most common methods of data management is to purchase software that does the managing for you. There is software available that will organize data into categories and divisions that have been designated by the company. This software can be installed on as many company computers as needed so that no data has the potential to get lost. Many companies will also update the education of several employees by having them earn a certificate in data management. This means that one or more employees are responsible for the management of data. They need to learn effective ways to sort and store this information so that it is accessible and findable by all other employees. Part of data management is knowing what information to keep and what information is irrelevant to the successful operation of a company.
There are many ways that a company can have their employees earn a certificate in data management such as online courses offered that an employee can complete either on company time or on weekends. There are also data management courses that are offered at community colleges around the country.
Source: Free Articles
