android - Constructor Undefined Error - Java -
am trying call method class present in different files.
main file :
public class test extends androidtestcase { mtestutils = new testutils(this, tag, output_file);
second file :
public class testutils { public testutils(context context, string tag, string outputfile) { mcontext = context; mtag = tag; moutputfile = outputfile; } }
it throws constructor undefined error. appreciated.
you doing
testutils(this, tag, output_file);
but this
not context in case.
the method getcontext()
provide that, doc
Comments
Post a Comment