Solved

javacard communication with a midlet?

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article is a step by step guide on how to create a basic PTP link using Ubiquiti airOS devices. This guide can be used on the following Ubiquiti AirMAX devices. Nanostation, Bullets, AirBridge, Nanobeam, NanoBridge to name a few. Please review …
Using in-flight Wi-Fi when you travel? Business travelers beware! In-flight Wi-Fi networks could rip the door right off your digital privacy portal. That’s no joke either, as it might also provide a convenient entrance for bad threat actors.
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…

821 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