how to use alert in multiple activities screens as Toast :android
<p>i want to display a alert dialog using broadcast reciver but it seems that alert dialog in android work under for Activity level , i am not able to use GetApplication cotext in alert dialog so its only limited to one activity so how to display popup as alert in any activity we are cureently...is it possible ?if yes: then pls explain how to do it other if no then what should be other method or function for display pop up or alert in multiple activity of application ..</p>

<pre><code> AlertDialog.Builder builder = new AlertDialog.Builder(getApplicationContext();
        builder.setMessage(tempx[1]+ " wants to chat with you").setCancelable(false).
        setPositiveButton("Yes",
                new DialogInterface.OnClickListener() {

                            public void onClick(
                                    DialogInterface arg0, int arg1) {
                                Intent serverIntent = new Intent(
                                        FaceCardList.this,
                                        BluetoothChat.class);
                                startActivity(serverIntent);



                                String authorization = "messagetype:initiatechat";
                                FaceCardList.this.sendMessage(authorization);

                            }
                        })
                .setNegativeButton("No",
                        new DialogInterface.OnClickListener() {

                            public void onClick(
                                    DialogInterface diaLog,
                                    int which) {
                                // TODO Auto-generated method stub

                                String authorization = "messagetype:stopservice";
                                FaceCardList.this.sendMessage(authorization);

                                FaceCardList.mChatService.stop();
                                FaceCardList.mChatService.start();

                            }
                        });
         alert = builder.create();
        alert.show();
</code></pre>
