0

Samsung phone runs Android operating System and HTC phone runs Android operating system (Assuming both Samsung and HTC phone have accelerometer sensor).

Can I use same Java code, which have been written for accessing data from accelerometer sensor on Samsung phone, for accessing data from accelerometer on Motorola phone?

Pankesh
  • 1,129
  • 2
  • 16
  • 46

1 Answers1

1

Of course you can (and you should) use the same API, the hardware Android API.

Fernando Miguélez
  • 10,980
  • 6
  • 34
  • 53