{ "id": "147653", "key": "AC-1053", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-09-30T02:54:23.000+0000", "created": "2015-05-08T01:38:21.000+0000", "labels": [ "android", "api" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:23.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "Hi all:\r\n I created a titanium module project which will be add to a Titanium Android Project.In the module,I want to start my custom activity,but I failed.The studio reported:\r\n [WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40cd6930)\r\n[ERROR] : TiApplication: (main) [5,1363] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.geostar.com.TwoWindows/org.appcelerator.titanium.TiActivity}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.geostar.com.testactivity/com.geostar.com.testactivity.TestPage}; have you declared this activity in your AndroidManifest.xml?; Titanium 3.5.1,2015/03/05 10:08,96875c9\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.geostar.com.TwoWindows/org.appcelerator.titanium.TiActivity}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.geostar.com.testactivity/com.geostar.com.testactivity.TestPage}; have you declared this activity in your AndroidManifest.xml?\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.handleLaunchActivi\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.access$600(ActivityThread.java:145)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:137)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5117)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Method.java:511)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:954)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:721)\r\n[ERROR] : TiApplication: \tat dalvik.system.NativeStart.main(Native Method)\r\n[ERROR] : TiApplication: Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.geostar.com.testactivity/com.geostar.com.testactivity.TestPage}; have you declared this activity in your AndroidManifest.xml?\r\n[ERROR] : TiApplication: \tat android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1629)\r\n[ERROR] : TiApplication: \tat android.app.Instrumentation.execStartActivity(Instrumentation.java:1428)\r\n[ERROR] : TiApplication: \tat android.app.Activity.startActivityForResult(Activity.java:3426)\r\n[ERROR] : TiApplication: \tat android.app.Activity.startActivityForResult(Activity.java:3366)\r\n[ERROR] : TiApplication: \tat android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:839)\r\n[ERROR] : TiApplication: \tat android.app.Activity.startActivity(Activity.java:3622)\r\n[ERROR] : TiApplication: \tat android.app.Activity.startActivity(Activity.java:3590)\r\n[ERROR] : TiApplication: \tat com.geostar.com.testactivity.ExampleProxy.createView(ExampleProxy.java:86)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:483)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.widget.tabgroup.TiUIAbstractTab.getContentView(TiUIAbstractTab.java:58)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.widget.tabgroup.TiUIActionBarTab$TabFragment.onCreateView(TiUIActionBarTab.java:39)\r\n[ERROR] : TiApplication: \tat android.support.v4.app.Fragment.performCreateView(Fragment.java:1500)\r\n[ERROR] : TiApplication: \tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:938)\r\n[ERROR] : TiApplication: \tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1115)\r\n[ERROR] : TiApplication: \tat android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)\r\n[ERROR] : TiApplication: \tat android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1478)\r\n[ERROR] : TiApplication: \tat android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:570)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.onStart(TiBaseActivity.java:1148)\r\n[ERROR] : TiApplication: \tat android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1168)\r\n[ERROR] : TiApplication: \tat android.app.Activity.performStart(Activity.java:5213)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2171)\r\n[ERROR] : TiApplication: \t... 11 more\r\n\r\n According to the debug-info,I changed the timodule.xml and declared the activity TestPage in it,which is the following:\r\n \r\n\t\t\r\n\t \t \r\n \r\n \r\n \r\n \r\n \r\n\t\t \r\n\t\t \t\t\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\r\n\t\t\r\n\t\r\n\r\n After this step,I rebuild the module and re-add it into the Titanium App project and run.The problem is still not solved.Who can tell me why and how to solve?Thanks a lot. The attachment include the app project and the module project source codes.\r\n\r\n \r\n\r\n \r\n\r\n\r\n\r\n\r\n ", "attachment": [ { "id": "55290", "filename": "TestPage.zip", "author": { "name": "geocb", "key": "geocb", "displayName": "binchen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-08T01:37:07.000+0000", "size": 3399, "mimeType": "application/zip" } ], "flagged": false, "summary": " Titanium Module Start Activity:android.content.ActivityNotFoundException", "creator": { "name": "geocb", "key": "geocb", "displayName": "binchen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "geocb", "key": "geocb", "displayName": "binchen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OS:Windows\r\nTitanium SDK 3.5.1.GA\r\nAndroid SDK:android-14", "comment": { "comments": [ { "id": "362053", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI have tested default module and various GitHub modules and did not get any error result so far.\r\n\r\nSo I recommend you to follow this [Android Module Development Guide|http://docs.appcelerator.com/platform/latest/#!/guide/Android_Module_Development_Guide latest build] and Github Module then let us know if you get the error again.\r\n\r\n*Testing Environment:*\r\nCommand-Line Interface, version 4.1.2,\r\nTi SDK: 4.1.0.GA,\r\nAndroid Version: 4.2.2, 4.4.2, 5.1.0,\r\nStudio Version: 4.1.1\r\n\r\n\r\nThanks.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-02T10:20:57.000+0000", "updated": "2015-09-30T02:54:15.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }