 <p>The explicit assignment:</p> <pre><code>Intent intent = new Intent(this, HelloWorldActivity.class); startActivity(intent); </code></pre> <p>should work fine provided you have added the import for HelloWorldActivity.class with the full package name of your module viz. ir.sibvas.testlibary1.HelloWorldActivity</p>