|
|
Classification: |
Java |
Category: |
JNI |
Created: |
07/01/99 |
Modified: |
09/11/2002 |
Number: |
FAQ-0244 |
Platform: |
Not Applicable |
|
Question: Can I set up a callback from my Java code to notify my Java app whenever an event of interest occurs in native code?
Answer: If the event is a system event (such as those delivered by RChangeNotifier), then yes you can do this by spawning a daemon thread from the Java side. This thread can then report back with a Java event whenever the native event it is listening for occurs. An example of this is provided in the ELocale example project downloadable from the Symbian Developer Network Web site. If you want to listen for more than one type of native event, that should also be possible with the use of Active Objects. |
|
|