- Timestamp:
- 11/22/09 15:19:25 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LogicMail/src/org/logicprobe/LogicMail/PlatformInfoBB42.java
r550 r553 1 1 /*- 2 * Copyright (c) 200 6, Derek Konigsberg2 * Copyright (c) 2009, Derek Konigsberg 3 3 * All rights reserved. 4 4 * … … 31 31 package org.logicprobe.LogicMail; 32 32 33 import net.rim.device.api.system.CodeModuleManager; 34 33 35 public class PlatformInfoBB42 extends PlatformInfo { 36 protected String platformVersion; 34 37 38 public PlatformInfoBB42() { 39 } 40 41 public String getPlatformVersion() { 42 if(platformVersion == null) { 43 // Get the platform version 44 int[] handles = CodeModuleManager.getModuleHandles(); 45 int size = handles.length; 46 //Check for a particular RIM module (Here, the ribbon app) 47 for (int i = size-1; i>=0;--i) { 48 if (CodeModuleManager.getModuleName(handles[i]).equals("net_rim_bb_ribbon_app")) { 49 platformVersion = 50 CodeModuleManager.getModuleVersion(handles[i]); 51 } 52 } 53 } 54 return platformVersion; 55 } 56 57 public boolean hasTouchscreen() { 58 return false; 59 } 35 60 }
Note: See TracChangeset
for help on using the changeset viewer.
