Solved

javacard communication with a midlet?

Posted on 2004-08-15
5
512 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
checking for updates 11 59
Ubiquity UNify UAP problem with link flapping 10 48
Computer certificates or user certificates 2 50
Cisco 5508 controller parsing error 4 20
Multi-source agreements are important because they set standards that all manufacturers should follow to ensure that devices are compatible with multiple vendors. The multi-source agreement (MSA) is an agreement that establishes how multiple vendors…
DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now