• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Device Service Discorver  RSS feed

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to discover the device services, using what API?
 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!