I'm actually working on an android mobile application for proximity marketing, my app is supposed to receive cards and coupons from marketers and display the received items.
The following code is from google developers and it demonstrates using a message listener to parse messages received from a BLE beacon:
mMessageListener = new MessageListener() {
@Override
public void onFound(Message message) {
// Do something with the message here.
Log.i(TAG, "Message found: " + message);
Log.i(TAG, "Message string: " + new String(message.getContent()));
Log.i(TAG, "Message namespaced type: " + message.getNamespace() +
"/" + message.getType());
}
...
};
My question is:
in the code above the message parsed is a string so it's simple to handle that I think, in my case I have to receive cards and coupons so pictures .. how could I handle and parse the received pictures?