Streaming Media Player Tutorial Stops Unexpectedly. How Should I Debug (And Other Questions From A

Posted by Danny on Stack Overflow See other posts from Stack Overflow or by Danny
Published on 2010-04-28T07:38:22Z Indexed on 2010/04/28 7:43 UTC
Read the original article Hit count: 307

Filed under:
|
|
|
|

Hello!

I'm a fledgling in the Android and Eclipse ways. I was reading and downloaded the source code for a Streaming Media Player tutorial from Pocket Journey, here. However, when I try to run it through the "Run As..." or "Debug As..." features in Eclipse, the emulator reports: "Sorry! The application Android Tutorials (process com.pocketjourney.tutorials) has stopped unexpectedly. Please try again."

Now, from stepping through the Tutorial 1 activity (for those of you that may be familiar with it), it seems something funky happens here:

button.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Toast.makeText(Tutorial1.this, "Button Clicked",Toast.LENGTH_SHORT).show(); }});

My questions are:

  1. What's up with that line? Apparently, other comments haven't had this problem; am I missing some library that I should be downloading from someplace?
  2. How should I go about debugging this other than/in addition to stepping through code? I'm used to Visual Studio, which has a nice box with exception details for me to sift through and copy/paste to google with. Eclipse debugging showed a "No Source Code" page, or a list of exceptions. I've heard of something called LogCat; is that relevant here?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about android

Related posts about streaming