Solved

javacard communication with a midlet?

Posted on 2004-08-15
5
550 Views
Last Modified: 2008-01-09
hi all
Can one of you tell me if and how a javacard applet, residing in a SIM-card could start a J2ME-midlet
thanks for any reply
0
Comment
Question by:thomasbau
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:jimmack
ID: 11808380
There's no way to achieve this that I know of.  Under what circumstances do you want to do this and what versions of JavaCard and MIDP are you working with?
0
 

Author Comment

by:thomasbau
ID: 11808722
I want to develop a application with two main elements.
1.      A daemon with LDAP functionality waiting for bluetooth connection situated on a PC.
2.      On a mobile device, a Javacard application sending a authentication key as soon as it has found the daemon
Since PC situated in the same room and running the daemon would all detect the mobile client, the mobile device should be able to let the user choose between the PCs. So I thought having a midlet handling this.

I choose javacard because (as fare as I know) midlet can not be run as daemon and have to be activated by the user.

I’m using midp2 and thought upon using  javacard 2.2
0
 
LVL 15

Expert Comment

by:jimmack
ID: 11815397
I don't think there's anything you could do with JavaCard to cause the MIDlet to be started.

I haven't done anything with bluetooth, but I suppose it *might* be possible to have a class that implements the DiscoveryListener (if that's the right interface for the way you're designing the system) and then try to have the application run in the background (by setting the current display to null).

This would mean that you would need the user to start the application each time they switch on their phone so that the application could be put into background mode.  When a bluetooth connection is discovered, you can set the current display to something meaningful in order to bring the application to the foreground.

There are quite a few assumptions here:

1) Your MIDP-2.0 device acts on the requests to put MIDlets into foreground/background
2) I've understood the DiscoveryListener interface correctly
3) You're design mean the handset listens for bluetooth connections passively, rather than trying discovery attempts actively.
0
 

Author Comment

by:thomasbau
ID: 11819608
>>This would mean that you would need the user to start the application each time they switch on their phone so that the application could be put into background mode.  When a bluetooth >>connection is discovered, you can set the current display to something meaningful in order to bring the application to the foreground.

This was my first thought to. But can the mobile phone still react to incoming call while waiting for bluetooth connection (on my nokia wen I switch to gprs incoming call are redirected to my combox which is not the same but still give's a hint upon multitask ability).

>>3)You're design mean the handset listens for bluetooth connections passively, rather than trying discovery attempts actively.
yes the mobile device plays the server role waiting for PC asking for identification
0
 
LVL 15

Accepted Solution

by:
jimmack earned 500 total points
ID: 11820074
>> can the mobile phone still react to incoming call while waiting for bluetooth connection

I'm not sure.  This is probably handset dependent.  What happens if you do:

    display.setCurrent(null);

?

This should (hopefully) put the MIDlet into background mode.  The phone should then behave as normal for call handling etc.
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
This program is used to assist in finding and resolving common problems with wireless connections.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question