Whiteboard Android application


Last Updated:

  1. pancakeleh

    pancakeleh New Member This Topic's Starter

    Joined:
    Sep 21, 2010
    Messages:
    3
    Likes Received:
    0
    hi guys, i experience this error ActivityTHread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2496(source not found) when i try to run the application. It is an application for displaying 3 buttons on the main activity page. Anyone know whats the solution to it? is it something to do with the onClickLIstener events?

    the code as follow:
    package net.learn2develop.IntentLab;
    import android.app.Activity;
    import android.content.Intent;
    import android.net.Uri;
    import android.os.Bundle;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;
    public class IntentLab extends Activity {

    Button b1, b2, b3;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);


    //Web Browser Button
    b1 = (Button) findViewById(R.id.btn_webbrowser);
    b1.setOnClickListener (new OnClickListener()
    {
    public void onClick (View arg0){
    Intent i = new
    Intent (android.content.Intent.ACTION_VIEW, Uri.parse("Amazon.com: Online Shopping for Electronics, Apparel, Computers, Books, DVDs & more"));


    startActivity(i);

    }
    });
    //show map button

    b2 = (Button) findViewById(R.id.btn_showmap);
    b2.setOnClickListener (new OnClickListener()
    {
    public void onClick (View arg0){
    Intent i = new
    Intent (android.content.Intent.ACTION_VIEW, Uri.parse("geo:37.827500, -122.481670"));


    startActivity(i);

    }
    });

    //make calls button
    b3 = (Button) findViewById(R.id.btn_makecalls);
    b3.setOnClickListener (new OnClickListener()
    {
    public void onClick (View arg0){
    Intent i = new
    Intent (android.content.Intent.ACTION_DIAL, Uri.parse("tel: +651234567"));

    startActivity(i);

    }
    });



    }
    }
     

    Advertisement
  2. pancakeleh

    pancakeleh New Member This Topic's Starter

    Joined:
    Sep 21, 2010
    Messages:
    3
    Likes Received:
    0
    Errors include this as well

    [2010-09-22 10:56:49 - DeviceMonitor]Sending jdwp tracking request failed!
    [2010-09-22 10:59:04 - DeviceMonitor]Sending jdwp tracking request failed!
    [2010-09-22 11:34:50 - DeviceMonitor]Sending jdwp tracking request failed!
    [2010-09-22 11:42:14 - DeviceMonitor]Sending jdwp tracking request failed!​
    [2010-09-22 12:04:29 - DeviceMonitor]Sending jdwp tracking request failed!
     
  3. pancakeleh

    pancakeleh New Member This Topic's Starter

    Joined:
    Sep 21, 2010
    Messages:
    3
    Likes Received:
    0
    hi guys. i am need help in developing the whiteboard android application. i have a problem how am i able to change the backgroud of the whiteboard so that ppl is able to write ontop of the background?
     

Share This Page

Loading...