Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: When I try to debug.. it says Your (app name) has stopped.

  1. #1
    Member
    Join Date
    Oct 2012
    Posts
    61
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default When I try to debug.. it says Your (app name) has stopped.

    Heres the code
    package com.example.ExtraFeaturesPage;
     
    import android.app.Activity;
    import android.os.Bundle;
    import android.text.TextWatcher;
    import android.view.View;
    import android.widget.AdapterView;
    import android.widget.ImageButton;
    import android.content.Intent;
    import android.net.Uri;
    import android.widget.ImageView;
     
    public class MyActivity extends Activity
    {
       /**
        * Called when the activity is first created.
        */
     
      ImageButton androidButton;
      ImageView androidImage;
     
     
       public void onCreate(Bundle savedInstanceState)
       {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
     
          androidButton = (ImageButton)findViewById(R.id.calenderbutton);
          androidButton.setOnClickListener(myhandler1);
     
          androidImage = (ImageView)findViewById(R.id.dropboxbutton);
          androidImage.setOnClickListener(myhandler2);
     
          androidImage = (ImageView)findViewById(R.id.twitterbutton);
          androidImage.setOnClickListener(myhandler3);
     
          androidImage = (ImageView)findViewById(R.id.facebookbutton);
          androidImage.setOnClickListener(myhandler4);
     
     
     
       }
     
       View.OnClickListener myhandler1 = new View.OnClickListener()
       {   public void onClick(View view)
           {
              Intent browserIntent =
              new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.mkyong.com"));
              startActivity(browserIntent);
     
           }
       };
     
       View.OnClickListener myhandler2 = new View.OnClickListener()
       {   public void onClick(View view)
           {
              Intent browserIntent =
              new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.dropbox.com"));
              startActivity(browserIntent);
     
           }
       };
     
       View.OnClickListener myhandler3 = new View.OnClickListener()
       {   public void onClick(View view)
          {
             Intent browserIntent =
             new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.twitter.com"));
             startActivity(browserIntent);
     
          }
       };
     
       View.OnClickListener myhandler4 = new View.OnClickListener()
       {   public void onClick(View view)
          {
             Intent browserIntent =
             new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com.com"));
             startActivity(browserIntent);
     
          }
       };
     
     
     
    }


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: When I try to debug.. it says Your (app name) has stopped.

    That is a very generic message, and not very useful.
    What IDE are you using? ...check the log for errors

  3. #3
    Member
    Join Date
    Oct 2012
    Posts
    61
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Re: When I try to debug.. it says Your (app name) has stopped.

    There are no errors, it runs but when its running, theres a pop up within the emulator it says Unfortunately (app name) has stopped. I'm using intelliJ

Similar Threads

  1. question about debug mode
    By leonne in forum Java IDEs
    Replies: 5
    Last Post: May 15th, 2013, 06:18 AM
  2. Post Corrected - Java Detection Script Worked, then Stopped Working Very Recently
    By universityofky in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 22nd, 2013, 06:32 PM
  3. How can I debug this code?
    By chenom in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 16th, 2012, 12:36 PM
  4. My app audio sounds different when running the app?
    By TP-Oreilly in forum Android Development
    Replies: 1
    Last Post: January 29th, 2012, 08:23 AM
  5. can someone help me debug plzz
    By andys in forum Object Oriented Programming
    Replies: 1
    Last Post: November 27th, 2010, 05:37 PM