Package net.rim.device.api.system

Examples of net.rim.device.api.system.ApplicationDescriptor


    mCodeTextView = new LabelField("", FIELD_VCENTER);
    mCodeArea.add(icon);
    mCodeArea.add(mCodeTextView);

    ApplicationDescriptor applicationDescriptor = ApplicationDescriptor
        .currentApplicationDescriptor();
    String version = applicationDescriptor.getVersion();
    mVersionText = new LabelField(version, FIELD_RIGHT | FIELD_BOTTOM);

    add(mCheckCodeTextView);
    add(mCodeArea);
    add(mVersionText);
View Full Code Here


* Checks for software updates and invokes a callback if one is found.
*/
public class UpdateTask extends Thread {

  private static String getApplicationVersion() {
    ApplicationDescriptor app = ApplicationDescriptor
        .currentApplicationDescriptor();
    return app.getVersion();
  }
View Full Code Here

  private static String getPlatformVersion() {
    ApplicationManager manager = ApplicationManager.getApplicationManager();
    ApplicationDescriptor[] applications = manager.getVisibleApplications();
    for (int i = 0; i < applications.length; i++) {
      ApplicationDescriptor application = applications[i];
      String moduleName = application.getModuleName();
      if (moduleName.equals("net_rim_bb_ribbon_app")) {
        return application.getVersion();
      }
    }
    return null;
  }
View Full Code Here

    mCancelButton.setChangeListener(this);
    buttons.add(mSubmitButton);
    buttons.add(mClearButton);
    buttons.add(mCancelButton);

    ApplicationDescriptor applicationDescriptor = ApplicationDescriptor
        .currentApplicationDescriptor();
    String version = applicationDescriptor.getVersion();
    mVersionText = new LabelField(version, FIELD_RIGHT | FIELD_BOTTOM);
    add(manager);
    add(buttons);
    add(mVersionText);
  }
View Full Code Here

    mUserList = new PinListField();
    mUserAdapter = new PinListFieldCallback(mUsers);
    setAdapter();

    ApplicationDescriptor applicationDescriptor = ApplicationDescriptor
        .currentApplicationDescriptor();
    String version = applicationDescriptor.getVersion();
    mVersionText = new LabelField(version, FIELD_RIGHT | FIELD_BOTTOM);
    mStatusText = new LabelField("", FIELD_HCENTER | FIELD_BOTTOM);

    add(mEnterPinTextView);
    add(mUserList);
View Full Code Here

    // 1. Register folders and application descriptors ----------------------
    ApplicationMessageFolderRegistry reg = ApplicationMessageFolderRegistry.getInstance();
   
    // Some context menu items don't need a GUI (e.g. an item for deleting a
    // message) and will be run in the current daemon application.
    ApplicationDescriptor appDescr = new ApplicationDescriptor(ApplicationDescriptor.currentApplicationDescriptor(),new String[]{});
   
    CustomMessageStore messages = CustomMessageStore.getInstance(GUID);
    ReadableListImpl inboxMessages = messages.getInboxMessages();
   
    ApplicationMessageFolder inbox = reg.registerFolder(CustomMessage.INBOX_FOLDER_ID, _folderName, inboxMessages);
View Full Code Here

    }
    }
   
    public static void registerType(int type, String newImage, String readImage){
      ApplicationMessageFolderRegistry reg = ApplicationMessageFolderRegistry.getInstance();
      ApplicationDescriptor appDescr = new ApplicationDescriptor(ApplicationDescriptor.currentApplicationDescriptor(),new String[]{});
     
     
    // 2. Register message icons -------------------------------------------
      newImage = newImage.length()==0?MessageListNamespace.getInstance().getDefaultNewImage():newImage;
      readImage = readImage.length()==0?MessageListNamespace.getInstance().getDefaultReadImage():readImage;
View Full Code Here

        _daemonStore.getCommandQueue().removeAllElements(); // clear all commands

        _commandListener = new CommandListener();
        _commandListener.start();
       
        _uiAppDesc = new ApplicationDescriptor( ApplicationDescriptor.currentApplicationDescriptor(), PushPersistentStore.getAppDescArgs() );
       
        EventLogger.logEvent( WidgetProperties.getInstance().getGuid(), "PushDaemon is started.".getBytes() );
    }
View Full Code Here

        EventLogger.logEvent( WidgetProperties.getInstance().getGuid(), ( "Check if application is running" ).getBytes(),
                EventLogger.DEBUG_INFO );
        if( !ApplicationRegistry.isAppRunning() ) {
            EventLogger.logEvent( WidgetProperties.getInstance().getGuid(), ( "Launch application" ).getBytes(),
                    EventLogger.DEBUG_INFO );
            ApplicationDescriptor newAppDesc = new ApplicationDescriptor( _uiAppDesc, new String[] { _entryPage } );
            try {
                ApplicationManager.getApplicationManager().runApplication( newAppDesc, false );
            } catch( ApplicationManagerException e ) {
                EventLogger.logEvent( WidgetProperties.getInstance().getGuid(), ( "Error launching UI" ).getBytes(),
                        EventLogger.ERROR );
View Full Code Here

            }

            // An application could have multiple entry points and each entry point has its own icon.
            // We need to update icons for all entry points to be the same one.
            Bitmap image = Bitmap.createBitmapFromBytes( vc.getArray(), 0, vc.size(), 1 );
            ApplicationDescriptor current = ApplicationDescriptor.currentApplicationDescriptor();
            int moduleHandle = current.getModuleHandle();
            ApplicationDescriptor[] descriptors = CodeModuleManager.getApplicationDescriptors( moduleHandle );
           
            if( args.length == 1 || !( (Boolean) args[ 1 ] ).booleanValue() ) {
                for( int i = 0; i < descriptors.length; i++ ) {
                    HomeScreen.updateIcon( image, descriptors[ i ] );
View Full Code Here

TOP

Related Classes of net.rim.device.api.system.ApplicationDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.