How to implement JNI code in Ericsson's SDS/IMS framework
Tech-Today

How to implement JNI code in Ericsson's SDS/IMS framework


My CDC JNI Codes:

//.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();




- How To Implement A Lazydatamodel With Size In Primefaces
This solution is ideal if you have a list of entities or a named queries that return a list of entities. For example let's say we have an entity user and we want to return all the users with role=x. @NamedQueries({ @NamedQuery(name = "User.listUsersByRoles",...

- How To Execute A Group By And Sum Query In Entity Framework
The following code is the native sql with the converted code in entity framework. It queries the sum of quantity group by branch, model, year and week no. //native sql select weekyear, weekno, branchid, modelid, sum(quantity) from selloutmobiles where...

- Injection Of Control In A C# Console Application
Now that I'm working with C# MVC3, I learned that it's easier to setup Injection of Control because of several available plugins that you can use straightly after install. For example the one I'm using is Unity.MVC, in Visual Studio 2010 you...

- How To Use Pmd With Eclipse
This tutorial will explain how to use PMD (http://pmd.sourceforge.net/) with eclipse. What you need: 1.) eclipse-java-helios 2.) PMD (download the latest version here: http://pmd.sourceforge.net/). Extract in c:\java a.) From here you can download a zipped...

- Copy A File From Desktop/pc To A Pda Or Mobile Device And Vice Versa Using Rapi Api
Objective: -To copy a file from desktop to a pda device and vice versa using RAPI API. -http://msdn.microsoft.com/en-us/library/aa921197.aspx Requirement: -microsoft activesync must be installed -of course either .net framework 2 or greater To implement...



Tech-Today








.