Here is my source code and it keeps force closing everytime I run it...
public class MainActivity extends Activity { private static String content; p
The force close is likely happening because you are managing the UI from within your broadcast receiver. There's a 10-second limit on a BR's onReceive before it is forced closed.
To solve, use an Activity component to generate your Toast.