events for Custom Expanded View added to Status Bar Notifications?
<p>from this link i am able to add views to status bar.
<a href="http://developer.android.com/guide/topics/ui/notifiers/notifications.html" rel="nofollow">http://developer.android.com/guide/topics/ui/notifiers/notifications.html</a>.
but how to define events for it.
suppose i am addind two buttons than how can i set onclick events for buttons.</p>

<p>this is my code for remote view.</p>

<pre><code>RemoteViews contentView=new RemoteViews(getPackageName(),R.layout.demo);
        notification.contentView = contentView;

        notification.flags |= Notification.FLAG_NO_CLEAR;
        notification.flags |= Notification.FLAG_ONGOING_EVENT;
        Intent intent = new Intent(getApplicationContext(), Main.class);
        PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
                intent, Intent.FLAG_ACTIVITY_NEW_TASK);

        notification.contentIntent=contentIntent;
        nm.notify(NOTIFY_ID, notification);
</code></pre>

<p>here in R.layout.demo buttons are there.how can i define events can u pls elaborate it.
thankx</p>
