Best way to compensate for soft menu on Kindle Fire

Is there any other way to detect if the app. is running on Kindle Fire?

I assume Amazon store is also available on other Android tablets. So should I just code for 1024x580 (in landscape mode)?

Regards,
/t [import]uid: 163920 topic_id: 29163 reply_id: 329163[/import]

isAndroid = false isKindleFire = false if system.getInfo("platformName") == "Android" then isAndroid = true local model = system.getInfo("model") if model == "Kindle Fire" then isKindleFire = true end end [import]uid: 19626 topic_id: 29163 reply_id: 117302[/import]

Rob,

Thanks for the answer but when I tested system.getInfo(“model”) on my galaxy tab, it returns “gt_p1000” instead of “Galaxy Tab”. So just wanted to confirm if you have run this code on the device (because in simulator it does return “Kindle Fire”)?

Thanks,
/t [import]uid: 163920 topic_id: 29163 reply_id: 117354[/import]

I tweaked the code a little bit.

local isAndroid = false  
local isKindleFire = false  
local iKindleOffSet = 0  
if system.getInfo("platformName") == "Android" then  
 isAndroid = true  
 local model = system.getInfo("model")  
 if model == "Kindle Fire" then  
 isKindleFire = true  
 iKindleOffSet = 22  
 end  
end  

then when placing images that are going to be close to the kindle bar you have this auto adjusting code :slight_smile:

Rob gets 98% of the credit :slight_smile:

image.y = image.y-iKindleOffSet  

[import]uid: 11860 topic_id: 29163 reply_id: 119827[/import]

I tweaked the code a little bit.

local isAndroid = false  
local isKindleFire = false  
local iKindleOffSet = 0  
if system.getInfo("platformName") == "Android" then  
 isAndroid = true  
 local model = system.getInfo("model")  
 if model == "Kindle Fire" then  
 isKindleFire = true  
 iKindleOffSet = 22  
 end  
end  

then when placing images that are going to be close to the kindle bar you have this auto adjusting code :slight_smile:

Rob gets 98% of the credit :slight_smile:

image.y = image.y-iKindleOffSet  

[import]uid: 11860 topic_id: 29163 reply_id: 119827[/import]