Regarding brew application | developer.brewmp.com Regarding brew application | developer.brewmp.com

Developer

Regarding brew application

Forums:

Hi

Is there any way to check whether the application is running on Device or Simulator?

Get the list using IAPPLETCTL_GetRunningList and compare the class id.
OR IAPPLETCTL_RunningApplet() returns currently running applet.

Get the list using IAPPLETCTL_GetRunningList and compare the class id.
OR IAPPLETCTL_RunningApplet() returns currently running applet.

adhudase wrote:Get the list using IAPPLETCTL_GetRunningList and compare the class id.
OR IAPPLETCTL_RunningApplet() returns currently running applet.
Thanks
How can use it to my advantage.
I 'm wrting two codes of execution in my application. If the application is on Devce first one will be executed nd if it is on the simulator second one will be executed.
Is there any solution to this scenarios

adhudase wrote:Get the list using IAPPLETCTL_GetRunningList and compare the class id.
OR IAPPLETCTL_RunningApplet() returns currently running applet.
Thanks
How can use it to my advantage.
I 'm wrting two codes of execution in my application. If the application is on Devce first one will be executed nd if it is on the simulator second one will be executed.
Is there any solution to this scenarios

Sorry for confusion. I thought you want to know where particular app is running or not.
You can use conditional compilation with macro AEE_SIMULATOR.
# if defined AEE_SIMULATOR
//simulator code
# else
//device code
#endif

Sorry for confusion. I thought you want to know where particular app is running or not.
You can use conditional compilation with macro AEE_SIMULATOR.
# if defined AEE_SIMULATOR
//simulator code
# else
//device code
#endif

adhudase wrote:Sorry for confusion. I thought you want to know where particular app is running or not.
You can use conditional compilation with macro AEE_SIMULATOR.
# if defined AEE_SIMULATOR
//simulator code
# else
//device code
#endif
Thanks Atul
Thats' I 've got it by searching Brew API also.

adhudase wrote:Sorry for confusion. I thought you want to know where particular app is running or not.
You can use conditional compilation with macro AEE_SIMULATOR.
# if defined AEE_SIMULATOR
//simulator code
# else
//device code
#endif
Thanks Atul
Thats' I 've got it by searching Brew API also.