• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Run one separate application from another

 
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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE 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
 
Ranch Hand
Posts: 1902
Hibernate Spring Java
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic