I am looking for a way to be able to tell if:
1. a device is a phone
2. if it is a phone, whether or not it has service through its provider
Using the phone library, I was able to check for the type of service, the data state, and whether or not the phone is provisioned.
To my amazement, all of my devices, including the tablets, reported as having either CDMA or GSM service...
All show that the Phones (y tablets) are provisioned for service.
finally all show that Data Service is disconnected.
So, after several hours of looking I found the PhoneStateListener Library...
Using the PSL library, I can now tell that my tablets do not have service available.
However, All phones (including two without service activation) are showing as IN SERVICE.
After reading the info on the PhoneStateListener on the Android Developer page (Located Here), I can not figure out why these inactivated phones are showing IN SERVICE. I would think that they would at least show a state of EMERGENCY ONLY or POWER OFF.
it is critical to be able to detect this due to the fact that I use this information to decide whether to send SMS Messages through the native phone or through the web.
Any thoughts or help would be greatly appreciated!
...Pablo
1. a device is a phone
2. if it is a phone, whether or not it has service through its provider
Using the phone library, I was able to check for the type of service, the data state, and whether or not the phone is provisioned.
To my amazement, all of my devices, including the tablets, reported as having either CDMA or GSM service...
All show that the Phones (y tablets) are provisioned for service.
finally all show that Data Service is disconnected.
So, after several hours of looking I found the PhoneStateListener Library...
Using the PSL library, I can now tell that my tablets do not have service available.
However, All phones (including two without service activation) are showing as IN SERVICE.
After reading the info on the PhoneStateListener on the Android Developer page (Located Here), I can not figure out why these inactivated phones are showing IN SERVICE. I would think that they would at least show a state of EMERGENCY ONLY or POWER OFF.
it is critical to be able to detect this due to the fact that I use this information to decide whether to send SMS Messages through the native phone or through the web.
Any thoughts or help would be greatly appreciated!
...Pablo