Solved

javacard communication with a midlet?

Posted on 2004-08-15
5
495 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
>>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
Comment Utility
>> 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

MAC Filtering: MAC filtering is like handing a list of names to a doorman. If someone comes to the door and mentions a name, this name is checked by the doorman on his list and granted or denied access by this. This means that if someone menti…
Need WiFi? Often, there are perfectly good networks that don't have WiFi capability - and there's a need to add it.  - Perhaps you have an Ethernet port into a network but no WiFi nearby. - Perhaps you have a powerline extender and no WiFi at the…
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…

743 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

8 Experts available now in Live!

Get 1:1 Help Now