Commit Graph

636 Commits

Author SHA1 Message Date
twinaphex
6ce9c64e04 (Android) Change default overlay for Android to snes/snes.cfg 2013-12-28 03:14:21 +01:00
twinaphex
d1bdd4bd97 (Android/Apple) Set default opacity to 0.7f 2013-12-25 02:41:37 +01:00
Lioncash
192bf387d4 Clean up tab/space mistmatch in RetroActivityLocation.java 2013-12-21 17:01:20 -05:00
twinaphex
9c82f5e89e (Android locatio) Gets location updates now (seems to call
onLocationChanged) but only if Wifi is enabled - Wifi off and
GPS on doesn't work yet
2013-12-21 16:55:05 +01:00
twinaphex
9e3b69cb78 (Android) RetroActivityLocation - some cleanups 2013-12-21 16:43:50 +01:00
twinaphex
2b5ece3804 (ANdroid JNI) Bugfix - onLocationGetHorizontalAccuracy should return
double, not float
2013-12-21 15:04:47 +01:00
twinaphex
be5609269a (Android location) Gets a bit further but still not calling onLocationChanged - just renders the text for the first location retrieval and nothing else after that 2013-12-21 14:58:29 +01:00
twinaphex
c68312fe31 (Android Location) Some changes - still not working 2013-12-21 06:19:38 +01:00
twinaphex
0d94dd03f7 (Android location) onConnected/onDisconnected reimplemented - still don't seem
to get to onLocationChanged though
2013-12-20 21:49:43 +01:00
twinaphex
1a20317cef (Android Location) Add metadata to manifest 2013-12-20 19:33:14 +01:00
Lioncash
77fbe67dbe [Android] Fix a bug in the DetectCoreDirectoryFragment.
Would crash if an unsupported file was tapped twice because it would set the inFileBrowser boolean to false, thus leading to the attempt to launch said unsupported file. Fixes this.

Also made it display a brief toast if no cores support the extension of the file.
2013-12-20 12:47:39 -05:00
twinaphex
3338513a9a (Android) Add another permission- ACCESS_COARSE_LOCATION - in case LocationManager
needs this
2013-12-20 01:18:35 +01:00
twinaphex
792b27288a (Android) (Location) Function signatures for functions that return
double were wrong - should be D instead of J
2013-12-20 00:42:42 +01:00
twinaphex
da6e360e49 (Location) Implement horizontal and vertical accuracy - Android's
location API only provides horizontal API but iOS/OSX API supports
both horizontal and vertical. Maybe consider implementing vertical
accuracy for Android by hand later
2013-12-19 17:36:27 +01:00
twinaphex
f0aa0f99fd (Location) Reimplement some parts of the location interface - get_latitude
and get_longitude are gone now in place of get_position. Basically,
from C land we basically do a poll-style queries, but on the
implementation side (ie. Android/iOS/OSX) - they all use callback-based
location updates. So we simply check in the poll function (get_position)
whether position has changed, and if so, update the pointer values and
return true - if not, set them to 0 and return false.
2013-12-19 15:47:47 +01:00
twinaphex
581aab1e3e (Android) Small typo fix 2013-12-19 05:24:12 +01:00
Twinaphex
1659adbfe9 Merge pull request #428 from lioncash/master
[Android] Implement core autodetect.
2013-12-18 17:04:12 -08:00
Lioncash
54d0911868 [Android] Implement core autodetect. 2013-12-18 20:00:20 -05:00
twinaphex
fa6459976f (Android) Build fix 2013-12-19 01:01:31 +01:00
twinaphex
250a6d757e (Android) location API - onLocationSetInterval 2013-12-19 00:56:47 +01:00
AridRayne
721fbeda7e Added an iCade profile for the Moga Hero Power controller, it might work
with other Moga controllers that have a HID mode.
2013-12-16 08:41:41 -08:00
Lioncash
f162088238 Simplify context retrieving in GPLWaiverDialogFragment, Application context is not necessary in this case. 2013-12-15 11:36:19 -05:00
Lioncash
4b86d80408 Move RetroActivity based classes into their own package. Keeps them localized. 2013-12-15 11:35:28 -05:00
Lioncash
b2be996e67 Fix crashing in the core manager for devices on Android 2.3.x
Also remove a now non-existent activity reference from the AndroidManifest.
2013-12-15 10:37:50 -05:00
twinaphex
c038f7be8f (Android Phoenix) RetroActivityCommon - Implement getAndroidOSVersion 2013-12-15 14:18:11 +01:00
twinaphex
104ae00915 (Android Phoenix) Split up camera code into RetroActivityCommon 2013-12-15 14:04:43 +01:00
twinaphex
4491140e03 (Android Phoenix) Split up Location functionaltity into RetroActivityLocation 2013-12-15 06:44:45 +01:00
twinaphex
a643b2954f (Android Phoenix) Camera Java functions - some small cleanups 2013-12-15 06:23:13 +01:00
twinaphex
99dc8f9712 (Android) Try to properly stop/free/start/reinit camera based on
onResume/onPause/onStop/onDestroy. Doesn't seem to work yet and camera-based
core still crashes when unfocusing app. Might need to do calls back to JNI
shim functions to deinit some stuff or vice versa
2013-12-15 06:19:51 +01:00
twinaphex
66576b12e8 (Android) Initial stub location API/GPS support. Requires Google Play Services so
baking that in as a dependency now by providing the .jar file.

