Skip to content
Browse files

updated docs to demonstrate accessing intent extras

Change-Id: I2b25ea7fa1167dedcb704390ae8e5d0512534c5d
Reviewed-on: http://review.couchbase.org/9952
Reviewed-by: Marty Schoch <marty.schoch@gmail.com>
Tested-by: Chris Anderson <jchris@couchbase.com>
Reviewed-by: Chris Anderson <jchris@couchbase.com>
  • Loading branch information...
1 parent b83de20 commit db291a417a6f802b128453af2a6a115e4629304d @mschoch mschoch committed with jchris
Showing with 6 additions and 4 deletions.
  1. +3 −2 README.markdown
  2. +3 −2 doc/README.txt
View
5 README.markdown
@@ -99,10 +99,11 @@ A Broadcast Receiver registered to listen for the right events can now be used i
@Override
public void onReceive(Context context, Intent intent) {
if(CouchbaseStarted.ACTION.equals(intent.getAction())) {
-
+ String host = CouchbaseStarted.getHost(intent);
+ int port = CouchbaseStarted.getPort(intent);
}
else if(CouchbaseError.ACTION.equals(intent.getAction())) {
-
+ String message = CouchbaseError.getMessage(intent);
}
}
};
View
5 doc/README.txt
@@ -62,10 +62,11 @@ A Broadcast Receiver registered to listen for the right events can now be used i
@Override
public void onReceive(Context context, Intent intent) {
if(CouchbaseStarted.ACTION.equals(intent.getAction())) {
-
+ String host = CouchbaseStarted.getHost(intent);
+ int port = CouchbaseStarted.getPort(intent);
}
else if(CouchbaseError.ACTION.equals(intent.getAction())) {
-
+ String message = CouchbaseError.getMessage(intent);
}
}
};

0 comments on commit db291a4

Please sign in to comment.
Something went wrong with that request. Please try again.