Multiple JAVA files

If I have two completely independent java applications, is it possible for me to combine them into a single application and create a menu item to switch between the two?

In general Yes, but you might find a few details make it more complicated.  And there is an alternative, which I will describe...

First option.  Suppose you have two applications of type standard RIM, each pushing a screen.  Call these form A and B.  Combine, and then have your push button main display 1 - which can have two buttons there that push the screen 1 and 2 respectively.  Aside from that, you may well leave two applications only, they will work OK regardless, assuming that they have different class/package names.

Another alternative is to create another entry.  You have your standard application that pushes the screen has.  Create a spare entry, by specifying a different key chain (we say what he said 'B' as a parameter).  Now in the main() method, check the 'B' and then create another instance of the Application and a completely separate 'enterEventDispatcher which pushes the screen B.  This will give you two different applications, with two different icons, but only one set of cod.

Not sure about the second option (two different icons), but thought that I will mention it for completeness.

Tags: BlackBerry Developers

Similar Questions

  • How to write several unique java class in the java file?

    Hello
    I use Jdev 11.1.2.0.0.

    When I write the java class, I wrote in my file of multiple class. This time Jdeveloper advise that, move this class into distinct java file.
    But I don't want to go, without moving this class it works perfectly. But it is what tells the error indicator 'red '. How to solve this problem.

    Kind regards
    Rami

    Hello

    its an audit rule that is facing you. You can go to tools-->--> Audit preferences and disable it if you are more disturbed.

    Frank

  • Clink Manager. script/util/common js by default Java files are not included

    Clink Manager. script/util/common js by default Java files are not included. I got this when I tried to send pictures to Walgreens.

    What it means

    Hello

    1. what browser you use to upload photos?
    2. If you use Internet Explorer (IE), then what version?
    3. What is the format of the files you are trying to download?

    If you use Internet Explorer, then try to reset IE and check if it helps.

    Refer to this article for help:
    http://support.Microsoft.com/kb/923737

    Note: the Internet Explorer the reset parameter would delete all browsing history, saved passwords and forms on your computer.

    Please provide us with some information so that we can help you solve the problem.

    Kind regards
    Afzal Taher - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • multiple cod files appear at signing - app installs

    Hello.

    As shown in the picture below, when I connect my BB app, multiple cod files appear. I would like to know how I can remove additional cod files, since I'm not able to install the application to all the

    any help will be appreciated

    When you perform an OTA you must copy created cod and change the zip extension. Extract the cod shipped and download those individual on the server with the jad download.

  • Open multiple PDF files in a single window

    When you open multiple PDF files, we want to open in a window/instance of Adobe and then just several tabs for each PDF file that is open.

    Y at - it a setting or a difficulty to get there?

    Yes, it's a screenshot of CD player. This is a free update, and DC can open all older versions of PDF.

  • compilation of the java file error

    Dear

    Us on r12 12.1.3 and jdevloper 12 Downalod aron Patch 9879989

    When compile the java file on recovery server an error

    javac HelloAMImpl.java

    HelloAMImpl.java:3: cannot accessoracle.apps.fnd.framework.server.OAApplicationModuleImpl

    bad class file: /apps/applmgr/ebs/apps/apps_st/comn/java/classes/oracle/apps/fnd/framework/server/OAApplicationModuleImpl.class

    class file has wrong version 49.0, should be 48.0

    If please remove or make sure it appears in the correct subdirectory of the classpath variable.

    Import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;

    ^

    1 error

    any idea.

    Run following command to confirm javac is located here # ls.../apps/tech_st/10.1.3/appsutil/jdk/bin/javac

    Expect to see javac.

    Now add this directory in the path environment setting at the beginning

    export PATH=.../apps/tech_st/10.1.3/appsutil/jdk/bin:$PATH

    When you call javac, explicitly states its full path slot under... / apps/tech_st/10.1.3/appsutil/jdk/bin/javac.

  • A script that will count the total number of pages into multiple PDF files in a batch file?

    Is there a script I can use ExtendScript Toolkit that will count the total number of pages into multiple PDF files in a batch file?

    In another discussion I showed a JavaScript that you can use to write the number of pages to the console in a batch sequence. You would do exactly the same thing in Action, so the action would consist of a simple JavaScript (more tools > run JavaScript) which includes the code.

  • Select multiple PDF files and share them [iOS]

    I use adobe Acrobat reader on my iPad and I would select several files and share them. Is this possible?

    Hi davidw26200688,

    I'm sorry ts not possible to share multiple PDF files at the same time in the iPad, however as a work around you can try to send the pdf by linking them directly to your email in PDF share also share the PDF by email.

    Kind regards

    Nicos

  • java file on the server call

    Hello. I created the file directory on my server and the java file loaded through Resource Directory Oracle to the developer. How can I call and run this file through SQL developer and use someday in the Apex. Thank you.

    Sorry, I forgot to mention the PL/SQL Wrapper. Here's the complete code:

    SQL> create or replace and compile
      2  java source named "HelloWorld"
      3  as
      4  public class HelloWorld {
      5     public static String changeCase(String inputValue){
      6             return inputValue.toUpperCase();
      7     }
      8  }
      9  /
    
    Java created.
    
    SQL> create or replace function changecase(p_inp varchar2) return varchar2
      2  as language java
      3  name 'HelloWorld.changeCase(java.lang.String) return java.lang.String';
      4  /
    
    Function created.
    
    SQL> select changecase('abc') chcase from dual;
    
    CHCASE
    --------------------------------------------------------------------------------
    ABC
    
  • Need more information about EO, VO and AM *.java files

    Hello
    Friends and experts, I need your help in learning OAF.
    I'm new to OAF and want to know more information about the following java classes.

    When I created a simple search with EO, VO and AM page, the following java classes are created.
    I want to know
    What is it?
    What to do with it?
    where do use us it?
    The sample scripts if possible?


    EOImpl.java
    Please correct me if I am wrong, I know that we use it to manipulate data for a particular line, such as getattribut, setattribute, delete, update, insert operations. There are different methods are been created when you create the OS if you select options in the method "generate" during step 4 on Assistant EO.

    EOCollImpl.java
    ???

    VOImpl.java
    ???

    ViewRowImpl
    ???

    AMImpl.java
    ????

    Thank you
    Sri.

    Hi Sri,

    EO:
    Entity objects are essentially based on a single table that encapsulate business rules. These objects are used by the OAF page to perform update/insert/delete operations.
    Inside of the EOImpl.java you will find setter() and the get accessor () Java methods that we call like accessor and mutator, each OT attribute is mapped to the column in the database table.
    You can also generate a create method Validate () method.
    For example: to get the value of the sequence in the OPS, you can use method Create().

    VO:
    VOImpl (VO): He just consist of an sql database query, you have probably noticed during execution of a query for example: VO.executeQuery ();
    to run any validation it provides iteration and access to the rows in its result set.

    VoRowImpl: Represents an individual line in a view object.

    You will understand when you write code using objects /voRowimpl voimpl

    AmImpl:
    It basically performs the business logic, we will define our methods to implement the business logic.
    For example: you can call a controller method and set the Amimpl.java method, you can use the initialization of the request or
    you make the DML operation, etc...

    Summary : the main reason why we have java file divide between EO, VO, AM is because OFA is designed with MVC design model.
    in other words, isolate the responsibility of the code in each layer (model, view, controller). His bad habit of writing
    all of the code in a single class file.

    For example: controller class should accept the per-user setting and move these parameters files BC4J (AMImpl.java) and his work as the AMImpl.java
    to execute the business logic and return the result back to the controller.

    To apply the standard of coding MVC, model design, we have these java files EO, VO, AM, CO. with more practice, you will understand the different
    methods defined in each of these java files.

    Had

  • IDCS6 MACOSX JS: data merge multiple txt files one after the other

    Hello everyone.

    I have a situation where I have to data merge multiple text files to a single file indesign real "base". Databases formats are the same, the point of difference is a code in the second field of the database that refers to a postal box (not a zip/postal code, a code of 'distribution center' that has possibilities of 56 or greater). I would prefer data merge a file and then somehow split the PDF via Acrobat, but the length of postal areas resulting is incompatible and something that cannot be done if the document "split" feature in acrobat.

    The database starts as one massive file but using a one line code, can be divided into postal areas in separate text files.

    My last question: is it possible data merge several files at the same time (for example one after the other) and to give them their names based on the names of the input text file?

    OLE Kvern had a script to merge the data to a file without the user interface. I changed the last line slightly so that it generates a PDF file based on [high quality]:

    if(app.documents.length != 0){
            var myDocument = app.activeDocument;
            app.dataMergeOptions.removeBlankLines = true;
            //Select a source file.
            var myDataFile = File.openDialog("Select a data file")
            var exported = "file location(redacted for the sake of this post)"
            if(myDataFile != ""){
                    myDocument.dataMergeProperties.selectDataSource(myDataFile,);
                    myDocument.dataMergeProperties.exportFile(exported,"[High Quality Print]",);
            }
    
    }
    

    I guess that the answer has to do with the variable "myDataFile" and rather than just being open a dialog box, it could be somehow by selecting a table of text files, but it is where I am out of my depth.

    Ideas or thoughts which may not involve trying to do both the many mergers, but can somehow revolve around a great fusion of PDF?

    Thank you very much

    Colin

    Since writing my last response, I realized there was a better answer. It is a scenario of Peter Kahrel and a modified version of a script by Olav Kvern. Details can be found here: batch of merge data | Adobe Community

    I have since made other mods to the script is easier to understand:

    if(app.documents.length != 0){
    // make sure to use the document that is open
            var myDoc = app.activeDocument;
    // get the name of the document that is open for future naming purposes
            var myName = myDoc.name
    // get the location of the folder that contains both the indesign files and the text files
            var myLocation = "FULL PATH LOCATION OF FOLDER CONTAINING TEXT FILE AND DESTINATION FOR FINAL PDFS"
    // define the names of the data files to use based upon the names of the indesign files
            var myImport = myLocation + myName + ".txt"
    // define the names of the data merged PDFs to be created
            var myExport = myLocation + myName + ".pdf"
    // the actual engine for the merge, including DM instructions such as remove blank lines, object fitting etc.
            var myDataFile = myImport
            app.dataMergeOptions.removeBlankLines = true;
            if(myDataFile != ""){
                    myDoc.dataMergeProperties.selectDataSource(myDataFile,);
                    myDoc.dataMergeProperties.exportFile(myExport, "[PDF/X-1a:2001]", );
            }
    
    }
    

    If this script will automatically merge a file which is open as LONG as the data file is the same name as the indesign file with .txt at the end for example

    Woodward.indd (indesign file)

    Woodward.indd.txt (used for merging text file)

    This script does still not the original memory and who was using an indesign document, to browse for many text files and merging of PDF based on text files.

    HOWEVER, I am sure that the answer to that is based only on the use of the script above (no need to Peter batch convert script) and changing the line 9 to be a loop for... but again, this is where I come to a grinding halt. Any help would be appreciated.

    Colin

  • Unable to replace the java file of pof next to cluster

    Hello

    I, I run the CacheServer, he takes the default cache configuration file which is contact-cache - config.xml and it will by default class ContactInfo.Java POF is good when is of substituting eventhough I put the custom class pof in the same place (where is located the ContactInfo.java) and giving the same path in the overloaded POF file. .. the DefaultCacheServer gives the exception (classNotFoundException)...

    But I can replace the file config.xml - pof... Because if I gave ContactInfo.java pof class, then it works but if I give class custom pof then Server gives the exception...



    I need to insert around 60 columns in the cache server... even if I'm inserting 60 of the .NET client, it takes only 5 columns in java side (default POF - contactInfo)...

    Please help me...


    Thanks in advance...

    Published by: 862347 on August 4, 2011 05:29

    Hello

    When you run the server from the ContactCache.Java folder it does not use the ContactInfo.java file as it's source code , it uses the compiled file ContactInfo.class from inside the lib\custom file - types.jar.

    If you want to change the ContactInfo.java class, then you must change the source code, which I assume that you did, and then compile it and put the class compiled on the path of the file lib\custom class istead - types.jar.

    JK

  • Open multiple JPEG files in Camera RAW

    I can open a single jpeg in Camera RAW by changing the Camera RAW format option.  If I want to process multiple images at the same time, in Camera RAW, I lose the Camera RAW format option.

    Is it possible, in the elements, open several JPEG files in Camera RAW format?

    Mary Lou

    Unfortunately, you can't open multiple JPEG files in camera raw at the same time

  • I can't seem to figure out how to import multiple XML files in Flex

    I can't figure out how to import multiple XML files in Flex and connect it to the DataGrids. Does anyone have ideas how to make this happen?

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

    < s:creationComplete >
    <! [CDATA]
    loader.addEventListener (Event.COMPLETE, getData);
    loader.load (new URLRequest ("http://www.student.hint.no/~100471/mmt134/images/Reiseregning-Konradi_Kare_2011-01-30.xml"));   

    []] >
    < / s:creationComplete >

    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >

    < fx:Script >
    <! [CDATA]
    var testData:XML;

    var loader: URLLoader = new URLLoader();

    public void getData(E:Event):void {}
    testData = new XML (E.currentTarget.data);
    grid.dataProvider = testData.descendants ('TravelSpecificationVO');
    }

    []] >
    < / fx:Script >

    < mx:TabNavigator "22.7" = x y = '39.35' width = '536' height = "312" >
    < s:NavigatorContent label = "Tab 1" width = "100%" height = "100%" >
    < mx:DataGrid = "1.3" x = "-2.35" width = "507" height = "269" id = "grid" >
    < mx:columns >
    < mx:DataGridColumn dataField = "to_destinasion" headerText = "Til destinasjon" / >
    < mx:DataGridColumn dataField = "from_date" headerText = "Klokkeslett" / >
    < mx:DataGridColumn dataField = "from_destinasion" headerText = "Fra destinasjon" / >
    < mx:DataGridColumn dataField = "to_date" headerText = "Klokkeslett" / >
    < / mx:columns >
    < / mx:DataGrid >
    < / s:NavigatorContent >
    < s:NavigatorContent label = "hkuhk" width = "100%" height = "100%" >
    < / s:NavigatorContent >
    < / mx:TabNavigator >
    < / s:Application >

    Hope this helps you:

    
    
     
      
     
    
     
      
       
       
       
       
      
     
    
    
    

    Let me know if you need additional information.

    Best regards

    Pablo Souza

  • How to create a DataControl from the Java file

    How to create a data from the Java file control

    Hello
    Try like that after the example, you will get the answer

    1. Create Page.java

    public class {Page}
    private String pageName;
    private String pageAction;
    public Page() {}
    Super();
    }

    public Page (pageName, pageAction String String) {}
    Super();
    this.pageName = name of the page;
    this.pageAction = pageAction;
    }

    {} public void setPageName (String pageName)
    this.pageName = name of the page;
    }

    public String getPageName() {}
    Returns the name of the page;
    }

    {} public void setPageAction (String pageAction)
    this.pageAction = pageAction;
    }

    public String getPageAction() {}
    pageAction return;
    }
    }

    2. create PageList.java

    import java.util.ArrayList;
    import java.util.List;

    public class PageList {}

    private pages = new() ArrayList list;

    public PageList() {}
    Super();
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    }

    public void setPages (list of pages ) {}
    This.pages = pages;
    }

    public {list getPages()
    return pages;
    }
    }

    3. right click in the PageList.java and choose CreateDataControl

    then refresh the DataControl and focus on which a DataControl as PAgeList will be created

    Kind regards
    Felix

Maybe you are looking for

  • Request for recovery!

    In windows 7, which was on my BOOTCAMP, I used the disk to shrink drive "C:\" management ", and then creating a score more. It caused the failure of startup of WINDOWS and MAC OS! Unfortunately, even when I used Internet recovery and then disk utilit

  • Lost my Gmail, he was here yesterday and gone today?

    I can't find my Gmail. When I try to go to my mailbox / Gmail, he says: "page isn't redirecting properly»

  • HP Pavilion 15 laptop: HARD drive SSD update for HP Pavilion 15 laptop

    Hey there! I own a HP pavilion 15 notebook PC, [model number: F6C42PA #ACJ]. Currently, it is equipped with a 1 TB SATA HARD drive. I was going to upgrade to SSD. Kindly guide me through the steps and the compatible products. Also is there a simple w

  • Update still shows as needed to download even after installation.

    An update that has been downloaded and installed is always displayed as a new update available in my Windows 7, 64-bit system.  When you view the history of update, it shows as being installed. still Windows Update still shows as a new update availab

  • I get the error code 0 x 80240036 when you try to install the updates.

    I just be reformatted my old pc. Dell Dimension 5000, 9 years. Windows XP. I try to use the windows updates, but he repeats to me "the website has encountered a problem and cannot display the page you are trying to view. The options provided below mi