• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run one separate application from another

 
Vlad Golodov
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to run one application, which is stored in a jar file from another application, which is stored in another jar file?

1. For example, I have written a midlet and want to run a Snake game, which is usually standard game in the phone. Is that possible?

2. Another situation is when I make 2 applications, put them into Applications folder and try to run one from another.

Interrested in making that under a Nokia Series 60.

Thanks in advance,

Vlad
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To answer both of your questions, the answer is no. MIDlets can call other MIDlets only when they are within the exact same MIDlet suite. No other times can you call an outside program like Snake. While calling Snake might be harmless, calling some other outside programs could really damage someone's phone and make the user angry. It is all for security and protection that MIDlets run in a complete sandbox on its own.

Mark
 
Vlad Golodov
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answer.

But what do you think about Push?
http://jan.netcomp.monash.edu.au/internetdevices/wireless/midp2.0.html

It seems to work in a simulator, but when I try to download an application to my mobile phone, it writes "Invalid application". Probably my phone does not like a line like a "MIDlet-Push-1: socket://:79, com.sun.example.SampleChat, * " in my jad file.

Any ideas?

Thanks,

Vlad
 
Theodore Casser
Ranch Hand
Posts: 1902
Hibernate Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found that some phones are very fussy things. I've written applications that work just fine in the emulator, but won't load with the JAD (or at all) on a device. It's just a matter of how tolerant the device is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic