我想要什么,从服务中,我想在 gmail 通知到达时阅读 gmail 消息正文。当 Gmail 通知到达时,会发生警报,我会在 alarmReceiver 中获得全文。
我在这里得到了 android 快速入门 gsuits api:https ://developers.google.com/gsuite/guides/android 。但这里只描述了 Android Sdk 和 Dependencies。我没有找到捕获 gmail 正文的整个过程。
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.google.android.gms:play-services-auth:15.0.1'
compile 'pub.devrel:easypermissions:0.3.0'
compile('com.google.api-client:google-api-client-android:1.23.0') {
exclude group: 'org.apache.httpcomponents'
}
compile('com.google.apis:google-api-services-<API>-<VERSION>') {
exclude group: 'org.apache.httpcomponents'
}}
之后,我可以在我的 android 应用程序中检索/获取 gmail 正文的逐步整个过程是什么?