var view = new android.view.View.extend({ toString: function () { return "overriden toString methdo"; }, someRandomMethod: function () { return "some random method string"; } }); // << missing (this) causes this error Log("-------------> " + view.toString()); Log("--------srm--> " + view.someRandomMethod()); Log("--------gb---> " + view.getBaseline());// << this line raises the exception