417 Commits

Author SHA1 Message Date
Lioncash
089d1a7c50 [Android] More documentation of DirectoryFragment. 2013-11-17 16:22:40 -05:00
twinaphex
bad7671159 (Android) Stub camera functions in Java 2013-11-17 21:34:07 +01:00
Lioncash
8777d958dc [Android] Cache the context in MainMenuFragment. Makes things look nicer, also gets rid of a few variable declarations. 2013-11-17 03:37:04 -05:00
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
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
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
6b5b26614d (apk-extract Android) Don't verbosely log each file that is being
extracted
2013-11-02 18:47:04 +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
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 bfdc1e0e601a85db973adc49215e5c77719e2d7e.

- 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
twinaphex
967e1e2846 (Android) Change packagename from org.retroarch to com.retroarch 2013-10-30 03:06:54 +01:00
Squarepusher
b558f258dc Update Building in Eclipse.md 2013-10-30 02:46:22 +01:00
twinaphex
0952c88ec2 (Android Java) update libretro_cores.cfg (note to Lioncash - we
should be getting rid of this file short-term and using the core
info files directly from the Java frontend instead)
2013-10-30 02:19:06 +01:00
twinaphex
6a449e898d (Android Java) Disregard 'libretro_' prefix - should just add all
cores it can find in assets/cores
2013-10-30 01:16:28 +01:00
twinaphex
9e4b672634 Move cores to an 'asset' folder - create a directory in phoenix/assets folder,
call it 'cores', move all the cores there. The APK extract and retroarch activity
libraries still need to remain in phoenix/libs. This will allow Lioncash to make
his core manager be able to uninstall cores etc.
2013-10-30 01:07:49 +01:00
Squarepusher
3bae1122de Update Building in Eclipse.md 2013-10-23 10:42:24 +02:00
Chris Merrett
3ec7065238 Added Android support for cheap G910 gamepad. 2013-10-22 22:31:48 +01:00
Lioncash
14992ea911 [Android] Update the documentation with better Eclipse instructions. 2013-10-21 22:27:19 -04:00
Lioncash
eec6faf7a1 [Android] Update documentation to explain how to build the JNI portions of the Android front-end. 2013-10-21 22:02:33 -04:00
ToadKing
57677f8d2a [ANDROID] fix compile on windows
broken make in android toolkit can't have paths with colons in LOCAL_SRC_FILES, just assume we're getting called from the right directory
2013-10-21 21:38:54 -04:00
Lioncash
21f7b63417 [Android] Revise core location in Building in Eclipse.md 2013-10-21 21:05:36 -04:00
Lioncash
e225bc087f [Android] Fix the markdown syntax for the numeric list in the build instructions. Also minor text change. 2013-10-19 23:10:41 -04:00