how to query on which device the mod is running on? | developer.brewmp.com how to query on which device the mod is running on? | developer.brewmp.com

Developer

how to query on which device the mod is running on?

Forums:

Basically on which device the mod is running on at run time.
I.e to query and find out is the code is running on a particular device or not

I guess this should be useful for some of you guys.
All you have to do is
use the query using the platformid from deviceinfo
platformid = deviceinfo.dwPlatformId
This would help get the device type of platform on which your mod is running a
and hence some device specific issues with the same mod.
Quite useful

I guess this should be useful for some of you guys.
All you have to do is
use the query using the platformid from deviceinfo
platformid = deviceinfo.dwPlatformId
This would help get the device type of platform on which your mod is running a
and hence some device specific issues with the same mod.
Quite useful

I also use the statement that you have mentioned and it returned me a number like 8040. From this number, how can i find out which device is it? How can i use this number?

I also use the statement that you have mentioned and it returned me a number like 8040. From this number, how can i find out which device is it? How can i use this number?

singalashok wrote:I also use the statement that you have mentioned and it returned me a number like 8040. From this number, how can i find out which device is it? How can i use this number?
Platform Id of any device is always unique. If device is commercial device then it must have some platform id associated with it which is unique for that device type say for Moto Razar V3C platform ID is 8074. If the device is precommercial it may be possible that it is using platform ID of some other device at that time but when the device becomes commercial it will get a unique platform ID. Platform ID of each commercial device is mentioned in its device speciafication doc.

singalashok wrote:I also use the statement that you have mentioned and it returned me a number like 8040. From this number, how can i find out which device is it? How can i use this number?
Platform Id of any device is always unique. If device is commercial device then it must have some platform id associated with it which is unique for that device type say for Moto Razar V3C platform ID is 8074. If the device is precommercial it may be possible that it is using platform ID of some other device at that time but when the device becomes commercial it will get a unique platform ID. Platform ID of each commercial device is mentioned in its device speciafication doc.

Platform ID is surely unique, but for all devices of same model. Here the question is to get some info which is unique to that handset so that request sent by the handset can be uniquely identified lets say - "on the server" among all other sent requests.
I'm too looking for the same type of unique id for the handset. But till now not able to find it. Surely the ESN number could be the solution but the handset specific, this kind of info, is only available with CARRIER. So carrier needed to be involved which is again not feasible..Handset mobile number could also serve the purpose but again, one cannot get mobile number via BREW API (Dont be so frustrated - it's not even possible to fetch mobile number in J2ME - as far as I know). At some places the "Device MDN" may result in the mobile number but it's not dependable. So problem stays at its root....

Platform ID is surely unique, but for all devices of same model. Here the question is to get some info which is unique to that handset so that request sent by the handset can be uniquely identified lets say - "on the server" among all other sent requests.
I'm too looking for the same type of unique id for the handset. But till now not able to find it. Surely the ESN number could be the solution but the handset specific, this kind of info, is only available with CARRIER. So carrier needed to be involved which is again not feasible..Handset mobile number could also serve the purpose but again, one cannot get mobile number via BREW API (Dont be so frustrated - it's not even possible to fetch mobile number in J2ME - as far as I know). At some places the "Device MDN" may result in the mobile number but it's not dependable. So problem stays at its root....

samiam wrote:Platform ID is surely unique, but for all devices of same model. Here the question is to get some info which is unique to that handset so that request sent by the handset can be uniquely identified lets say - "on the server" among all other sent requests.
I'm too looking for the same type of unique id for the handset. But till now not able to find it. Surely the ESN number could be the solution but the handset specific, this kind of info, is only available with CARRIER. So carrier needed to be involved which is again not feasible..Handset mobile number could also serve the purpose but again, one cannot get mobile number via BREW API (Dont be so frustrated - it's not even possible to fetch mobile number in J2ME - as far as I know). At some places the "Device MDN" may result in the mobile number but it's not dependable. So problem stays at its root....
ITAPI_GetStatus() can be used to fetch the mobile number in BREW.

samiam wrote:Platform ID is surely unique, but for all devices of same model. Here the question is to get some info which is unique to that handset so that request sent by the handset can be uniquely identified lets say - "on the server" among all other sent requests.
I'm too looking for the same type of unique id for the handset. But till now not able to find it. Surely the ESN number could be the solution but the handset specific, this kind of info, is only available with CARRIER. So carrier needed to be involved which is again not feasible..Handset mobile number could also serve the purpose but again, one cannot get mobile number via BREW API (Dont be so frustrated - it's not even possible to fetch mobile number in J2ME - as far as I know). At some places the "Device MDN" may result in the mobile number but it's not dependable. So problem stays at its root....
ITAPI_GetStatus() can be used to fetch the mobile number in BREW.

samiam wrote:Platform ID is surely unique, but for all devices of same model. Here the question is to get some info which is unique to that handset so that request sent by the handset can be uniquely identified lets say - "on the server" among all other sent requests.
I'm too looking for the same type of unique id for the handset. But till now not able to find it. Surely the ESN number could be the solution but the handset specific, this kind of info, is only available with CARRIER. So carrier needed to be involved which is again not feasible..Handset mobile number could also serve the purpose but again, one cannot get mobile number via BREW API (Dont be so frustrated - it's not even possible to fetch mobile number in J2ME - as far as I know). At some places the "Device MDN" may result in the mobile number but it's not dependable. So problem stays at its root....
An application can obtain the phone number of the device on which it is running by calling ITAPI_GetStatus(). The phone number is in TAPIStatus.szMobileID.

samiam wrote:Platform ID is surely unique, but for all devices of same model. Here the question is to get some info which is unique to that handset so that request sent by the handset can be uniquely identified lets say - "on the server" among all other sent requests.
I'm too looking for the same type of unique id for the handset. But till now not able to find it. Surely the ESN number could be the solution but the handset specific, this kind of info, is only available with CARRIER. So carrier needed to be involved which is again not feasible..Handset mobile number could also serve the purpose but again, one cannot get mobile number via BREW API (Dont be so frustrated - it's not even possible to fetch mobile number in J2ME - as far as I know). At some places the "Device MDN" may result in the mobile number but it's not dependable. So problem stays at its root....
An application can obtain the phone number of the device on which it is running by calling ITAPI_GetStatus(). The phone number is in TAPIStatus.szMobileID.

nishant_sinha79 wrote:An application can obtain the phone number of the device on which it is running by calling ITAPI_GetStatus(). The phone number is in TAPIStatus.szMobileID.
have a look at this:
http://brewforums.qualcomm.com/showthread.php?t=4152&highlight=szMobileID
surely this is a brew 2.0 post but, clears the whole story about ITAPI_GetStatus() & TAPIStatus.szMobileID.
There are many other posts clearing the phone number issue.

nishant_sinha79 wrote:An application can obtain the phone number of the device on which it is running by calling ITAPI_GetStatus(). The phone number is in TAPIStatus.szMobileID.
have a look at this:
http://brewforums.qualcomm.com/showthread.php?t=4152&highlight=szMobileID
surely this is a brew 2.0 post but, clears the whole story about ITAPI_GetStatus() & TAPIStatus.szMobileID.
There are many other posts clearing the phone number issue.