Shortcuts improvements
This commit is contained in:
parent
073e43a5a4
commit
3b74455dcb
3 changed files with 7 additions and 4 deletions
|
@ -113,6 +113,9 @@ try{
|
||||||
public void createShortcut(View view)
|
public void createShortcut(View view)
|
||||||
{
|
{
|
||||||
Intent intent = new Intent(this, ShortcutActivity.class);
|
Intent intent = new Intent(this, ShortcutActivity.class);
|
||||||
|
intent.putExtra( "basedir", resPath.getText().toString() );
|
||||||
|
intent.putExtra( "name", "Xash3D" );
|
||||||
|
intent.putExtra( "argv", cmdArgs.getText().toString() );
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,13 +31,13 @@ public class ShortcutActivity extends Activity
|
||||||
argv.setText(argvs);
|
argv.setText(argvs);
|
||||||
String pkgnames = intent.getStringExtra("pkgname");
|
String pkgnames = intent.getStringExtra("pkgname");
|
||||||
if( pkgnames != null )
|
if( pkgnames != null )
|
||||||
argv.setText(pkgnames);
|
pkgname.setText(pkgnames);
|
||||||
String gamedirs = intent.getStringExtra("gamedir");
|
String gamedirs = intent.getStringExtra("gamedir");
|
||||||
if( gamedirs != null )
|
if( gamedirs != null )
|
||||||
argv.setText(gamedirs);
|
gamedir.setText(gamedirs);
|
||||||
String names = intent.getStringExtra("name");
|
String names = intent.getStringExtra("name");
|
||||||
if( names != null )
|
if( names != null )
|
||||||
argv.setText(names);
|
name.setText(names);
|
||||||
|
|
||||||
//name.setText("Name");
|
//name.setText("Name");
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ import android.content.*;
|
||||||
*/
|
*/
|
||||||
public class SDLActivity extends Activity {
|
public class SDLActivity extends Activity {
|
||||||
private static final String TAG = "SDL";
|
private static final String TAG = "SDL";
|
||||||
private static final int PAK_VERSION = 1;
|
private static final int PAK_VERSION = 2;
|
||||||
|
|
||||||
// Keep track of the paused state
|
// Keep track of the paused state
|
||||||
public static boolean mIsPaused, mIsSurfaceReady, mHasFocus, mUseVolume;
|
public static boolean mIsPaused, mIsSurfaceReady, mHasFocus, mUseVolume;
|
||||||
|
|
Loading…
Add table
Reference in a new issue