Search code examples
androidapicometd

how to call cometD api in android using cometd protocol


i want to use a CometD api in my android application. i already have a CometD api. i just want to call it and share some data.

so how can i use in my android application. please give me a standard and time consuming suggestion.`

thanks in advance.


Solution

  • You can use CometD on Android in 2 ways: you build a web application and use the JavaScript client APIs, or you build a native application and you use the Java client APIs.

    Look at the demo shipped with CometD that builds a simple chat application using the Java client APIs.