List of all Iphone and Blackberry Development codes in a one click Iphone,objective C,xcode,blackberry Development,iOS Development

Wednesday, March 6, 2013

BlackBerry Enterprise Server (BES)

The BlackBerry Enterprise Server is designed to be a secure, centralized link between an organization's wireless network, communications software, applications, and BlackBerry devices. The BlackBerry Enterprise Server integrates with an organization's existing infrastructure, which can include messaging and collaboration software, calendar and contact information, wireless Internet and intranet access, and custom applications, to provide BlackBerry device users with mobile access to the organization's resources.

The BlackBerry Enterprise Server supports Advanced Encryption Standard (AES) and Triple Data Encryption Standard (Triple DES) encryption to help protect and maintain the integrity of wireless data that is transmitted between the BlackBerry Enterprise Server components and BlackBerry devices. Administrators can choose from more than 450 IT policy rules that they can configure to control the features of the BlackBerry devices that are used in the organization's environment.

The BlackBerry Enterprise Server supports several optional components and configurations to meet the organization's requirements. The BlackBerry Collaboration Service integrates with supported third-party instant messaging servers to permit users to access the organization's instant messaging system from their BlackBerry devices using a BlackBerry instant messaging client. The BlackBerry MDS Integration Service supports custom application development and distribution. Administrators can configure the BlackBerry Enterprise Server and the BlackBerry Enterprise Server components to support high availability to enhance the consistency and reliability of the organization's environment.
  



            

Blackberry Device characteristics

Device characteristicMethod
Identity
simulatorDeviceInfo.isSimulator()
manufacturerDeviceInfo.getManufacturerName()
device nameDeviceInfo.getDeviceName()
PINDeviceInfo.getDeviceId()
IMSISIMCardInfo.getIMSI()
ESNCDMAInfo.getESN()
MEIDCDMAInfo.getHexMEID()
IMEIGPRSInfo.getIMEI()
owner informationOwnerInfo.getOwnerInformation()
owner nameOwnerInfo.getOwnerName()
vendor IDBranding.getVendorId()
branding data versionBranding.getVersion()
is branding data signedBranding.isDataSigned()
Battery
battery level (%)DeviceInfo.getBatteryLevel()
detailed battery informationDeviceInfo.getBatteryStatus()
battery temperature (°C)DeviceInfo.getBatteryTemperature()
battery voltage (mV)DeviceInfo.getBatteryVoltage()
battery removableDeviceInfo.isBatteryRemovable()
Speaker/Headset
audioAudio.isSupported()
codecs supportedAudio.isCodecSupported()
volume level (%)Audio.getVolume()
built-in headsetAudio.hasBuiltInHeadset()
headset connectedAudio.isHeadsetConnected()
Accelerometer
accelerometerAccelerometerSensor.isSupported()
Flip Sensor
flip open or closedSensor.getState()
flipSensor.isSupported()
Holster Sensor
in holsterSensor.getState()
holster sensorSensor.isSupported()
Slide Sensor
sliding keyboardSensor.isSupported()
slide openSensor.isSlideOpened()
slide closedSensor.isSlideClosed()
slide movingSensor.isSlideInTransition()
Display
horizontal resolution (pixels per meter)Display.getHorizontalResolution()
vertical resolution (pixels per meter)Display.getVerticalResolution()
drawable area height (pixels)Display.getHeight()
drawable area width (pixels)Display.getWidth()
number of display colorsDisplay.getNumColors()
subpixels? backlight requiredDisplay.getProperties()
Backlight
backlight onBacklight.isEnabled()
backlight brightness (%)Backlight.getBrightness()
backlight brightness configurableBacklight.isBrightnessConfigurable()
backlight brightness default (%)Backlight.getBrightnessDefault()
default backlight timeout (s)Backlight.getTimeoutDefault()
L.E.D.
LEDLED.isSupported()
multi-color LEDLED.isPolychromatic()
Radios
supported wireless access familiesRadioInfo.getSupportedWAFs()
GPS
GPSGPSInfo.isGPSModeAvailable()
default GPS modeGPSInfo.getDefaultGPSMode()
Bluetooth
BluetoothBluetoothSerialPort.isSupported()
Bluetooth informationBluetoothSerialPort.getSerialPortInfo()
Phone
phone numberPhone.getDevicePhoneNumber()
voice mailPhone.isVoiceMailIndicatorOn()
Memory
flash memory size (bytes)DeviceInfo.getTotalFlashSizeEx()
free flash memory (bytes)Memory.getFlashFree()
get RAM statistics objectMemory.getRAMStats()
OS and software
platform versionDeviceInfo.getPlatformVersion()
software versionDeviceInfo.getSoftwareVersion()
Camera
cameraDeviceInfo.hasCamera()
USB port
USB portUSBPort.isSupported()
USB connection stateUSBPort.getConnectionState()

Programmatically Power OFF Blackberry Device

net.rim.device.api.system.Device.requestPowerOff(true);


        

Tuesday, March 5, 2013

Email Address Validation in Blackberry

 If validateEmailID returns true, then the entered email address is valid.

public static boolean validateEmailID(String email) {
        email = email.trim();
        String reverse = new StringBuffer(email).reverse().toString();
        if (email == null || email.length() == 0 || email.indexOf("@") == -1) {
            return false;
        }
        int emailLength = email.length();
        int atPosition = email.indexOf("@");
        int atDot = reverse.indexOf(".");

        String beforeAt = email.substring(0, atPosition);
        String afterAt = email.substring(atPosition + 1, emailLength);

        if (beforeAt.length() == 0 || afterAt.length() == 0) {
            return false;
        }
        for (int i = 0; email.length() - 1 > i; i++) {
            char i1 = email.charAt(i);
            char i2 = email.charAt(i + 1);
            if (i1 == '.' && i2 == '.') {
                return false;
            }
        }
        if (email.charAt(atPosition - 1) == '.' || email.charAt(0) == '.' || email.charAt(atPosition + 1) == '.' || afterAt.indexOf("@") != -1 || atDot < 2) {
            return false;
        }

        return true;
    }