Check to see if a component is exported
public static boolean isServiceExported(Context context,ComponentName name)
Get all SDL enabled apps. If the package name is null, it will return all apps. However, if the package name is included, the resulting hash map will not include the app with that package name.
public static java.util.HashMap getSdlEnabledApps(Context context,String myPackageName)
Finds all SDL apps via their SdlRouterService manifest entry. It will return the metadata associated with that router service.
public static java.util.List querySdlAppInfo(Context context,java.util.Comparator<com.smartdevicelink.util.SdlAppInfo> comparator)
Sends the provided intent to the specified destinations making it an explicit intent, rather than an implicit intent. A direct replacement of sendBroadcast(Intent). As of Android 8.0 (API 26+) implicit broadcasts are no longer sent to broadcast receivers that are declared via the AndroidManifest. If no apps are found to receive the intent, this method will send the broadcast implicitly if no list of apps is provided.
public static void sendExplicitBroadcast(Context context,Intent intent,java.util.List<android.content.pm.ResolveInfo> apps)
Checks if the usb cable is physically connected or not Note: the intent here is a sticky intent so registerReceiver is actually a synchronous call and doesn't register a receiver on each call
public static boolean isUSBCableConnected(Context context)
public static android.graphics.Bitmap downloadImage(String urlStr) throws java.io.IOException
|java.lang.Object||getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize|