Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

How can be figured out whether the device has softkeys?
For example, Sharp Z800 doesn't have softkeys and my application is responsible for drawing and processing events from them; but when the same application runs on Motorola T720, there're 2 sets of "Select/Back" softkeys displayed on the screen, the first belongs to my application, the second is global for the device. Also the second set receives events from the keyboard and the first set is ignored. How to determine when the application have to implement or use system-wide softkeys?

I think the only way to do it is to have a flag on your resource file, or to make different compilations for each device, using #define 's
here I'm doing this, since my resource files are different for each device I have a config.h file that includes the proper resource file..
something like this
#define DEVICE_MODEL // can be in my case T720 or CDM9500
#ifdef T720
#include "appnamet720_res.h"
#include "appnamet720.bar"
#elif CDM9500
#include "appnamecdm9500_res.h"
#include "appnamecdm9500.bar"
#endif

I think the only way to do it is to have a flag on your resource file, or to make different compilations for each device, using #define 's
here I'm doing this, since my resource files are different for each device I have a config.h file that includes the proper resource file..
something like this
#define DEVICE_MODEL // can be in my case T720 or CDM9500
#ifdef T720
#include "appnamet720_res.h"
#include "appnamet720.bar"
#elif CDM9500
#include "appnamecdm9500_res.h"
#include "appnamecdm9500.bar"
#endif

Thank you for the answer, Marcel. But is there a way to get phone model through the API?

Thank you for the answer, Marcel. But is there a way to get phone model through the API?

no there isn't,
I tried contacting qualcomm, they said that you couldn't, I think that's an absurde, but anyway you can't. at least in 1.1, maybe in 2.0 or 3.0 we may be able..

no there isn't,
I tried contacting qualcomm, they said that you couldn't, I think that's an absurde, but anyway you can't. at least in 1.1, maybe in 2.0 or 3.0 we may be able..

What about the dwPlatformID in AEEDeviceInfo?

What about the dwPlatformID in AEEDeviceInfo?

as you can see in the API docs, AEEDeviceInfo does not have this kind of information, maybe it has, but if it do it is some of the restricted variables...
I think this information exists, but we don't have access to it..
I mean, how does brew shop knows wich app it should dnd?it only shows the ones that works with your phone.
and I couldn't find dwPlatformID in the API docs..where did you find it?

as you can see in the API docs, AEEDeviceInfo does not have this kind of information, maybe it has, but if it do it is some of the restricted variables...
I think this information exists, but we don't have access to it..
I mean, how does brew shop knows wich app it should dnd?it only shows the ones that works with your phone.
and I couldn't find dwPlatformID in the API docs..where did you find it?

dwPlatformID is listed in the 2.0 API docs. Check your copy of AEEShell.h to see if it's in 1.1.

dwPlatformID is listed in the 2.0 API docs. Check your copy of AEEShell.h to see if it's in 1.1.

Ì still use 1.1, and since this is the 1.1 forum, dwPlatformID doesn't exist.
maybe in 2.0 you may use it...

Ì still use 1.1, and since this is the 1.1 forum, dwPlatformID doesn't exist.
maybe in 2.0 you may use it...

I just installed the 1.1 SDK, and dwPaltformID is indeed in AEEShell.h. It is not in the API reference for 1.1, but it is documented in 2.0.
Try it and see if it works. I believe this field should correspond to the platform IDs listed in the phone data sheets on the Developer Extranet.

I just installed the 1.1 SDK, and dwPaltformID is indeed in AEEShell.h. It is not in the API reference for 1.1, but it is documented in 2.0.
Try it and see if it works. I believe this field should correspond to the platform IDs listed in the phone data sheets on the Developer Extranet.

could you post here what 2.0 docs say about dwPlatformID ?
and yes, your're right, dwPlatformID is defined in AEEShell.h,
if you just post the proper function to get it I may test it here..

could you post here what 2.0 docs say about dwPlatformID ?
and yes, your're right, dwPlatformID is defined in AEEShell.h,
if you just post the proper function to get it I may test it here..

From the API Reference (AEEDeviceInfo):
"dwPlatformID ID used to uniquely identify the device platform."
AEEDeviceInfo is the structure returned by ISHELL_GetDeviceInfo().

From the API Reference (AEEDeviceInfo):
"dwPlatformID ID used to uniquely identify the device platform."
AEEDeviceInfo is the structure returned by ISHELL_GetDeviceInfo().

sorry, but just checking brew support email again, I saw that they say that it exists, but it is not implemented, checking the device doc I have, are defined each one ID, but since it is not implemented, GetDeviceInfo may fill dwPlataformID with 0, or garbage...

sorry, but just checking brew support email again, I saw that they say that it exists, but it is not implemented, checking the device doc I have, are defined each one ID, but since it is not implemented, GetDeviceInfo may fill dwPlataformID with 0, or garbage...