Kindly help me to know if an app is already installed or not (given package id)

Kindly help me to know if an app is already installed or not (given package id)

BY 04 Jun 2017 Native Application Development

bool IsAppInstalled(char * appID){

—-

— 

return true/false 

}

 

I am quite new to c/c++ 

Assist me in completing above function where I just know the app package id (for example com.domain.test) and I want to know if any app with the package ID is already installed or not.

Also, tell what libraries need to include. Also, tell if some permission is required etc.

Thank you very much for kind consideration.

regards,

Written by