Android Manifest ActiviyNotFoundException -


i working on university project , have app 50+ activities. of app existed , added it. of pages had content fit small devices locked large screens. when added code limit screen sizes, getting error of duplicate activites in manifest. when had saw following repeated 3 times:

<activity             android:name="com.ucl.pga.db.objective.objective"             android:label="@string/title_activity_objective" >         </activity> 

however, there 1 activity in project name.

after removing this, app worked fine , limited large screen sizes. however, have attempted reload on emulator , getting following error:

08-18 09:34:00.589: e/androidruntime(1729): caused by: android.content.activitynotfoundexception: unable find explicit activity class {com.ucl.pga/com.ucl.pga.db.objective.observation}; have declared activity in androidmanifest.xml? 

i understand saying activity not exist, sure does. sure 3 instances removed.

the activity trying load is:

com.ucl.pga.db.objective 

the full manifest below:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.ucl.pga"     android:versioncode="1"     android:versionname="1.0" >      <uses-permission android:name="android.permission.get_accounts" />     <uses-permission android:name="android.permission.use_credentials" />     <uses-permission android:name="android.permission.manage_accounts" />     <uses-permission android:name="android.permission.authenticate_accounts" />     <uses-permission android:name="android.permission.internet" />     <uses-permission android:name="android.permission.write_settings" />     <uses-permission android:name="android.permission.read_sync_stats" />     <uses-permission android:name="android.permission.read_sync_settings" />     <uses-permission android:name="android.permission.write_sync_settings" />     <uses-permission android:name="android.permission.write_external_storage" />      <supports-screens android:smallscreens="false"                       android:normalscreens="false"                       android:largescreens="true"                       android:xlargescreens="true"                       android:requiressmallestwidthdp="600" />       <uses-sdk         android:minsdkversion="14"         android:targetsdkversion="17" />      <application         android:allowbackup="false"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/apptheme" >         <activity             android:name="com.ucl.pga.loginactivity"             android:configchanges="orientation|keyboardhidden"             android:label="@string/title_activity_login"             android:screenorientation="landscape" >             <intent-filter>                 <action android:name="android.intent.action.main" />                  <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>         <activity             android:name="com.ucl.pga.appointmentlistactivity"             android:label="@string/title_activity_appointment_list"             android:screenorientation="landscape" >             <meta-data                 android:name="android.app.searchable"                 android:resource="@xml/searchable" />             <meta-data                 android:name="android.support.parent_activity"                 android:value="com.ucl.pga.loginactivity" />         </activity>         <activity             android:name="com.ucl.pga.appointmentdetailsactivity"             android:label="@string/title_activity_apointment_details"             android:parentactivityname="com.ucl.pga.appointmentlistactivity"             android:screenorientation="landscape" >             <meta-data                 android:name="android.support.parent_activity"                 android:value="com.ucl.pga.appointmentlistactivity" />         </activity>         <activity             android:name="com.ucl.pga.activitymain"             android:label="@string/app_name"             android:screenorientation="landscape"             android:theme="@style/appbasetheme" >         </activity>         <activity             android:name="com.ucl.pga.sync.authenticatoractivity"             android:configchanges="orientation"             android:excludefromrecents="true"             android:label="@string/app_name"             android:theme="@android:style/theme.dialog" >              <!--                 no intent-filter here! activity ever launched                 explicitly knows class name              -->         </activity>          <service             android:name="com.ucl.pga.sync.authenticationservice"             android:exported="true" >             <intent-filter>                 <action android:name="android.accounts.accountauthenticator" />             </intent-filter>              <meta-data                 android:name="android.accounts.accountauthenticator"                 android:resource="@xml/authenticator" />         </service>         <service             android:name="com.ucl.pga.sync.syncservice"             android:exported="true" >             <intent-filter>                 <action android:name="android.content.syncadapter" />             </intent-filter>              <meta-data                 android:name="android.content.syncadapter"                 android:resource="@xml/syncadapter" />         </service>          <provider             android:name="com.ucl.pga.sync.provider"             android:authorities="com.ucl.pga.sync.provider"             android:exported="false"             android:multiprocess="true" >         </provider>          <activity             android:name="com.ucl.pga.assessment"             android:label="@string/title_activity_assessment" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.objective"             android:label="@string/title_activity_objective" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.subjective"             android:label="@string/title_activity_subjective" >         </activity>         <activity             android:name="com.ucl.pga.objective.observation"             android:label="@string/title_activity_observation" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.joint_integrity_tests"             android:label="@string/title_activity_joint__integrity__tests" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.active_movements"             android:label="@string/title_activity_activee__movements" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.passive_movements"             android:label="@string/title_activity_passive__movements" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.repeated_movements"             android:label="@string/title_activity_repeated__movements" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.combined_movements"             android:label="@string/title_activity_combined__movements" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.capsular_pattern"             android:label="@string/title_activity_capsular__pattern" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.joint_effusion"             android:label="@string/title_activity_joint__effusion" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.ppivms"             android:label="@string/title_activity_ppivms" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.other_joints_involved"             android:label="@string/title_activity_other__joints__involved" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.muscle_strength"             android:label="@string/title_activity_muscle__strength" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.muscle_control"             android:label="@string/title_activity_muscle__control" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.muscle_length"             android:label="@string/title_activity_muscle__length" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.isometric_muscle_tests"             android:label="@string/title_activity_isometric__muscle__tests" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.integrity_of_nervous_system"             android:label="@string/title_activity_integrity__of__nervous__system" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.mobility_of_nervous_system"             android:label="@string/title_activity_mobility__of__nervous__system" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.diagnostic_tests"             android:label="@string/title_activity_diagnostic__tests" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.special_tests"             android:label="@string/title_activity_special__tests" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.accessory_movements"             android:label="@string/title_activity_accessory__movements" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.palpation"             android:label="@string/title_activity_palpatation" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.conclusion"             android:label="@string/title_activity_conclusion" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.diagnosis"             android:label="@string/title_activity_diagnosis" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.consent"             android:label="@string/title_activity_consent" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.onset"             android:label="@string/title_activity_onset" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.symptoms"             android:label="@string/title_activity_symptoms" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.location"             android:label="@string/title_activity_location" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.depth"             android:label="@string/title_activity_depth" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.nature"             android:label="@string/title_activity_nature" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.agg"             android:label="@string/title_activity_agg" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.ease"             android:label="@string/title_activity_ease" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.twentfour_hours"             android:label="@string/title_activity_twentfour__hours" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.sin_factor"             android:label="@string/title_activity_sin__factor" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.pain_score"             android:label="@string/title_activity_pain__score" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.status"             android:label="@string/title_activity_status" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.history"             android:label="@string/title_activity_history" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.past_medical_history"             android:label="@string/title_activity_past__medical__history" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.drug_history"             android:label="@string/title_activity_drug__history" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.other_comments"             android:label="@string/title_activity_other__comments" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.special_questions"             android:label="@string/title_activity_special__questions" >         </activity>         <activity             android:name="com.ucl.pga.db.objective.summary"             android:label="@string/title_activity_summary" >         </activity>         <activity             android:name="com.ucl.pga.db.subjective.summary1"             android:label="@string/title_activity_summary1" >         </activity>     </application>  </manifest> 

