"CDC JNI P990i UIQ3"

Basically a blog which is a mixture of anything that comes up in the author's mind. From the technologies that makes his life convenient to the everyday news in his country.

"CDC JNI P990i UIQ3"

Tuesday, March 18, 2008

(1) Comments

My CDC JNI Codes:
[code]
//.pkg
#{"eplDll DLL"},(0xAFFFFFFE),1,0,0
;Localised Vendor name
%{"eScience"}
;Unique Vendor name
:"edwardpantojalegaspi"
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\eplDll.dll" -"!:\sys\bin\eplDll.dll"

//bld.inf
PRJ_PLATFORMS
WINSCW GCCE
PRJ_EXPORTS
..\inc\eplDll.h
eplDll.def
PRJ_MMPFILES
eplDll.mmp

//definition file
EXPORTS
jni_lookup @ 1 NONAME

//mmp file
TARGET eplDll.dll
TARGETTYPE dll
UID 0x00000000 0xAFFFFFFE
USERINCLUDE ..\inc
SYSTEMINCLUDE \epoc32\include \epoc32\include\libc \Symbian\UIQ3SDK\Extensions\Sony_Ericsson_CDC_Platform_1\epoc32\include
SOURCEPATH ..\src
SOURCE eplDll.cpp
SOURCE eplDllDllMain.cpp LocationInfoNative.cpp lookup.cpp
//#endif
LIBRARY euser.lib estlib.lib Etel3rdParty.lib
CAPABILITY LocalServices Location NetworkServices ReadDeviceData ReadUserData UserEnvironment WriteDeviceData WriteUserData
//JNI related
NOSTRICTDEF
DEFFILE .\ eplDll.def
EXPORTUNFROZEN
MACRO J9EPOC32
#if defined(WINS)
MACRO J9X86
#endif

//java native
public static native String getIMEI();
public static native String getIMSI();
public static native String getAreaCode();
public static native String getOperatorName();
public static native String getCellID();
public static native String getCountryCode();
public static native String getNetworkID();
[/code]

1 Response to ""CDC JNI P990i UIQ3""

wl said :
June 24, 2008 at 12:28 AM
Great post, congrats with success.
How do u think, it's possible to "port" j2me implementation from IMB J9 MIDP for Windows Mobile?

Post a Comment

Contributors