Commit Graph

883 Commits

Author SHA1 Message Date
Lioncash
26e9bef7ac [Android] Simplify the setting of the AlertDialog in function detectDevice. setMessage allows setting the message through just the message string ID. 2013-11-17 03:28:19 -05:00
Lioncash
4368467977 [Android] Finish the RetroTVMode activity when it launches the activity within its onCreate. Avoids a blank view when the launched activity finishes. 2013-11-17 03:08:23 -05:00
Lioncash
4b79284064 {Android] Fix a string's casing and structure. 2013-11-17 02:55:12 -05:00
Lioncash
114cf4e926 [Android] Initial huge underlying UI update:
- The UI is now mostly Fragment-centric (finally!)
- The Load Core, Load Game, Load Game (History) are now DialogFragments.
- The directory activities are killed off and consolidated into one fragment named DirectoryFragment.

DirectoryFragment is now a self-contained instantiable DirectoryFragment that can be instantiated anywhere by doing roughly the following.

DirectorFragment dFrag = DirectoryFragment.newInstance(/* Resource ID for a string title here*/);
dFrag.show(getFragmentManager(), "tag");

There are also other methods that were modified within the DirectoryFragment, such as addAllowedExt and disAllowedExt being changed to support a variable amount of arguments. This way, multiple calls of the same function aren't necessary in the case of adding multiple extensions, as well as supporting the case where only one extension is added.

DirectoryFragment also has a new interface added to it called OnDirectoryFragmentClosedListener. Say you have a DirectoryFragment instance, but want to use the selected item's path for something *after* the dialog has closed, with this interface, it is now possible. Just implement this interface within an Activity or Fragment, and then set the DirectoryFragment to use the listener through setOnDirectoryFragmentClosedListener() method.

Now what happens if this isn't set, wouldn't it be pointless to even use a DirectoryFragment in this case?
Not necessarily. What if you only wanted to save the selected item into the applications SharedPreferences?
This is a situation where it would be unnecessary to need that interface. So, to make a DirectoryFragment.java for the sole purpose of saving a selected directory/file path to the SharedPreferences, you would do this:

DirectoryFragment dFrag = DirectoryFragment.newInstance(/* Resource ID to a string title here*/);
dFrag.setPathSettingKey("key to store value in SharedPreferences at");
dFrag.show(getFragmentManager(), "tag");

