New intent filter
This commit is contained in:
parent
b634582701
commit
f0275dcc92
3 changed files with 10 additions and 2 deletions
|
@ -56,6 +56,10 @@
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
<data android:mimeType="xash3d.android/game"/>
|
<data android:mimeType="xash3d.android/game"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="in.celest.xash3d.START" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name="in.celest.xash3d.XashActivity"
|
<activity android:name="in.celest.xash3d.XashActivity"
|
||||||
android:screenOrientation="landscape"
|
android:screenOrientation="landscape"
|
||||||
|
|
|
@ -23,8 +23,8 @@ public class ShortcutActivity extends Activity
|
||||||
}
|
}
|
||||||
public void saveShortcut(View view)
|
public void saveShortcut(View view)
|
||||||
{
|
{
|
||||||
Intent intent = new Intent(Intent.ACTION_VIEW,null);
|
Intent intent = new Intent();
|
||||||
intent.setType("xash3d.android/game");
|
intent.setAction("in.celest.xash3d.START");
|
||||||
EditText argv = (EditText)findViewById(R.id.shortcut_cmdArgs);
|
EditText argv = (EditText)findViewById(R.id.shortcut_cmdArgs);
|
||||||
if(argv.length() != 0) intent.putExtra("argv",argv.getText().toString());
|
if(argv.length() != 0) intent.putExtra("argv",argv.getText().toString());
|
||||||
EditText gamedir = (EditText)findViewById(R.id.shortcut_gamedir);
|
EditText gamedir = (EditText)findViewById(R.id.shortcut_gamedir);
|
||||||
|
|
|
@ -56,6 +56,10 @@
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
<data android:mimeType="xash3d.android/game"/>
|
<data android:mimeType="xash3d.android/game"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="in.celest.xash3d.START" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name="in.celest.xash3d.XashActivity"
|
<activity android:name="in.celest.xash3d.XashActivity"
|
||||||
android:screenOrientation="landscape"
|
android:screenOrientation="landscape"
|
||||||
|
|
Loading…
Add table
Reference in a new issue