모 바 일 android xml 파일에서 바로가기를 만들려고 하는데요
2022.07.14 17:17
android xml 파일에서 바로가기를 만들려고 하는데요, url을 어디에 넣나요?
url = https://windowsforum.kr
windowsforum.xml 파일입니다.
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:shortcutId="manage_shortcuts"
android:enabled="true"
android:icon="@drawable/ic_launcher_foreground"
android:shortcutShortLabel="@string/short_label"
android:shortcutLongLabel="@string/short_label"
android:shortcutDisabledMessage="@string/short_label">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="com.example.ssa_modular"
android:targetClass="com.example.ssa_modular.MainActivity" />
</shortcut>
<shortcut
android:shortcutId="manage_shortcuts2"
android:icon="@drawable/ic_launcher_background"
android:shortcutShortLabel="@string/long_label"
android:shortcutLongLabel="@string/long_label"
android:shortcutDisabledMessage="@string/long_label">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="com.example.ssa_modular"
android:targetClass="com.example.ssa_modular.MainActivity" />
</shortcut>
</shortcuts>
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity>