I can't seem to figure out the manifest file and getting this to
work.
When I try to add an activity that's external to my app, it asks for
the class. When I add it explicitly the compiler complains.
Only one package is listed and allowed in the manifest file, however,
and I can't seem to launch it. What I am not getting here?
Is it not possible to launch an external application from your own? Is
it a question of privacy?
Java:
String pkgName = "com.android.demo.notepad3";
String nameClass = "NoteEdit";
Intent intent = new Intent("com.android.demo.notepad3");
intent.setClassName(pkgName,nameClass);
startActivity(intent);
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.openintents.samples.SensorDemo"
android:versionCode="1"
android:versionName="1.0">
<!-- The INTERNET permission is required to connect to the
SensorSimulator: -->
<uses-permission android:name="android.permission.INTERNET"/>
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<activity android:name=".SensorDemoActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.android.demo.notepad3.NotePad">
</activity>
<intent-filter>
<action android:name="com.android.demo.notepad3" />
<category android:name="android.intent.category.MAIN" />
</intent-filter>
</application>
<uses-sdk android:minSdkVersion="2" />
</manifest>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---