mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
Added openURL(String) helper
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user