How to create custom update notifications
<p>In my app i want to display the updates when the user opens up the application on the top. A background service will get the notifications if there are any and a alert will appear as a custom bar on top of the dashboard.</p>

<p>After clicking the notifications bar the user will be shown a alertdialog box to cancel the notification without closing the dashboard</p>

<p>I am not able to think which feature to use here and how? Please help.</p>

<p>Also please note that i do not want to display this in notification in notification bar but a custom notification within my app only.</p>

<pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
Dialog dialog = new Dialog(context,android.R.style.Theme_Translucent_NoTitleBar);
LayoutInflater inflater = (LayoutInflater)         
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v = inflater.inflate(R.layout.new_updates,null,false);
builder.setView(v);
 AlertDialog dialog2 = builder.create();
 WindowManager.LayoutParams WMLP = dialog2.getWindow().getAttributes();
 WMLP.gravity = Gravity.TOP;
 WMLP.x = 50;   //x position
 WMLP.y = 50;   //y position
dialog2.getWindow().setAttributes(WMLP);
builder.show();
</code></pre>

<p>Also the WMLP does not work for some reason. It would be really helpful if someone guides me thru this carefully.</p>
