0

Is there any way by which I can set toast on when a new email comes in my gmail inbox of default android app.

I need to generate alert on my widget whenever a new email comes in my gmail inbox. "

Any help would be appreciated!?

Nauman Aslam
  • 299
  • 3
  • 14

2 Answers2

0

Sorry there is no general concept of "new email." Gmail has its own email database and management, the email app has another, and other email apps may have their own.

And there is certainly no "email server" associated with the telephony subsystem

refer to : https://stackoverflow.com/a/2254426/2771869

Community
  • 1
  • 1
Mohammad Rababah
  • 1,730
  • 4
  • 17
  • 32
0

ok would recommend you to use a JavaMail to keep track of unreaded mails in your account ... then i would create AlarmManager with custom broadcast receiver for displaying your toast/notification ...

Matej Špilár
  • 2,617
  • 3
  • 15
  • 28