and full logcat below:

08-18 09:34:00.589: e/androidruntime(1729): fatal exception: main 08-18 09:34:00.589: e/androidruntime(1729): java.lang.illegalstateexception: not execute method of activity 08-18 09:34:00.589: e/androidruntime(1729):     @ android.view.view$1.onclick(view.java:3591) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.view.view.performclick(view.java:4084) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.view.view$performclick.run(view.java:16966) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.os.handler.handlecallback(handler.java:615) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.os.handler.dispatchmessage(handler.java:92) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.os.looper.loop(looper.java:137) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.app.activitythread.main(activitythread.java:4745) 08-18 09:34:00.589: e/androidruntime(1729):     @ java.lang.reflect.method.invokenative(native method) 08-18 09:34:00.589: e/androidruntime(1729):     @ java.lang.reflect.method.invoke(method.java:511) 08-18 09:34:00.589: e/androidruntime(1729):     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:786) 08-18 09:34:00.589: e/androidruntime(1729):     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:553) 08-18 09:34:00.589: e/androidruntime(1729):     @ dalvik.system.nativestart.main(native method) 08-18 09:34:00.589: e/androidruntime(1729): caused by: java.lang.reflect.invocationtargetexception 08-18 09:34:00.589: e/androidruntime(1729):     @ java.lang.reflect.method.invokenative(native method) 08-18 09:34:00.589: e/androidruntime(1729):     @ java.lang.reflect.method.invoke(method.java:511) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.view.view$1.onclick(view.java:3586) 08-18 09:34:00.589: e/androidruntime(1729):     ... 11 more 08-18 09:34:00.589: e/androidruntime(1729): caused by: android.content.activitynotfoundexception: unable find explicit activity class {com.ucl.pga/com.ucl.pga.db.objective.observation}; have declared activity in androidmanifest.xml? 08-18 09:34:00.589: e/androidruntime(1729):     @ android.app.instrumentation.checkstartactivityresult(instrumentation.java:1541) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.app.instrumentation.execstartactivity(instrumentation.java:1416) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.app.activity.startactivityforresult(activity.java:3351) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.app.activity.startactivityforresult(activity.java:3312) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.app.activity.startactivity(activity.java:3522) 08-18 09:34:00.589: e/androidruntime(1729):     @ android.app.activity.startactivity(activity.java:3490) 08-18 09:34:00.589: e/androidruntime(1729):     @ com.ucl.pga.assessment.onclick(assessment.java:102) 08-18 09:34:00.589: e/androidruntime(1729):     ... 14 more 

any appreciated

from logcat error:

com.ucl.pga/com.ucl.pga.db.objective.observation 

which different manifest

android:name="com.ucl.pga.db.objective.objective" 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -