How to call activity from widget -- Android
<p>Thanks for previous replies,
I am doing application with widget, my idea is to open a activity when click the widget. i uesed this piece of code to get the activity </p>

<pre><code>try {
    WidgetActivity.Widget.onUpdate(context, appWidgetManager, appWidgetIds);
    Toast.makeText(context, "Update Widget", Toast.LENGTH_SHORT).show();
} catch (Exception e) {
    e.toString();
}
Intent myIntent = new Intent(context, Test.class);
startActivity(myIntent);
</code></pre>

<p>but i am getting forceclose error. i am new to widget concept. i am not sure where to put call the start activity method. Pls guide me</p>
