I was running the Sample application for DeviceInfo under Hardware from the CoronaSDK Samples. I have multiple devices including a tablet that I want to target for a System application.
Issue : The application would force close when ran on an android device.
Problem : I assume the permissions will allow for most system.getInfo, but not for system.getInfo( “deviceID” ) using android.permission.READ_PHONE_STATE in build.settings
Solution : Comment out the following code:
[lua]itemText = display.newText( system.getInfo( “deviceID” ),
30, y+yOffset*8+25, native.systemFont, 14 )
itemText.x = display.contentWidth/2 – center long string (40 chars)
itemText:setTextColor(txt.red, txt.green, txt.blue)[/lua]
Note : I am not sure if it is a permission problem, but I will try to debug and find the solution to get the deviceID. Interestingly enough, the ID is the piece I wanted to get for the device. [import]uid: 41378 topic_id: 11424 reply_id: 311424[/import]