mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 03:40:03 +00:00
(Android) add options to download manual/cores manual
This commit is contained in:
parent
1732ffec5f
commit
34b86c2d14
@ -2,4 +2,6 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:id="@+id/rarch_settings" android:title="@string/rarch_settings" android:showAsAction="ifRoom" />
|
||||
<item android:id="@+id/input_method_select" android:title="@string/input_method" android:showAsAction="ifRoom" />
|
||||
<item android:id="@+id/retroarch_guide" android:title="@string/retroarch_guide"></item>
|
||||
<item android:id="@+id/cores_guide" android:title="@string/cores_guide"></item>
|
||||
</menu>
|
@ -9,5 +9,7 @@
|
||||
<string name="input_settings">Input Settings</string>
|
||||
<string name="general_settings">General Settings</string>
|
||||
<string name="settings">Settings</string>
|
||||
<string name="retroarch_guide">RetroArch Guide</string>
|
||||
<string name="cores_guide">Cores Guide</string>
|
||||
|
||||
</resources>
|
||||
|
@ -7,6 +7,7 @@ import java.io.*;
|
||||
import android.content.*;
|
||||
import android.content.res.AssetManager;
|
||||
import android.app.*;
|
||||
import android.net.Uri;
|
||||
import android.os.*;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.provider.Settings;
|
||||
@ -353,6 +354,16 @@ public class RetroArch extends Activity implements
|
||||
startActivity(rset);
|
||||
return true;
|
||||
|
||||
case R.id.retroarch_guide:
|
||||
Intent rguide = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.libretro.org/documents/retroarch-manual.pdf"));
|
||||
startActivity(rguide);
|
||||
return true;
|
||||
|
||||
case R.id.cores_guide:
|
||||
Intent cguide = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.libretro.org/documents/retroarch-cores-manual.pdf"));
|
||||
startActivity(cguide);
|
||||
return true;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user