Ich kann auf dem Startbildschirm kein Verknüpfungssymbol hinzufügen. Ich möchte dies nur mit Manifest tun und nicht durch Hinzufügen einer Methode zur Aktivität.Wie man Verknüpfungssymbol auf dem Startbildschirm in Android hinzufügen?
i müde dieser Code in manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.fz.atifandroid">
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<uses-permission
android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission
android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@drawable/icon_image"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.AppCompat.Light.NoActionBar">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="orientation|screenSize">
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!--<activity android:name=".MainActivity"/>-->
</application>
</manifest>
ich Ihre Frage upvoted. Ich fand es echt. – Ironman
check this out [link] (http://stackoverflow.com/questions/6337431/android-create-shortcuts-on-the-home-screen/20536046#20536046) –
Bereits beantwortet in [Wie Verknüpfung zum Startbildschirm hinzufügen in android programmatisch] (http://stackoverflow.com/questions/16873256/how-to-add-shortcut-to-home-screen-in-android-programatically) – ShivBuyya