Smith
Smith

Reputation: 423

How to make Local Notification in android?

I have ProgressBar which had max. limit. As progress bar reached to max. value I want to show notification message window on current application.how to achieve it? I don't want notification on corner of screen, I want it at center of screen of current running application...please give some sample of it. What should I use to achieve it????

Upvotes: 1

Views: 530

Answers (3)

Hetvi
Hetvi

Reputation: 1

Toast displays the notification on screen.

Here is syntax:

Toast.makeText(MainActivity.this,"Your message",Toast.LENGTH_LONG).show();

Upvotes: 0

Behrouz.M
Behrouz.M

Reputation: 3573

use SuperToast. This is a powerful library.

Upvotes: 0

What you are looking for is Toast.

Upvotes: 1

Related Questions