Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Device Service Discorver

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to discover the device services, using what API?
 
Sathya Srinivasan
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Service is a very generic term. Please be more specific.

In general, there isn't any direct way to check the services available in a device. By service, if you are referring to communication protocols available in a device, there is a workaround.

You can try to connect using a protocol and if it throws a ConnectionNotFoundException, then the device does not support that protocol. Otherwise, it does. To my knowledge, there is no direct API as such.

Other than that, you can use the MIDlet.platformRequest() and the Display class APIs to do some simple tasks such as vibration, backlight flickering, making phone calls, etc., if you consider them as services.
 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Service is a very generic term. Please be more specific...


I am looking for the answer to the Objective 5.2 - "...discovering available services on the device..."

But couldn't find anything for it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic