Finding out package and activity name via adb for appium automation

A post on how to use adb and aapt tools in android sdk to figure out the package and activity names for use in Appium desired capabilities.