Launch a midlet from another midlet
I need to launch a midlet from another midlet that is running, is it posible and would it be?
regards in advance
[rpalomino],
You are out of luck here. The current CLDC/MIDP specification permits one only MIDlet jar file to be run at a given point in time. You can package as many class files as you wish but only one MIDlet can be launched by the kVM.
If your purpose is to write MIDlet applications that access the same data resource, then instead of launching multiple MIDlets (which is not possible), you can use the RMS data store for persistent information across the different MIDlet class file application.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/
Similar Messages
-
Can invoke MIDlet from another MIDlet?
Dear friends,
I have two MIDlet i want to invoke one MIDlet from another MIDlet based on user input. Is J2ME support this feature or not? please explain in detail.
Ex:
MIDlet1.java
MIDlet2.java
i want to access MIDlet2 from MIDlet1 as,
MIDlet1 obj = new MIDlet2();
obj.startApp();
i tried this but i didn't get any compilation error but it won't execute at run time.
please explain me if any one faced and resolve similar error.
Regards,
guna.Hi,
I wants to invoke MIDlet from another MIDlet for the following reason,
I developed a simple chat application. The MIDlets are, Sender & Receier.
Sender home window, will collect sender name,receiver name and number.
Then open another window for Messaging.
On receiver end, after receive the message the user can reply to the message,
on Reply i have to invoke Sender application which have user information (sender name,receiver name & number) to get sender name. Once i open Sender window it will take care necessary action to send the message.
Please explain me now, how to call Sender MIDlet from Receiver MIDlet.
Regards
guna. -
Need to run midlet from another midlet
Need to run midlet from another midlet
How to do it?
In my midlet user get link to web-page, and i want to start mobile browser with this page.Hi,
In order to run midlet from another midlet you may use push registry. Go through the API of that I am not sure but as far as I know push registry is the only solution to that
Sunil
Software Developer - J2ME -
Invoking a MIDlet from another MIdlet
Hi all,
Consider this scenario,
1. midlet A is running
2. runtime memory of A contains jad and jar files of midlet B in two byte arrays.
(assume some native methods which allows the applications to install, launch and remove midlet and midlet suites by passing the jad and jar files.)
3. midlet A uses launchMIDletsuite method for launching the midlet B by passing the jad and jar files.
4. what will be the state of A after B is launched. (running?, waiting?, destroyed?)5. Whether B is a subset of A. ie. Will A gets control back after B is destroyed.
6. if not, is there any way to get the control back to A?
Thanks in Advance
Nidheesh.PI can't see any needs of seperate MIDlets here.
You can use Canvases and Forms.
Your app could start with a authentication Form. If the user is invalid, show hime the registration form. -
Call Midlet from another Mitlet suite
I know that this topic has been discussed previously, but all threads I have seen are just discussing to call a Midlet in the same Midlet suit. My question is:
Can I find out what Midlets are installed and can I call a Midlet in another Midlet suite using MIDP 2.0? And if possible, how can I do this?
Thanks in advance.
StephanExplain in more detail, please. When I cause from one MIDlet another MIDlet I receive:
java.lang.SecurityException: Application not authorized to access the restricted API
at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+40)
at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+7)
at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8)
... -
Problem with calling a midlet within another midlet
hello friends,
can a create an instance of a midlet within another midlet.i tried to call , but i have got a Security exception. plz comment on this ..
regards.."For security reasons, it is assumed that MIDlets within a MIDletSuite are packaged
together for a reason and should be able to interoperate. What's implied here is that the
MIDlets share a name space; in other words, each MIDlet in the MidletSuite can "see" one
another. Because they can see one another, they can launch one another (Class.forName
metaphor).
In contrast, one MIDletSuite cannot launch another MIDletSuite. That's because they do not
share name spaces. Since the CLDC+MIDP does not have a security manager (too big and
complex for small devices), the MIDP expert group felt it more prudent to limit the interaction
of downloaded applications to those that are packaged together by the provider."extract from Sun
see http://developers.sun.com/mobility/midp/articles/pushreg/ for infos to launch MIDlets... -
How to embed and launch ipa file from another ipa package created using Air for iOS
Hi Guys,
Anybody out there knowing how to embed and launch ipa file from another ipa package created using Air for iOS ?
I am having 1 ipa file created using Xcode, Now i need to include that file in my ipa Package which is created using Flash CS 5.5 and Air for iOS. Also i need to know how to open my 1st ipa file from AS3 ?
Thanks,Hi Sir,
Thanks for your reply.
But in that case user need to download 2 applications right. I need user to download my parent application created using Flash and that package contain one more ipa created using Xcode, so from my parent app only user should able to open my 2nd app. Is there any way to do that?
Ps: I am not talking about in-app but 2 individual apps inside one package. -
Download and install a Midlet by another Midlet
Hi!
This question might have been asked already. But i really wanna know whether it's possible to write a Midlet that downloads and installs another Midlet sitting on a server.
Thank you!
GabeHi as far as i know, i tried downloading a midlet through another midlet, i used platformRequest method but i think its not implemented as its not getting me any result, so till date i havent seen anyone who has downloaded a midlet using another midlet
Regards
Amit -
Launching a MIDlet from another
Hi All!
I need to create a menu.When one selects a particular option they should be redirected to another midlet .Need basics of creating forms .
Desperately need for a project whose deadline is on our head .
How do i go abt this ?
Thanks .jhd
i, this is not big problem and u can meet ur deadline easily if i m not late to answer u.
if u want to create a main menu when u are launching and first screan appear with your midlet name then there is way to create different Midlet
and then if u are using wireless toolkit you have to goto
Settings>Midlet where u find options for that and u can set ur midlet classpath there.
you can see the game demo given in wtk23's apps folder.
and if u are suppose to wanting that ur application start with main menu and after selecting one u r agin going to nested menu and from there u want to call other midlet then u can use this code
class midlet1 extends Midlet
which u want to call from
class midlet2 extends Midlet
//here u have to destroy midlet2
//create object of midlet1
midlet1 m = midlet1();
this will simplycall to midlet1 and new object were created for that
with new display........
but for standard coding u have to use any displayable item(Form,List..)
and when u are selecting menu u just setCurrent display to this new displayble item and will work fine.
Regards,
jasmit vala -
How can I pass arguments from one MIDlet to another MIDlet
Hi everybody !
Can anybody help me in knowing that how can I pass the parameters from one
MIDlets to another one in same application.
I am devloping a application in which I am using more than two MIDlet and I
want to transfer Parameter from one MIDlet to another one.
I just explain what I have done....
I made a MIDlet "A" and "B" in the same project using NetBeans IDE.
In MIDlet "A" I create the Object of MIDlet "B" so that the constructor of
MIDlet "B" is called and parameter can be transferred.
But when I run the program it shows me two MIDlet on the screen, that I
doesn't need.
Suggestion are most welcome....
Thanks in advance
Regards
BhagwatIf you create two MIDlet in a midlet suite, it will display as you mentioned means you can't change the display style.
-
Accessing Record Store from another MIDlet.
I have made a midlet that creates a record store.After that I have created another midlet that want to acces te recordstore.
I always get an error : Cannot find record store file !
I have tried to add the 2 midlets in 1 jar each in a seperate directory but i still get this error.
CODE midlet 1 :
rs = RecordStore.openRecordStore("Services_preferences", true , RecordStore.AUTHMODE_ANY, true);
String record = "D1 D2 D3";
byte[] data = record.getBytes();
int id = rs.addRecord(data, 0, data.length);
rs.closeRecordStore();
CODE midlet 2 :
RecordStore rs = null;
rs = RecordStore.openRecordStore("Services_preferences","VendorTTUI","TTUI");
rs.closeRecordStore();
--> I use the wireless toolkit version 2.2
Can somebody help me?
thanks in advanceIt's ok, I finally figured it out!
-
How can i open a midlet in another midlet-suit?
My question is : i want to creat a midlet A. In this midlet ,i can download another midlet B and install it. The new downloaded midlet B ican be presented in a part of midlet A. In midlet A, i can open midlet B,even control it.
Is my idea impossible? or not?
i have read something about this topic,the answer is impossible. Because the CLDC is not support this method. But i am not sure it.If u know something about these ,please give me a answer!thank u!It is possible if both your MIDlets are in the same MIDletSuite - see http://forum.java.sun.com/thread.jspa?forumID=76&threadID=290808. If it's 2 MIDletSuites, then it's impossible.
Peter -
Launching a JFrame from another JFrame
Hi,
I have a JFrame containing a menu(buttons). When I click on a button, I want that it launches another JFrame.
I tried making use of the code
Process p = Runtime.getRuntime().exec("java CreateStudentRecord");
where CreateStudentRecord is the JFrame I want to launch. however this did not work.
Can anyone help me find out how I can launch another JFrame when I click on a button within another JFrame.
Thanks,
Rahul.How about just using the following:
private CreateStudentRecord csr;
JButton b1 = new JButton("New Student Record");
b1.addActionListener( new ActionListener() {
public void actionPerformed(ActionEvent e){
csr = new CreateStudentRecord().show();
Rick -
Link midlets to another midlets
i would like to link midlets to midlets without passing the commands button.
Please don't post in old threads that are long dead. Feel free to provide a link to an old thread if relevant. Moreover, you already have a thread you started on this topic.
I'm locking this thread now. It's more than 2½ years old.
db -
hello all, i am in a bit problem. i have to do a job. that is, when i will click on a SVG button, then it will call a midlet. i don't know how to do it. so please, if anyone can help me, i will remain greatful.
Get this once and for all: you cannot launch a MIDlet from another MIDlet.
If that's what you mean when you say
it will call a midletdb
Maybe you are looking for
-
Explain about transparent mode, single mode, multiple context mode
You can explain about the differents of transparent mode, single mode, multiple context mode in ASA 5500? Thank you very much.
-
Hi All, How do I display the hierarchy in my report in expanded manner by default? when I execute my query the report comes with the higher node. I manually expand the hierarchy by right clicking on it. I want to display all the nodes expanded by def
-
How to represent more categories on graph?
Hi, i have sprint names field and each sprint name is having multiple buildnames. they have different build dates. My requirement is to show: buildnames according to sprintnames on any axis and builddates should be shown. Can anyone suggest any char
-
Mail Activity visible from the sidebar. Send a message and the Mail Activity is NOT 1 of 1 but 18 of 18 - and that number keeps increasing with each message sent, which did NOT occur until installing Mavericks. Any suggestions?
-
Hello, I just got a new assignment at a company where an OIM system has been in place since 2009. The current system is running on JBOSS and version 9.0.3. The designe console shows a version conflict in production. Both test and dev environments are