Android activity launched with parameter is launched into caller's task -
my android sound app can started parameter using intents. works far, calling app (e.g. es explorer) disappears , not usable until app closed. want app started independently starting app. controlled starting app or can adjust create activity standalone? thanks!
my manifest:
<application android:icon="@drawable/icon" android:label="@string/app_name" > <activity android:name=".activityname" android:configchanges="keyboardhidden|orientation" android:launchmode="singletop" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <data android:scheme="file" /> <data android:host="*" /> <data android:mimetype="audio/mpeg" /> <data android:mimetype="audio/wav" /> </intent-filter> </activity> <activity android:name=".settingsname" /> <service android:name=".servicename" /> </application>
my (working) intent receivement in activity:
intent intent = getintent(); string paramurl = intent.getdatastring();
you can delcare activityname
activity have android:launchmode="singletask"
in manifest. then, if app launches activityname
via intent
, activity started in new task, , not within caller's task.
this isn't called "child app", have rephrased question utilize right words.
android android-intent android-activity parameters manifest
No comments:
Post a Comment