11.07.2015 Views

Development Techniques for Native/Hybrid Tizen Apps

Development Techniques for Native/Hybrid Tizen Apps

Development Techniques for Native/Hybrid Tizen Apps

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3 rd Party lib Dynamic Linking//get a lib Pathwchar_t const * const LIB_NAME = L"lib/lib<strong>Hybrid</strong>ServiceLib.so";<strong>Tizen</strong>::App::App *pxApp = <strong>Tizen</strong>::App::App::GetInstance();String libPath = pxApp-> GetAppRootPath();libPath.Append(LIB_NAME);//get initialized instance of Library<strong>Tizen</strong>::Base::Runtime::Library library;result r = library.Construct(libPath);//get a function pointervoid *pMethod = library.GetProcAddress(L"CalculateMd5");pCalculateHash = reinterpret_cast(pMethod);//use the functionpCalculateHash(pByteArray, byteArrayLength);26

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!