Still need to write stub driver in C that calls these location functions through
JNI - and still need to gather all semantics for libretro API additions
2013-12-15 05:48:28 +01:00
twinaphex
b86a2c92e6 (Android) Make common RetroActivityCommon that both RetroActivityFuture and
RetroActivityPast extend from
2013-12-15 01:33:47 +01:00
twinaphex
f5edd42535 (Android Phoenix) Add 'permissions' to ModuleWrapper etc. 2013-12-14 21:51:21 +01:00
twinaphex
3baa2e5ee2 (Android) Add permission.ACCESS_FINE_LOCATION - privacy options/settings to follow 2013-12-14 19:25:58 +01:00
Lioncash
61eaf262d8 [Android] Add the export tag to RetroArchPast/Future in the manifest. Allows passing external Intents. 2013-12-09 21:33:43 -05:00
Lioncash
6bdaadb82e Clean up RetroActivityFuture a little. Remove a pointless if statement check (the only Android versions this launches on are the ones that satisfy this condition).
Also misc other cleanup.
2013-12-09 02:29:56 -05:00
Lioncash
f57210cb41 Fix duplicate string declarations in strings.xml. 2013-12-09 02:23:57 -05:00
twinaphex
6615f57971 (Android) Ignore FEATURE.LOW_AUDIO_LATENCY - devices like Nvidia Shield set it
to false while having frames per buffer values that are seen as ideal
- so setting it to true will always use those values now.
2013-12-06 21:17:19 +01:00
twinaphex
98ca741ca0 (Android) Should be backwards compatible with Android 2.3.x again -
2.3.x now uses RetroActivityPast
2013-11-29 01:35:56 +01:00
twinaphex
03ca0d89b2 (Android) Replace logo 2013-11-29 00:25:43 +01:00
twinaphex
fc11d4501d (Apple/Android) Rename more 'game'/'emulator' strings 2013-11-26 23:15:05 +01:00
twinaphex
d8b5ac7a83 Reword README.md and rewrite 'game' strings 2013-11-26 23:09:12 +01:00
twinaphex
a8f51e4477 (Android) Implement 'Quit' button functionality - will still need to build
in working code for 'Back behavior = menu button'
2013-11-26 16:30:29 +01:00
twinaphex
a7b34ec794 (Android) Implement all back behaviors 2013-11-26 13:41:33 +01:00
Lioncash
3579319573 [Android] Make a field a local variable in DisplayRefreshRateTest. It's not used elsewhere, so this is safe. 2013-11-25 09:57:06 -05:00
Lioncash
95539090ec [Android] Make CoreSelection and HistorySelection statically instantiable.
Allows showing the dialogs without the need for an actual variable or ugly "new HistorySelection(fm, tag).show();" syntax.

Also moved the else if for "Quit Retroarch" to the bottom of the if statements so its structured relative to the UI.
2013-11-25 09:55:46 -05:00
twinaphex
6c638f91f4 (Android) Big changes -
- both MainMenuActivity and RetroActivity are single instances now
- AKEYCODE_BACK gets eaten and onBackPressed in Java is triggered
- onBackPressed right now calls an instance of MainMenuActivity
(reuses the existing activity on the stack)
- User can switch back and forth between RetroActivity and MainMenuActivity
with AKEYCODE_BACK / Back button
- When a subsequent intent is launched after RetroActivity has already been
started up once, the pending intent gets passed to the existing RetroActivity
throug onNewIntent - in C land it will look every frame if an intent is pending - if it is, it will look up certain variables through JNI to launch a new game - or whatever it is that the intent wants to do
- With this we can now switch seamlessly between Android UI and RetroArch
itself.
2013-11-24 22:02:57 +01:00
twinaphex
1d06b07a16 (Android) Add "USED" intent extra to RetroActivity 2013-11-24 17:58:23 +01:00
twinaphex
0b7268dfac (Android) Phoenix - get rid of warnings 2013-11-22 23:15:38 +01:00
Squarepusher
3f47951d3d (Apple) Build fix 2013-11-22 01:10:35 +01:00
twinaphex
7f0aafbcba (Android) Camera update - update onCameraPoll Java function -
remove ret variable - remove FIXME in C camera driver for Android
2013-11-21 15:37:28 +01:00
twinaphex
4df7eabd79 (Android) Camera- take out excessive logging spam 2013-11-21 00:28:49 +01:00
twinaphex
c3eb6b1791 (Android) Camera goddamn works - yay 2013-11-21 00:00:37 +01:00
twinaphex
05b70bab87 (Android) Camera - add logs 2013-11-20 23:57:35 +01:00
twinaphex
1cbe95858d (Android) Add some missing functionality to camera texture handling 2013-11-20 23:49:06 +01:00
twinaphex
8b8c28ae86 (Android) RetroActivity - Add overridden stub onBackPressed - call
works without warning
2013-11-20 19:08:54 +01:00
twinaphex
3f279a2d5c (Android) Get rid of JNI_OnLoad - unused and unneeded 2013-11-20 15:54:31 +01:00
Squarepusher
0674ab47b0 Merge pull request #394 from lioncash/master
[Android] Fix a tiny bug in MainMenuFragment.
2013-11-19 18:42:58 -08:00
Lioncash
527bb976b0 [Android] Fix a tiny bug in MainMenuFragment. Pass the cores directory if a direct core can't be found. 2013-11-19 21:29:40 -05:00
Squarepusher
7464ae6824 Merge pull request #393 from lioncash/master
[Android] Get rid of the RetroTVMode class.
2013-11-19 18:09:53 -08:00
Lioncash
8a66d5ceef [Android] Get rid of RetroTVMode. We don't need this anymore, since the wonky logic that it was used to work around before has been fixed. 2013-11-19 21:05:26 -05:00
ToadKing
b6af8b0e92 more camera changes, still no image 2013-11-19 15:13:29 -05:00
ToadKing
894b2870c0 more android camera work. no longer crashes, but still no image 2013-11-19 14:20:29 -05:00
ToadKing
82104bc7e2 reverse onLowMemory/onTrimMemory removal
we want to override the default behavior and do nothing instead
2013-11-19 11:03:46 -05:00
Lioncash
85a1a21c77 [Android] Clean up RetroActivity. 2013-11-19 10:41:58 -05:00
twinaphex
21bc30a44c (Android) Make RetroActivity invoke JNI_OnLoad - grab pointer to
RetroActivity class - try to use from camera/android.c
2013-11-19 14:30:45 +01:00
Lioncash
4562f865b8 [Android] Fix a logging message in GPLWaiverDialogFragment. Thanks to Alcaro for pointing it out. 2013-11-17 19:23:41 -05:00
Lioncash
e33c219b10 [Android] Separate the GPL waiver code into its own DialogFragment. 2013-11-17 18:52:41 -05:00
twinaphex
ef3040a78b (Android) Add CAMERA permission 2013-11-17 23:02:06 +01:00
ToadKing
b22842ede2 [Android] more additions to the camera activity 2013-11-17 16:45:52 -05:00
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 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
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
Lioncash
6273928755 [Android] Update the build instruction file for Android on where to place built cores. 2013-10-19 23:05:35 -04:00
Lioncash
e6917787ee [Android] Place the ListPreference for aspect ratio at the top of its PreferenceCategory. Makes it look cleaner in terms of how the preferences are laid out. 2013-10-17 02:05:08 -04:00
Lioncash
7c0f177090 [Android] Edit a string so it fits the preferences better. 2013-10-17 01:51:17 -04:00
Lioncash
c26a6f8015 [Android] Clarify the preference categories in the XML better. 2013-10-17 01:46:14 -04:00
Lioncash
783f493252 [Android] Remove a pointless throws for IOException in ModuleWrapper. There's no way an I/O exception can be thrown in this constructor. 2013-10-15 23:07:36 -04:00
Lioncash
d3c96cfaed [Android] Remove R.java and BuildConfig.java from the appcompat lib. These are generated files, so there's no need to keep them in the repo. They will be regenerated upon builds. 2013-10-15 11:31:36 -04:00
Lioncash
e622fc9f4d [Android] Remove the need for RefreshRateSetOS. This can be done with a preference listener within VideoPreferenceFragment. 2013-10-15 10:54:40 -04:00
Lioncash
b1a48dea51 [Android] Remove the need for IMEActivity. We can also do this within InputPreferenceFragment. 2013-10-15 10:40:15 -04:00
Lioncash
9121aea91e [Android] Eliminate the need for the ReportIME activity. We can just add a listener for the preference within InputPreferenceFragment. 2013-10-15 10:28:02 -04:00
Lioncash
34e447cd4d [Android] No need to get the base context in ShaderActivity.java for getting application info. Since ShaderActivity.java is (obviously) an Activity. It can act as it's own Context. 2013-10-15 03:12:15 -04:00
Themaister
773295cb28 Move jni stuff to NativeInterface.
Makes it more generic and extensible for the future.
2013-10-14 23:27:18 +02:00
Themaister
b5c733f692 Do config readback immediately after running.
Avoids potential issue where game is started right after exiting again.
2013-10-14 23:11:08 +02:00
Themaister
0d1c394325 Flush config to disk after device detection. 2013-10-14 22:45:06 +02:00
Squarepusher
9baba0fc8a Merge pull request #341 from libretro/apk-extract
Extract APK assets from native code
2013-10-14 12:21:44 -07:00
Themaister
960780277a Drop some now useless code. 2013-10-14 21:14:55 +02:00
Themaister
644d45106e Style nit. 2013-10-14 21:09:49 +02:00
Themaister
7df4500024 Use native side asset extraction. 2013-10-14 21:08:41 +02:00
Squarepusher
7df9f53d4f Merge pull request #340 from lioncash/master
[Android] Disable the preference "Automatically detect audio latency" if the Android device running RetroArch is less than Android 4.1.
2013-10-14 10:10:58 -07:00
Lioncash
1cb397dac7 [Android] Disable the preference "Automatically detect audio latency" if the Android device running RetroArch is less than Android 4.1. Auto detection won't work on those below it. 2013-10-14 11:57:53 -04:00
twinaphex
8b58c39cad (libretro_cores.cfg / Android) Change mupen64 name 2013-10-14 11:34:29 +02:00
twinaphex
2b7c2a7185 (Android Phoenix) Add mupen64 entry to libretro_cores.cfg 2013-10-14 11:22:20 +02:00
Squarepusher
c0d4f3275d Merge pull request #338 from lioncash/master
Move the settings menu over to one menu, while also being Fragment based.
2013-10-13 20:06:52 -07:00
Lioncash
fba46e5e2f [Android] Re-organize config loading so it's neater. 2013-10-13 22:52:14 -04:00
Lioncash
39280b5535 [Android] Remove implementation of OnPreferenceAttachedListener from PreferenceActivity. Not necessary. 2013-10-13 22:48:31 -04:00
Lioncash
aa36ba9fad [Android] Update the config file whenever a preference within SharedPreferences has been changed. 2013-10-13 22:06:54 -04:00
ToadKing
73bb9d23e0 add intent and icon for Ouya 2013-10-13 20:48:17 -04:00
Lioncash
8efd5e47c6 [Android] Add a basic Readme.md to the Android front-end project. 2013-10-11 19:28:35 -04:00
Lioncash
2f74173154 [Android] Add a doc on how to import the project into Eclipse. 2013-10-11 19:19:28 -04:00
Lioncash
6787c3b674 [Android] Remove an unused import. 2013-10-11 18:55:30 -04:00
Lioncash
2770b23e9f [Android] Add a handler for the global config CheckBoxPreference. 2013-10-11 18:48:12 -04:00
Lioncash
1105304df5 [Android] Also update the config if the settings activity gets paused. 2013-10-11 18:22:33 -04:00
Lioncash
8c7437f74f [Android] Save to the config file upon leaving the settings activity. 2013-10-11 18:18:59 -04:00
Lioncash
ce42fccdc7 [Android] Very large reworking of the preferences. It uses fragments to handle preferences, not to mention the entirety of the preferences has been moved into a viewpager/tab-nav combo.
This commit breaks per-core configs. Will be fixed very soon.
2013-10-11 17:41:22 -04:00
Lioncash
0977f6dc9f [Android] Fix variable accessibility within BackStackItem. These aren't used outside of the class, so they should be made private. 2013-10-11 12:04:34 -04:00
Lioncash
b69059629b [Android] Use accessors with FileWrapper.java. Maintains encapsulation. Also make FileWrapper.java implement Comparable, since it already implements compareTo. 2013-10-11 11:58:19 -04:00
Lioncash
4b3f15c904 [Android] Simplify how ListActivities set their adapters. Since they are ListActivities, there is an underlying method for setting the adapters (setListAdapter()), so now we can remove calls that get the ListView object, since we don't need to directly access them now. 2013-10-11 10:42:11 -04:00
Squarepusher
c23fc0546c Merge pull request #331 from lioncash/master
[Android] Minor changes
2013-10-10 08:25:55 -07:00
twinaphex
33de14a6ca Revert "(Android) Some preliminary changes for new libretro core naming convention - still not"
This reverts commit 1bcf1afc9e.

Conflicts:
	android/phoenix/src/org/retroarch/browser/CoreSelection.java
2013-10-10 16:49:27 +02:00
twinaphex
6f0018b16e Revert "(Android) Some preliminary changes for new libretro core naming convention - still not"
This reverts commit 1bcf1afc9e.

Conflicts:
	android/phoenix/src/org/retroarch/browser/CoreSelection.java
2013-10-10 16:47:44 +02:00
twinaphex
f35fc9e1f7 Revert "(Android) Changes for filename naming convention changes"
This reverts commit d9b909aadb.
2013-10-10 16:47:19 +02:00
Lioncash
e177f6f35a [Android] Add comments to prefs.xml to clarify which section starts where within the XML. 2013-10-10 10:31:03 -04:00
Lioncash
6b5f21479e [Android] No need to call flush() before closing a stream. close() calls the flush method before actually closing the stream. 2013-10-10 10:12:09 -04:00
Lioncash
05f6226544 [Android] Made it unnecessary for HistorySelection.java, CoreSelection.java, and DirectoryActivity.java to implement an AdapterView. Since these now extend ListActivity, they can just override the method onListItemClick(). 2013-10-10 02:39:01 -04:00
Lioncash
5df0f7e2d1 [Android] Made DirectoryActivity extend a ListActivity, since that's basically what its purpose is - to act as a list view. 2013-10-10 02:27:58 -04:00
twinaphex
d9b909aadb (Android) Changes for filename naming convention changes 2013-10-10 04:25:32 +02:00
twinaphex
1bcf1afc9e (Android) Some preliminary changes for new libretro core naming convention - still not
working here
2013-10-10 03:41:53 +02:00
Lioncash
99de59d71e [Android] Missed a string key within updateConfigFile in UserPreferences.java. Fixed that. 2013-10-09 00:48:55 -04:00
Lioncash
e71bce0cbd [Android] Simplify LayoutInflater retrieval for KeyBindPreference.java and SeekbarPreference.java.
Simplify application info retrieval in OverlayActivity.java.
2013-10-09 00:26:07 -04:00
Lioncash
16127e046c [Android] Join declaration and assignment of a ConfigFile object in CoreSelection.java. Also made two variables final. 2013-10-08 23:54:52 -04:00
Lioncash
a16be6af65 [Android] Remove a redundant context variable in ReportIME.java. 2013-10-08 23:52:10 -04:00
Lioncash
2464e30ca5 [Android] Bump the application manifest targetSDKVersion tag from 17 to 18, since 4.3 is the latest API level. 2013-10-08 23:45:11 -04:00
Lioncash
84ee7658c2 [Android] Simplify another conversion of a double to a String within DisplayRefreshRateTest.java. Removed an unused import from RefreshRateSetOS.java. 2013-10-08 23:39:10 -04:00
Lioncash
73f97281fe [Android] Simplify WindowManager retrieval within RefreshRateSetOS.java. Also simplified the conversion of a double to a String.
No need to first turn the double into the object Double. Double has a toString() method for this.
2013-10-08 23:33:00 -04:00
Lioncash
ac2c9840ff [Android] Simplify LayoutInflater retrieval within IconAdapter.java. Also removed abstract from the methods within the interface IconAdapterItem. Methods within an interface are implicitly abstract.
Joined the declaration and assignment of an Intent within HistorySelection.java.
2013-10-08 23:30:15 -04:00
Lioncash
8fb23d0fcc [Android] Very minor clean-up in MainMenuActivity.java and CoreSelection.java. 2013-10-08 23:11:46 -04:00
Lioncash
c7ff040bf3 [Android] Get rid of getPreferences from MainMenuActivity.java. No longer needed. Now located within UserPreferences.java. 2013-10-08 23:05:54 -04:00
Lioncash
8112c1e36f [Android] Move readCPUInfo into UserPreferences.java. Also, a little bit of documentation in UserPreferences.java. 2013-10-08 22:55:07 -04:00
Lioncash
da6b6f4f50 [Android] Remove some functions I missed when cleaning up MainMenuActivity.java. These are moved into UserPreferences. They aren't needed in here any more. 2013-10-08 22:22:40 -04:00
Lioncash
ed649b44ab [Android] Initial implementation of new UserPreferences. Unifies preference loading and saving into one central class and moves it out of the MainMenuActivity.java. 2013-10-08 22:11:29 -04:00
Lioncash
010e691993 [Android most of new UserPreferences class finish. Not implemented however. 2013-10-08 20:52:44 -04:00
Lioncash
348cdb32b6 Fix a typo in the class name checking in function startActivity in MainMenuActivity.java. 2013-10-08 19:53:26 -04:00
Lioncash
1cc576b20f [Android] Clean up the manifest a little. 2013-10-08 19:51:37 -04:00
Lioncash
547219c244 [Android] Put the directory activities into a separate package to keep them separate from the rest of the files. Do the same for preference classes as well. 2013-10-08 19:50:23 -04:00
Lioncash
f1b6f95c40 [Android] Get rid of a typecast om ConfigFile.java. 2013-10-08 19:25:40 -04:00
Lioncash
0d869aa768 [Android] Simplify conditional statement within DirectoryActivity.java. This is already checked through the allowFile variable. So if that is true, then it's sensible to assume this is true as well. 2013-09-27 09:38:19 -04:00
Lioncash
4718bc63af Catch a more specific exception in HistoryWrapper.java. The only possible exception that can be thrown here is IndexOutOfBoundsException. 2013-09-27 09:02:22 -04:00
Lioncash
1f6161b45e Missed one string in DisplayRefreshRateTest.java. Now everything that matters should be within strings.xml now. 2013-09-27 02:30:38 -04:00
Lioncash
9310e1face RetroArch now fully capable of multi-language support. 2013-09-27 02:24:46 -04:00
Lioncash
a33863f0f2 Initial basic multi-language support. 2013-09-27 00:58:05 -04:00
Lioncash
a04e2ff11a Use a precomposed ellipsis for the asset extraction string in strings.xml 2013-09-27 00:24:53 -04:00
Lioncash
68b252da75 Remove non-existant activities from the manifest. 2013-09-27 00:16:16 -04:00
Lioncash
be32d28dcd Generic cleanup and simplifications.
Just some really generic things that simplify existing code among other things.
2013-09-27 00:13:37 -04:00
Lioncash
14c3892208 Make classes which are not extended final. This gives a clear indication of such. 2013-09-27 00:00:51 -04:00
twinaphex
387701b55e (Android) Bump up version code - add more descriptions for cores 2013-09-23 03:54:28 +02:00
Themaister
8489440d7e Use Integer.parseInt. 2013-09-14 15:46:19 +02:00
twinaphex
ac9e0025e2 (Android Phoenix) Add 96ms audio latency option as well 2013-09-14 15:03:20 +02:00
twinaphex
0245f926d1 (Android Phoenix) Set configurable audio latency 2013-09-13 15:57:13 +02:00
twinaphex
e6f527e992 (Android Phoenix) Add ability to set automatic audio latency option on/off 2013-09-13 15:17:57 +02:00
twinaphex
847f7f8d05 (Android Phoenix) Set video_threaded to false and set refresh rate of 59.19Hz for Xperia
Play
2013-09-12 20:02:36 +02:00
twinaphex
0d873654cc (Android Phoenix) Add Xperia Play detection based on MODEL string 2013-09-11 14:07:54 +02:00
twinaphex
0b45fb1483 (Android Phoenix) Set default values for ListPreferences 2013-09-11 11:00:43 +02:00