Undocumented method: ConnectIQ.sendImage

Former Member
Former Member
How can I use the method sendImage from the Connect IQ Android API? There is no mention of it in the documentation, but it exists in the SDK. Invoking it yields with an UnsupportedMethod exception.

public ConnectIQ.IQMessageStatus sendImage(IQDevice device,
IQApp application,
byte[] imageData)
throws java.lang.IllegalStateException

Sends an image to the specific application on the specific device. The image data will be converted to suit the image format allowed on the specific device before being sent.

Parameters:

device - Device to send the image to.

application - Application to send the image to.

imageData - Raw image data.

Returns:

Status of sending the image to the application on the device.

Throws:

java.lang.IllegalStateException - Either initialize() has not been called or the remote connection has become invalid.

Since:

1.0
  • I think you answered your own question. If it is undocumented and throws an exception that indicates it isn't implemented, the feature probably isn't implemented. Whether it is a coming feature or something that was aborted I do not know, but it sounds like it isn't ready for you to use it. Even if it did work, you'd need something on the device side to accept the image...
  • Former Member
    Former Member over 9 years ago
    I think you answered your own question. If it is undocumented and throws an exception that indicates it isn't implemented, the feature probably isn't implemented. Whether it is a coming feature or something that was aborted I do not know, but it sounds like it isn't ready for you to use it. Even if it did work, you'd need something on the device side to accept the image...


    Well, not necessarily. The image could just appear on the device screen, that would not be such a bad scenario, quite the opposite. But, I'm aware that depending on companies to develop new features is not the way to go, so I, luckily, found a workaround to get my ideas into practice :-)