Android - Do job onClick Notification?
<p>How can on i process specific method when i press on notification without open activity while application is opened by user?</p>

<pre><code>Intent intent = new Intent(this, MainActivity.class);
                intent.putExtra("frame", 1);
                intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                PendingIntent contentIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
</code></pre>

<p>mBuilder.setContentIntent(contentIntent);</p>