959 Commits

Author SHA1 Message Date
twinaphex
868de7d4ef (Android) jni_params struct -remove class_obj 2013-11-20 18:09:50 +01:00
twinaphex
87421d477c Clean up JNI: (...)
* pthread_key_create is used to set a destructor for every thread
created through jni_thread_getenv
* To grab a JNIEnv pointer - go through jni_thread_getenv
* jni_thread_getenv sets pthread_setspecific for the JNIEnv pointer
to bind destructor
* Reuse activity->vm everywhere instead of creating local pointer
copies
* Don't use DetachCurrentThread outside of platform_android's (new)
jni_thread_destruct function - the destructor will do this for us
now
2013-11-20 17:33:19 +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
ToadKing
104dafe53f [Android] fill in camera stub functions - needs testing, probably doesn't work yet 2013-11-17 21:48:49 -05:00
Squarepusher
bc17af7ac2 Merge pull request #391 from lioncash/master
[Android] Fix a logging message in GPLWaiverDialogFragment.
2013-11-17 16:25:22 -08: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
twinaphex
56a2b03e21 (Android) Input - Don't call AInputQueue_hasEvents on first iteration - it can return 0 even if events are queued up - leading to congestion issues 2013-11-18 01:21:26 +01:00
Squarepusher
0c5f375d8c Merge pull request #390 from lioncash/master
[Android] Separate the GPL waiver code into its own DialogFragment.
2013-11-17 16:03:23 -08:00
Lioncash
e33c219b10 [Android] Separate the GPL waiver code into its own DialogFragment. 2013-11-17 18:52:41 -05:00
twinaphex
0c54da42e3 (Android JNI) jni_params - now also takes a submethod_name/submethod_signature 2013-11-18 00:52:26 +01:00
twinaphex
51891483c4 (Android) Stub android camera C driver - will interface with JNI
functions
2013-11-18 00:28:27 +01: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
twinaphex
de1bae69c9 (Android) Add skeleton camera driver 2013-11-17 19:47:37 +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
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