Multiple application to the same project

Hi all

I wish I had 1 application runs as a service to start and another is a UIApplication to set the variable to the first application. How can I do this in the same project?

I try to separate two project but when running, I got the below error

Class 'com.mytest.phone.UserInfo' multiply defined.

The linker error: "VerifyError" for MyTestSetting_BB

Error starting MyTestSetting_BB: 'com.mytest.phone.UserInfo' multiply defined class.

Two projects use UserInfo for storing data persistenly.

Thanks in advance,

POJ

I'll just try to rephrase what Simon and Bika have already said, but otherwise it's maybe a little clearer.

The BlackBerry smartphone does not load two classes that have the same name.  Of the same name, in other words the package and class name.  If you have a PersistentData class in the com.myorg.testapp1 package, as well as in the com.myorg.testapp2 package, then here is therefore not the same thing, even if the class name is the same.

However for process objects in PersistentStore, the same class should be used.  So even though the two classes PersistentData in testapp1 and testapp2 were the same, the BlackBerry only would leave one of them extract the data.

So to store data in PersistentStore which is used by the applications of two (or more), you should use a common (shared) class.  An easy option is to use standard RIM provided classes such as vector and String.  But that can make life a bit difficult.

The simplest option is to share classes between applications.  This can be done easily in the JDE.

Step 1: You create a project that is testapp1 and another is testapp2.

Step 2: Then you create a third project of the library, which provides the object that will be stored in PersistentStore (and of course, this might have any other components shared as well).  Let's say this project is in the com.myorg.shared package.  Then com.myorg.shared we PersistentData class, she object that is persistent.

Step 3: You are doing the project two testapp dependent on the com.myorg.shared library project, just the dependencies of the project

Step 4: You import com.myorg.shared. * classes in testapp classes that use data from PersistentStore.

I presume that you can do this kind of thing in Eclipse, but I don't him did not.

Once you understand this, then you can create library files that are in independent work spaces, so that you can maintain testapp1, testapp2 and share completely separated.  But is not too far for this explanation.

But in short, you do not add the same class for two projects, you make sure that the projects share the same class.  To achieve this, have three projects, two applications and a library.

Hope it makes sense.

Tags: BlackBerry Developers

Similar Questions

  • How to allow multiple applications read the same udp port?

    Hi all!

    When I try to open the same socket udp of two different applications, I have error 60:

    'Current address of use'.

    I know it's possible.

    But how to with labview?

    Thank you.

    Guy.

    I mannaged to solve the problem. I wrote a program in c# and using the udpclient class. I activated the socket option called reuseAddress.
    only imported the dll to labview.
    I was finally able to open the udp port that has been taken by another application. Note that this could be done if the transmission was a show, but it's enough for me.

  • Export sequences from multiple agency in the same project again

    is it possible to send directly more than 1 first pro sequence to a project yet... rather than rendering in media encode everything first

    No it's not.   Export via DL again may be just the a selected sequence.

    However; You can do it in reverse.

    Still open project and import Pr sequences as much as you want through DL.  It works well.

  • Crossing of multiple applications in the same workspace

    Hi all

    I have a question about moving between pages. I have a side navigation bar with all the applications that are in the workspace with the following query in a report region:
    declare
    begin
      return(
        'select t.application_name,
                t.application_id
           from apex_applications t
          order by t.application_name');
    end;
    And for the reports attribute, I have hidden application id and a link on my field of application name and the url is the following:
    f?p=#COL02#:1:&APP_SESSION.
    My problem is that I don't want to force the 1 page reference in the url as not all applications begin on page 1. However, when I removed the reference on page 1, the link may go directly to page 0 instead of an actual page.
    My next option may be to go in one of the views apex take page min to set the page number, but that sounds like a bad hack and I prefer to use something a little more elegant than that.

    Can someone point me in the right direction?

    Thanks in advance,
    Ivan

    Ivan,

    On this basis:

    f? p = COL02 #: 1 #: & APP_SESSION.

    However, when I removed the reference on page 1, the link may go directly to page 0 instead of an actual page.

    That the link attribute looks like then? I can't imagine how you could get to page 0.

    Anyway, try this:

    Select home_link in apex_applications

    Scott

  • I want to burn multiple copies of the same project... the first is good, the following DVDs can be played on a DVD player

    When I record a video the first time, it goes through a process of "coding", then he writes the disc and the drive works fine in a DVD player. When the first copy is finished, it asks if I want to make another copy, and if I do, it does not have the encoding process (grand... saves a lot of time!) but cannot read the DVD in the DVD drive. Help!

    Hello

    Burn a multimedia disc will take time. The part which takes the longest is the encoding. Do not use your computer during this time do not verify your e-mail address, do not play a game, do not touch the mouse or keyboard.

    What software do you use to burn the DVD?

    Method 1: Make sure that the DVD burner is properly connected to your computer and powered, and that all the necessary software drivers for the DVD burner are installed. You can check your hardware settings in Device Manager by following these steps:

    1. click on Startand then click Control Panel.
    2. click on hardware and sound.
    3. click on Device Manager.

    Method 2: Reduce burning speed it burnt and check.

    Choose a speed slower burn to your DVD recorder as follows:

    a. return to the Add pictures and video to the DVD page and then click on Options.

    b. in the DVD burning speed box, select medium or slow.

    Method 3: If the previous step fails, then I suggest that you uninstall any third-party DVD burning software from the computer and check if it works.

    DVD-video burning: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/DVD-Video-burning-frequently-asked-questions

    I hope this helps.

  • Applications with the same resources of project running in LabView

    Hello

    is there a way how to force LabView running screws (apps) that share resources (screw controls etc.) as independent.

    I have a project with TCP/IP networking, it is better being debugged localhost, and two applications share a reusable code that I use (report errors, typedefs), synchronization of threads

    If I run both as screw, she eventually of course dysfunction, because both applications share a memory, which is supposed to be the current process.

    Now I have to build these Apps with debugging turned on to solve this problem, it's a lot of your time, because every code change must be to rebuild

    You have both of your applications in the same project?

    If so, try to put in different projects.  LabVIEW will create spaces separate memory for them.

  • How to switch between multiple windows in the same application?

    Hello

    I use OS X Capitan version 10.11.13 and I'm trying to find an easy way to switch between multiple windows in the same application by using CTRL + alt or different keys.

    Here is what I feel...

    Let's say I have Outlook, Google Chrome, Safari, iTunes and apps 'about this Mac' open.

    I open the new message window in Outlook and another Chrome window. I have therefore 2 separate windows in Outlook and Chrome.

    With that, I'm unable to move the composition and the window main outlook which is so annoying. Let's say I want to read the emails by the prospect main window and transfer of the content of the compose window! The command + tab doesn't take me to the main window of Microsoft outlook! Even if there were the last visited / applications window. This constraint is not intuitive, unless it can be configured in the settings?

    Strangely, I can't switch to the "about this Mac" window.

    The work around is to use the function (F3) mission button and click on the window, that I want to use or click the "Outlook" application on the dock icon and choose the window in the list.

    Does anyone know how switch between different windows in the same application by using a key combination or one another method other than listed above?

    Thank you

    Avinash

    In general, an Application that can open multiple windows provides a "Windows menu" you can choose the window you want.

  • OAM - map multiple URLS for the same web application

    Is OAM, posible to map multiple URLS to the same web application? When the user access to a different URL, it passes to the same application but set up with different strategy?

    In this case, this is the scenario that describes ROISSAC - as he says OAM cannot protect the same resource with two different strategies.

    Perhaps you could do this at the level of the network - if the two companies access the application through different proxy servers, you can use different identifiers to host for the two WebGates on proxy servers. This solution is easier to apply when there is a physical separation of users (for example, the internal/external users) rather than different users coming through the same path.

    Kind regards
    Colin

  • work on the same project simultaneously on multiple computers

    Hello!

    My company recently installed captivate 6 on 4 machines.

    I would like to know if 4 people can work on different parts of the same project simultaeously on different machines and then can consolidate into a single Captivate 6 file as a single project?

    What are the disadvantages of this... or is there any duplication of work involved in this?

    This causes problems for the project in terms of links in the project, clickboxes, etc.

    Because when I open a captivate project 4 who has had several clickboxes with a jump of X or slide setting the project in captivate 6, all the joints of mailboxes got click related to slide 1 of the project.

    Am I likely to face such questions when I'm working on a project in captivate 6 on several computers and consolidate them in the end?

    Future prospects for the answer

    Thank you

    My recommendation is that if your 'project' is the creation of a course or a number of course, then you should be modularising it so that there will be a CPTX file for each module.  No two authors can work on the same file CPTX at the same time. But if you have all of the project files saved in a repository check-in-check-out of a certain type, then you can control access as you wish.  Each author will have to check the project file, that they work, download it to the hard drive of their own PC and check it after registration and closing of Captivate.  Under no circumstances try to have authors working or access project on the network files. It's asking for trouble with file corruption.

    Another precaution to take is to have all authors use the same directory for the working files structure on their PC.  These files should be ideally NOT in their own profile folders My Documents because then the paths may not be the same.

  • IMac is not able to share multimedia files with multiple users on the same computer.

    We just bought a new IMac that we were very excited.  We have phones Apple and iPads, replacement and ten year with a new Mac old PC made since.

    Now, the trouble begins. For more than ten years Windows had several usernames on the same machine and have been able to have a shared folder only for music, pictures and video that my iTunes program and others could acsess and share from several user names. This kept all in one place for new photos families by me or my wife and our 30 gigabytes of music that comes from our CDs was available at bolt of us. Now in train to implement on IMac should be easy but is impossible.  after transferring the music to my login information, it cannot acsess all files on my login. I am not even able to share or provide his acsess. I can move the iTunes folder to my shared folder. She can get acsess now but iTunes says that the library file is locked. I worked with care from Apple on the phone for that sold, but they believe it will not be possible without creating two copies of the 30 gigabytes of music for each of us. who would take more hard drive when it failed too.  Sharing is not any help. These files were before iTunes. I'm not pay 30 dollars a month to store in icloudcor use a google reader slow to the Internet connection when everything's fine here. Apparently Applow programmers do not believe in sharing of multimedia files between two users on the same device, even if a PC does that very well. My choice here is so far have duplicates of all the photos, music and videos loaded on the disc for me and my wife, charge all the media for an external hard drive which for some reason any all Apple programs will share, or return the mac to another PC that will be able to make several connections with sharing music and photos. Apple if you are reading this you are 10 years behind on that. Not everyone is born in the last five years and bought their music on iTunes to be able to use home sharing. Home sharing cannot help this. your applications should be able to be told to use the media files shared without import copies to readers of the user. I am very disappointed. Someone else has any ideas for that?  I have pictures, not iPhoto. I have a week more to be able to return it. I'm not interested in making a fake account that is always connected to share or maintaining of me constantly connected. It should have been easy, I had to be happy to play with new software.

    Photos, iPhoto and iTunes libraries must appear on an external hard drive that is formatted as shown below to be used by multiple users on the same Mac:

    So get a properly formatted external HD and move your iPhoto/pictures of her as well as your iTunes library.  This way all your iMac users can access and use both libraries.

    An alternative to the external HD method is to partition your internal hard drive into two partitions, one for libraries.  It is formatted as shown above and be large enough to contain the libraries and allow the expansion of libraries.

  • Open/run multiple windows of the same VI

    Hello!

    In my current project, I would like to create a user open multiple windows of the same VI.  I made a re-entry VI:

    This is, actually, a very simple VI which has just a digital control, a loop and a stop button.  Then I have a VI that calls the VI re-entrant.  I would like it so that whenever the user presses the button "Call home VI", a new window of this VI is created and run.

    The first time the button is pressed, the reentrant VI opens and works very well. The title of the VI in the title bar is "Re - Entrant.vi:1 (clone)" (as expected).  When I try to launch another instance I get this error:

    I'm in LabVIEW 2009.

    Thanks for your time.

    I think you can do this with a static reference of VI, because it always points to the same instance of the VI (returning).

    You must open a new instance using Reference of VI open with option 0 x 08 (prepare environment run).

    Hope this helps,

    Daniel

  • Captivate 9 timeline weird behavior - multiple items on the same line

    I'm a 7 Captivate program migrate 9 Captivate.

    I opened 9 Captivate

    I opened the version 7 of Captivate

    Everything worked perfectly.

    All of a sudden the timeline behaves badly.

    Now when I try to change the stacking order, several objects are appearing on the same line. Some lines are empty.

    Has anyone seen this? I've included a screenshot.

    Articles 1, 2, 3 multiple items on the same line

    Point 4, lines are empty.

    Can someone provide advice?

    Thanks Lieve. I tried everything, except the reset of the workspace (don't think this!). The project was corrupt finally decided (he was not past in other projects).

    I ended up creating a new project and copied into the new project slides. It worked fine after that.

    GRR... an hour lost

  • Standard procedure to maintain two OWB application on the same database?

    I have several States. I want to deploy all the mapping of OWB States in a single server.

    My question is, do maintain us separate owbowner for each State? I need to create different workspace for each State. So, I can keep all the workspace in one owner owb? OR should I have each owner owb for every State?

    Please suggest.

    Hi Shrinika,
    I see no reason for the implementation of different 'States' mapping sepparate with workspaces.
    It is perhaps best to implement for each 'State' with sepparate project or the same module (in the same project) in the same workspace.

    At least in the case of multiple spaces of work/projects (for each ' State') you will have problem with integration of maps in unique processflow...

    Kind regards
    Oleg

  • How to prevent a user from opening multiple instances on the same computer?

    On site oldnavyweekly.com , there is a .swf which prevents users to open multiple instances of the site at the same time on the same computer. If you open the site and try to open it again in another window, it will not load. Cannot open the site again until the first window is closed. How did they implement this?

    My analysis, that is NOT:
    1. cookies - the block always takes place if you try to open it in Internet Explorer and also try to open it in Firefox at the same time.
    2 flash Cookies - the block always takes place if I disable flash cookies.
    3 IP Based Block - you are not blocked if you open the site on two separate computers with the same outgoing IP address. From my analysis, their server does not help in the block at all.

    It seems as if their .swf creates a sort of object throughout the global system which can be detected in other instances of the application on the same computer. How did they implement this?

    Thank you!

    use localconnection.  everyone has a localconnection to send and a receiving localconnection.  the lc reception closes the current application.

  • I use Thunderbird on multiple computers to the same gmail account but I have a laptop with little memory, so I need this laptop only to download a few files

    I use Thunderbird on multiple computers to the same gmail account. I have a small laptop with very little memory and it runs out of disk space when it downloads all my folders. I would only download some of my file on the laptop, but keep all the folder on my other computers because they do not have problems with disk space. When I unsubscribe records in 'manage folder subscriptions' then he cancels his subscription on all my computers, not just the laptop. When I go to 'Properties' on the folder and sets 'retention individual police' these settings are not applied at all. What can I do?

    All of the messages in each folder will appear in your message list. But this does not mean all the bodies of messages are downloaded, if you have properly configured the parameters of the disk. If what I described above stuck in your settings then Message body should be downloaded only 'on demand' when you click on each message.

    To confirm this install the addon glodaquilla, which has a column "on the disk" that indicates if a message is on the disk. If you want, after you have installed the addon set Thunderbird to work offline, so it does not download message body when you click in the list of messages.

Maybe you are looking for