Implement ShellExecute for Android(java part)
This commit is contained in:
parent
0213d3be89
commit
25608759e5
1 changed files with 7 additions and 0 deletions
|
@ -927,6 +927,13 @@ public class XashActivity extends Activity {
|
||||||
fMouseShown = show != 0;
|
fMouseShown = show != 0;
|
||||||
handler.showMouse( fMouseShown );
|
handler.showMouse( fMouseShown );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Just opens browser
|
||||||
|
public static void shellExecute( String path )
|
||||||
|
{
|
||||||
|
final Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse(path));
|
||||||
|
mSingleton.startActivity(intent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue