Hi, I am creating a module and need to start the activity in my module, I have set this module
Intent intent = new Intent(); intent.setClassName("com.example.foo", "com.example.foo.MyActivity"); ntent.setAction(Intent.ACTION_VIEW); intent.setData(uri); Activity activity = TiApplication.getAppRootOrCurrentActivity(); activity.startActivity(intent)in my timodule.xml has been set :
<manifest package="com.artifex.mupdf"> <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="11"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <application android:label="@string/app_name" android:icon="@drawable/ic_launcher" > <activity android:name="com.example.foo.MyActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /> </application> </manifest> </android>but i get error after adding the module to project :
(KrollRuntimeThread) [6449,6449] Message: Unable to find explicit activity class {com.example.foo/com.example.foo.MyActivity}; have you declared this activity in your AndroidManifest.xml?How to solve this problem? Thanks for your help