Take the 2-minute tour ×  Is it somehow possible to send
automated intents to an app inside an emulator for testing?  I
have a list of all my intents and i want to test them
automaticily, so is it possible to just do a adb
<myfancycommand> android.intent.action.PACKAGE_ADDED to call a
ndroid.intent.action.PACKAGE_ADDED on the device? Or do i have
to write me a script that calls all the stuff by its own, so for
example for this intent install a dummy apk on the device? (Or
for sms send one, or BOOT_COMPLETED restart the device, etc)
doing this with a test method will not work, because i doing
some dynamic analyses of the APK Packages here, and therefore i
only have the apk file and not the source  share|improve this
question add comment  2 Answers  up vote 2 down vote accepted
Even more simple is the use of the am application.  You can just
run it like this from the adb shell:  # am broadcast
android.net.conn.CONNECTIVITY_CHANGE Broadcasting: Intent {
act=android.intent.action.VIEW dat=android.net.conn.CONNE