Skip to main content



      Home
Home » Eclipse Projects » Paho » Difference of Paho Android Service and Paho Java Client
Difference of Paho Android Service and Paho Java Client [message #1755703] Mon, 06 March 2017 23:21 Go to next message
Eclipse UserFriend
Hi all.

I can find two mqtt clients that can use on android platform,
one is Paho Android Service and the other is Paho Java Client.
I tryed to use both of them and could execute correctly.

So, I have a question. What is the difference of them?
Which should I use on android?

Regards,
Taiga
Re: Difference of Paho Android Service and Paho Java Client [message #1755839 is a reply to message #1755703] Wed, 08 March 2017 09:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Taiga,

The Android Service is a wrapper around the Java Client. The idea is that whilst some developers may choose to add the Java client into their Android app themselves, others may want something that is a bit more 'plug and play' with the Android SDK.

The Android service has a number of useful features in it that are specially for Android apps, these include: An android specific ping sender implementation that uses less CPU time and so uses less battery and an Android Service structure that uses Broadcast messages to communicate with the main UI thread.

It's all a matter of preference, If you prefer using the Java client that's fine, the Android service is mostly there to reduce lots of developers having to write the same code every time.

Re: Difference of Paho Android Service and Paho Java Client [message #1756373 is a reply to message #1755839] Thu, 16 March 2017 02:23 Go to previous message
Eclipse UserFriend
Hi James,

Thank you for your reply. I understood the difference.
I use the Java client because I need to use blocking APIs on the android application.

Thanks,
Taiga
Previous Topic:syntax for auth with paho connecting to mqtt
Next Topic:MQTT Paho C library using SSL
Goto Forum:
  


Current Time: Thu Jul 17 07:59:08 EDT 2025

Powered by FUDForum. Page generated in 0.08329 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top