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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -