Created
September 18, 2014 09:06
-
-
Save sivabudh/4a0a197819ab220563d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent intent = new Intent(); | |
intent.setComponent(new ComponentName("cng.android.timesheet", "cng.android.timesheet.Splash")); | |
List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, | |
PackageManager.MATCH_DEFAULT_ONLY); | |
if (list.size() > 0){ | |
startActivity(intent); | |
} else { | |
String url = "http://appstore.g-able.com/timesheet/"; | |
Intent i = new Intent(Intent.ACTION_VIEW); | |
i.setData(Uri.parse(url)); | |
startActivity(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment