forked from mirrors/kolyah35-minecraft-pe-0.6.1
Added openURL(String) helper
This commit is contained in:
parent
a80d2ee847
commit
33590751c5
1 changed files with 9 additions and 0 deletions
|
|
@ -583,6 +583,15 @@ public class MainActivity extends Activity {
|
|||
return kcm.get(keyCode, metaState);
|
||||
}
|
||||
|
||||
public void openURL(String url) {
|
||||
try {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, android.net.Uri.parse(url));
|
||||
startActivity(intent);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public String getPlatformStringVar(int id) {
|
||||
if (id == 0) return android.os.Build.MODEL;
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue