am cmd in sh script file does not work
<p>the sh file looks as follows</p>

<pre><code>#!/system/bin/sh
am start -a android.intent.action.MAIN -n com.android.settings/.Settings
echo hello,world
exit 1
</code></pre>

<p>but it reports error like </p>

<pre><code>Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.Sett
}gs
Error type 3
} does not exist.lass {com.android.settings/com.android.settings.Settings
hello,world
exit: Illegal number: 1
</code></pre>

<p>but when i type it in sh shell directly, like in adb shell prompt, type <code>am start -a android.intent.action.MAIN -n com.android.settings/.Settings</code>, it works,and runs the activty</p>

<p>so, what's the problem?</p>
