Hello, I use a button to stop a service from running in my
application, but I got stuck when the application keeps crashing. Here
is the code and line 8 is the problem code I found by using
breakpoints, any suggestions?
public void onClick(View v)
{
switch (v.getId())
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your exception.
Also, I am not aware of any practical use for getBaseContext(). Just
call stopService() directly -- your Activity (the thing you are
calling getBaseContext() on)
2 matches
Mail list logo