언어 설정

Menu
Sites
Language
i want to get other application infrom

hi i`m newbee developer of tizen. now i`m study native tizen app

i develop tizen launcher application, and i need another application information(app name, icon etc.......)  that was already installed .

how can i get information?? thk u

Responses

7 댓글
Alex Ashirov

Hi,

Please take a look at the following classes:

Tizen::App::Package::PackageManager

Tizen::App::Package::PackageAppInfo

정민 성

Thk u ur help.

i search that class and find some function that was clue my problem.

for example GetAppCategoryListN() or GetPackageInfoListN() ...etc...

but. i didn`t no idea how get this method

i was try

IList* p = Tizen::App::Package::PackageAppInfo::GetAppCategoryListN();

that but some problem has occur.

could u please give me little example? thank you

Alex Dem

Hi,
Did you add namespace for IList?
using namespace Tizen::Base::Collection;

To use GetPackageInfoListN() you should get instance of the Package Manager before:
using namespace Tizen::App::Package;
...
   PackageManager* pPackageManager = PackageManager::GetInstance();
   IList* pPackageInfoList = pPackageManager->GetPackageInfoListN();

Alexey.

Alex Dem

You could try to look at this example also:
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.appprogramming/html/guide/app/package_namespace.htm
To use GetAppCategoryListN you should get  PackageAppInfo pointer before (you could use something like this) :      
...
PackageInfo* pPackageInfo = static_cast< PackageInfo* >(pPackageInfoList->GetAt(i));
AppId appId = pxPackageInfo->GetMainAppId();
PackageAppInfo *pxPackageAppInfo =pxPackageInfo->GetPackageAppInfoN(appId);
IList* p=PackageAppInfo-> GetAppCategoryListN();
....

Alexey.

Alex Dem

Hi,
To detect some info about installed on device apps (your device should be plugged)  at first:
You could use sdb to switch into 'root' account mode (usually most of files are hidden on FileSystem).
For Win:
C:\tizen-sdk\tools>sdb root on
and pull the files from device to your PC using IDE->Connection Explorer -> Right click on folder/file -> Pull the file

Your widget structure (for web apps) repeated exactly here:
/opt/usr/apps/yourAppID/res/wgt
Display name could be be found in config.xml in tag 'name'
Relative path to icon is pointed in tag 'icon'
default path is:
/opt/usr/apps/yourAppID/res/wgt/icon.png
Alexey.

정민 성

thank you Alex

i try get appname list 

if that work finish i`ll do your answer

thank`s your help 

가빈 이

아, 이거 답변이 이상하게 안올려지네요. 

gabin0801@gmail.com 요기로 연락주시면 해결방법 알려드릴게요.