I have written 2 apps: 'MyAppA' and 'MyAppB'. MyAppB is an optional app and can be called from MyAppA if the user chooses. I have that aspect working but what I want to be able to do is disable the button in MyAppA if the user does not have MyAppB installed. I want that to happen when MyAppA is started.
I know the package name 'com.MyAppB' but have not found how to check if it is installed so that I can enable / disable the button in MyAppA.
I only need to know if MyAppB is installed.