Outside of these major changes, large portions of the code outside of this were simplified.
2013-11-17 02:37:33 -05:00
twinaphex
bdf8ba19e4 (Android) Compile with HAVE_NETPLAY enabled 2013-11-10 04:22:29 +01:00
twinaphex
87179e4946 (Android) Define HAVE_MENU 2013-11-08 04:53:40 +01:00
twinaphex
da8f8b6d63 Get rid of lifecycle_mode_state and use g_extern.lifecycle_state
instead
2013-11-07 21:44:44 +01:00
Lioncash
48fd723015 [Android] Add an info view to the core manager InstalledCoresFragment. Also added a dual-fragment layout of this for tablet devices as well. 2013-11-06 23:39:15 -05:00
twinaphex
cb1381c94f (Android) Take out all FAQs 2013-11-05 15:21:35 +01:00
twinaphex
5bb65b9fa7 (Android) Remove What's New - too much maintenance cost 2013-11-05 13:51:40 +01:00
twinaphex
8666c9e64f Remove some obsolete help pages 2013-11-05 13:47:42 +01:00
Lioncash
801af3be81 [Android] Add rewinding granularity to the general settings. 2013-11-04 11:19:50 -05:00
twinaphex
e3ebfbffa9 Rename frontend_android.h to platform_android.h 2013-11-03 17:02:40 +01:00
Themaister
ae07e75e7c Hook up sensors API in libretro.
There are still many FIXMEs to be resolved before the interface
can lose its experimental status.
2013-11-03 12:06:14 +01:00
Squarepusher
f666509e37 Merge pull request #371 from lioncash/master
[Android] Sort the cores in the CoreSelection activity alphabetically.
2013-11-02 20:17:24 -07:00
Lioncash
071b2c8e6a [Android] Document a large amount of the Android front-end classes (also some methods).
Also adjusted the tab indentation of the GPL waiver method, was one tab too far.
2013-11-02 23:15:56 -04:00
Lioncash
d07d97e517 [Android] Sort the cores in the CoreSelection activity alphabetically. Also document the IconAdapter class, along with its IconAdapterItem interface. 2013-11-02 22:40:41 -04:00
Squarepusher
c4268a1079 Merge pull request #370 from lioncash/master
[Android] Do checking for a valid core name in ModuleWrapper.
2013-11-02 19:17:55 -07:00
Lioncash
dd8a57f26c [Android] Do checking for a valid core name in ModuleWrapper. Prevents a potential crash when random files are tossed in the cores folder. 2013-11-02 22:14:30 -04:00
twinaphex
5a466c064e (Android) Add FIXME to input_android.c 2013-11-03 01:34:01 +01:00
twinaphex
c65670df31 (Android) Add parenheses around sensor mask conditionals 2013-11-03 00:31:24 +01:00
twinaphex
c0e02d3957 (Android/General) Add preliminary sensor support to libretro API /
add accelerometer support to Android input driver
2013-11-03 00:27:58 +01:00
twinaphex
3e5489cc6e (Android) Build fix 2013-11-02 21:50:38 +01:00
twinaphex
3e8166bfa5 (Input) Add new function to input driver - get_capabilities 2013-11-02 21:16:57 +01:00
twinaphex
14ae3ca316 (Android) Don't do log spamming inside input event queue poll function 2013-11-02 18:59:17 +01:00
twinaphex
6b5b26614d (apk-extract Android) Don't verbosely log each file that is being
extracted
2013-11-02 18:47:04 +01:00
twinaphex
727dc76db8 (Console/Android) Init input driver from context driver/graphics
driver from now on - just like PC - input driver initing can be
hoisted out of global_drivers_init that way
2013-11-01 16:33:32 +01:00
twinaphex
297be8eb56 (Android andretro) get rid of andretro 2013-11-01 07:49:07 +01:00
twinaphex
334fe12d75 (Android Phoenix) Fix apostrophe - needs to be escaped 2013-11-01 03:17:48 +01:00
ToadKing
816f2f6d47 waiver text update 2013-10-31 21:06:37 -04:00
twinaphex
7021ada78f (Android) Add GPL license waiver dialog box - text will need further
refinement
2013-11-01 01:47:20 +01:00
twinaphex
a8696e2506 (RSound) Bake in rsound for Android port - should also be possible
to bake it in by default for PC now - made librsound.c crossplatform
2013-11-01 00:07:52 +01:00
twinaphex
dd68d46b4c (Android) Wrap pthread calls 2013-10-31 23:12:40 +01:00
twinaphex
8f3a404ff6 (Android Phoenix) RetroActivity - get rid of unused showToastAlert 2013-10-31 17:58:13 +01:00
twinaphex
8e33364cdc (Android Phoenix) Some cleanups in CoreSelection.java 2013-10-31 17:09:20 +01:00
twinaphex
0f67501354 (Android) Remove note about GPU requirements shaders 2013-10-31 17:04:49 +01:00
twinaphex
ed72993745 (Android) Remove now obsolete libretro_cores.cfg 2013-10-31 17:00:42 +01:00
Lioncash
19b538a154 [Android | ModuleWrapper] Handle case where a core is added without an info file. 2013-10-31 11:51:23 -04:00
twinaphex
0e18087d2a (Android Phoenix) Fixed some issues with ModuleWrapper (Lioncash) 2013-10-31 15:59:12 +01:00
Squarepusher
bf4a96d22f Merge pull request #363 from lioncash/core-manager
Core Manager + core info file support.
2013-10-31 07:18:31 -07:00
Lioncash
a9cd6f8406 [Android] Fix accessibility scope of a field in KeyBindPreference.java. This doesn't need to be package-private, but private. It should not be able to be directly accessed. 2013-10-31 07:58:09 -04:00
Lioncash
0cd372c3c0 [Android] Validate constructor parameters in ConfigFile. 2013-10-31 07:50:05 -04:00
Lioncash
03260c3e6f [Android] Change ConfigFile's get[x] methods to throw IllegalArgumentExceptions instead on NumberFormatExceptions. It was incorrect to throw that exception, since it had nothing to do with how the number was formatted in the string.
If a number formatting problem occurred, [type object].parse[type]() methods would throw a NumberFormatException.

Also fixed a slight typo in CoreManagerActivity.
2013-10-31 07:45:09 -04:00
Lioncash
e11b678ddd [Android] Readability cleanup in IconAdapter.java. 2013-10-31 05:06:31 -04:00
Lioncash
97c1745909 Revert "[Android] Move the main activity to use Fragments."
This is pretty pointless at the moment actually.

This reverts commit bfdc1e0e60.

- Keeps some modifications to the MainMenuActivity. Most notably the title string retains itself upon orientation changes.
- Also fix some bugs in the PreferenceListFragment. Most notably, the handler message not being removed.
2013-10-31 04:59:24 -04:00
Lioncash
bfdc1e0e60 [Android] Move the main activity to use Fragments.
Cleaned up the main activity as well.
2013-10-31 04:00:33 -04:00
Lioncash
7c07e35f4a [Android] Implement info file support for Android. Also modified the core manager to adapt to this.
- Added JavaDoc to ModuleWrapper and ConfigFile as well.
- Did some tiny simplifications with ConfigFile.java
- Handle the IOExceptions with the parameterized constructor. The only reason this could fail is fail is if the InputStream suddenly closed for an arbitrary reason.
2013-10-31 01:54:42 -04:00
Lioncash
490f35a6c3 [Android] InstalledCoresFragment is now functional. Complete with alphabetic sorting and the ability to uninstall cores. 2013-10-30 18:20:50 -04:00
twinaphex
559a91ff1f (Android Phoenix) Clean up two warnings 2013-10-30 23:20:07 +01:00
Lioncash
8453002ee0 [Android] Initial skeleton for the core manager. Not functional yet. 2013-10-30 00:55:41 -04:00