how to call subactivity of another application android?

Posted by Are on Stack Overflow See other posts from Stack Overflow or by Are
Published on 2010-12-21T06:09:04Z Indexed on 2010/12/21 6:54 UTC
Read the original article Hit count: 187

Filed under:

Hi.

To call main activity I saw componentName class in android.

intent = new Intent(new ComponentName(packageNam,classname);

if same is used in case of child activity, I got error , "is activity delcared in andorid manifest?" like error.

how to call app1 child activity in app2 by using intent ? In app1 the activity is declared like this in manifest

<activity android:name=".activity.MessageCompose" android:label="@string/app_name" android:enabled="false">
- <intent-filter>
  <action android:name="android.intent.action.VIEW" /> 
  <action android:name="android.intent.action.SENDTO" /> 
  <data android:scheme="mailto" /> 
  <category android:name="android.intent.category.DEFAULT" /> 
  <category android:name="android.intent.category.BROWSABLE" /> 
  </intent-filter>
- <intent-filter android:label="@string/app_name">
  <action android:name="android.intent.action.SEND" /> 
  <data android:mimeType="*/*" /> 
  <category android:name="android.intent.category.DEFAULT" /> 
  </intent-filter>
- <intent-filter android:label="@string/app_name">
  <action android:name="android.intent.action.SEND_MULTIPLE" /> 
  <data android:mimeType="*/*" /> 
  <category android:name="android.intent.category.DEFAULT" /> 
  </intent-filter>
  </activity>

© Stack Overflow or respective owner

Related posts about android