Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not sure if this is what you looking for, but let me suggest something to get you started (<em>probably</em>)</p> <p>For the sake of example, say, in your application, for instance, you have 2 buttons (instead of 5)</p> <p>BUTTON 1 and BUTTON 2.</p> <p>When you start your application, check if the necessary applications (third party to your own application) are installed or not using the <a href="http://developer.android.com/reference/android/content/pm/PackageManager.html" rel="noreferrer"><code>PackageManager</code></a></p> <p>This is a pseudo code that I use in my app to check if Google Maps is installed or not on the users device:</p> <pre><code>boolean installedMaps = false; // CHECK IF AN APPLICATION IS INSTALLED PackageManager pkManager = getPackageManager(); try { PackageInfo pkInfo = pkManager.getPackageInfo("com.google.android.apps.maps", 0); // REPLACE THIS "com.google.android.apps.maps" WITH THE ACTUAL PACAKAGE NAME // Log.e("pkInfo", pkInfo.toString()); installedMaps = true; } catch (NameNotFoundException e) { e.printStackTrace(); installedMaps = false; } </code></pre> <p>If the <code>boolean installedMaps</code> returns <strong>true</strong>, enable the button. Otherwise, prompt the user to with a Dialog to download the application off Google Play.</p> <p>And do this for each function you need to Activate or Deactivate.</p> <p>NOTE: You will need to know the Package Name of the other application for that. If you do not know it, it can be found by running the application on your device and checking the logcat.</p> <p>If you also need to share Content between all concerned application, you might also consider making use of <a href="http://developer.android.com/guide/topics/providers/content-providers.html" rel="noreferrer"><code>Content Providers</code></a></p> <p>Again, I am not entirely sure if this is what you are looking for. Please do correct if I am wrong in my assumption.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload