Project: titanium
Issue TIMOB-17711: Android: Ti.Android.getCurrentService() fails with an exception
h1. Problem description Calling Ti.Android.getCurrentActivity() always fails with an exception in the logs. {code} E/TiJSError( 1288): (main) [2,1195] - Message: Uncaught TypeError: Object # has no method 'getCurrentService' {code} h1. Steps to reproduce Use this simple app to test: {code} Titanium.UI.setBackgroundColor('#000'); var win1 = Titanium.UI.createWindow({ backgroundColor:'#fff', fullscreen: true }); win1.open(); Titanium.API.info("Activity: " + Titanium.Android.getCurrentService()); {code} Changing from getCurrentService() to currentService (direct access to the property) works fine.
Story points: 3