Commit Graph

214 Commits

Author SHA1 Message Date
Mahmood(Thunder07)
5ec1b26dbe Android: fixed setting/main theme mismatch & removed setting only theme 2015-08-10 12:22:22 +01:00
Mahmood(Thunder07)
7aec8c08a6 Android: No need to highlight selected items 2015-08-10 12:22:21 +01:00
Mahmood(Thunder07)
9318137ea4 Android: restore dimens.xml
this is not part of appcompat library, it should stay here.
2015-08-08 23:32:15 -04:00
TwistedUmbrella
ec71c13646 Android TV specialized layout template
This is being added as an outline to prevent an entire mirrored
secondary activity from being created to load a different layout.
2015-08-08 16:48:35 -04:00
TwistedUmbrella
710f700432 Remove an unnecessary frame from hierarchy 2015-08-08 13:04:31 -04:00
TwistedUmbrella
64102dbfa7 New views should be attached below the previous 2015-08-08 11:23:42 -04:00
TwistedUmbrella
8055007651 Eliminate an unnecessary view conversion
This was only really a table because the view was shared for both
methods. Now that the other method is a grid, this is excess work.
2015-08-08 11:19:45 -04:00
TwistedUmbrella
02eea1e30f Clean up redundant string values and fix syntax
As per the documentation, these are the accessibility labels for the
drawer states. The current wording would cause confusion.
2015-08-08 09:57:46 -04:00
Jean-Philip Desjardins
4c1a3b3386 Fixed appcompat dependency path. 2015-08-07 00:58:43 -04:00
TwistedUmbrella
24b11375e3 Fix for controller navigation, Remove double close
The drawer is already closed by the selectBottomItem method, so there
is no reason to close it and then attempt to close it again.

The view type, whether GridView or TableLayout will not dynamically
alter the flow of focus from top to bottom. Starting at the top menu,
the next item down would be the main view according the internal
navigation. Instead, we want the next item to be the lower menu.

https://developer.android.com/training/keyboard-input/navigation.html
2015-08-06 16:19:54 -04:00
TwistedUmbrella
633a32800f Reference appcompat in dependancies
The version previously referenced had remnants in the local src, so
both the reference and external library require an update.
2015-08-06 06:23:51 -04:00
TwistedUmbrella
3ccfc68a43 Backend for recent and homebrew list parameters 2015-08-06 06:23:51 -04:00
TwistedUmbrella
3aa4c15cdb Remove appcompat to reinitialize as submodule 2015-08-06 06:23:51 -04:00
TwistedUmbrella
fc2dc7185a Convert partial library into actual library project
This does away with the half in / half out library structure in favor
of a working external library structure.
2015-08-06 06:23:50 -04:00
TwistedUmbrella
eea9acdfb6 Convert game grid to GridView with scroll support
Remove the newly unnecessary column counter

Pass scrolling back to GridView to avoid custom

Add back the top margin to GridView

Fix padding adjustments to point to current views
2015-08-06 06:23:48 -04:00
Mahmood(Thunder07)
d696234687 Android: remove gradient_grid resource (redundant) 2015-08-05 06:45:26 +01:00
Mahmood(Thunder07)
a6b2290e27 Merge branch 'master' of https://github.com/jpd002/Play- into nav3
Conflicts:
	Source/ui_android/java/com/virtualapplications/play/MainActivity.java
	build_android/res/drawable/gradient_grid.9.png
2015-08-05 06:38:22 +01:00
jpd002
7104436348 Merge pull request #275 from AbandonedCart/coverflow
Graphic updates - 9patch to resource / cover retrieval
2015-08-05 01:05:10 -04:00
Jean-Philip Desjardins
52108623c7 Updated Android version code. 2015-08-02 19:48:08 -04:00
Mahmood(Thunder07)
1d57c4f0c2 Android Fix:Set default theme to blue 2015-08-03 00:20:43 +01:00
Mahmood(Thunder07)
2493f9c752 Android:navbar translucency, gradient bg on runtime, correct padding with navbar (bottom/right) 2015-08-03 00:09:20 +01:00
TwistedUmbrella
0c5e73f0f4 Transition from 9patch to resource for flexibility
This would also allow for themes to alter the entire background
2015-08-02 12:26:35 -04:00
Mahmood(Thunder07)
d6a6af9c65 Android:tweaked settings ActionBar rext colour 2015-08-02 13:11:57 +01:00
Mahmood(Thunder07)
866fb0f0c3 Android:changed background to match actionbar (Thanks to LinkofHyrule89) 2015-08-02 12:51:30 +01:00
Mahmood(Thunder07)
85679e1bc7 Android: Update nav drawer, add appcompat 2015-08-02 12:51:01 +01:00
TwistedUmbrella
f647d60592 More database entries, Recently registered IDs
Some games have been added to the upstream database to give them a Game
ID that can be used in this emulator.
2015-07-31 14:19:51 -04:00
TwistedUmbrella
a49f6d7741 Support launching game from external intent 2015-07-31 04:04:54 -04:00
jpd002
b685dfbab4 Merge pull request #267 from Thunder07/database
Android:Updated DB with the initial set of TheGamesDB IDs
2015-07-30 23:58:48 -04:00
Jean-Philip Desjardins
8c2dab646c Fixed provider class name in AndroidManifest. 2015-07-30 23:57:38 -04:00
Mahmood(Thunder07)
574e4f399b Android:Updated DB with the initial set of TheGamesDB IDs 2015-07-30 17:13:20 +01:00
TwistedUmbrella
fa475e8b9f Support a custom image for disks without serial
This will be assigned via the filename, which will be linked to the
Disk field of the image database.
2015-07-28 05:45:14 -04:00
Jean-Philip Desjardins
86bc6b9e06 Fixed merge mixup. 2015-07-27 01:31:44 -04:00
Jean-Philip Desjardins
48ce3dd5f4 Updated Android version code. 2015-07-27 00:58:29 -04:00
TwistedUmbrella
bf42f1a6d7 Add missing database provider (lost in merge)
Not sure where this was dropped, but it is necessary to establish
authorities for accessing the database.
2015-07-27 00:44:18 -04:00
TwistedUmbrella
79bad2b2af Expand database, Improve regional serial search 2015-07-26 22:51:09 -04:00
TwistedUmbrella
eb828ce455 Support DB upgrade, Image table, Fuzzy serial
DB upgrade can now be performed through the standard upgrade method
automatically.
An image table has been added to support future customization of covers
through a cross-matched table by serial, or filename. Game ID was not
used, as this is a matched value not obtained from the physical image.
Serial numbers are now matched by the literal value, then by the
possible regional versions.
2015-07-26 22:51:08 -04:00
TwistedUmbrella
416417fcbd Avoid unnecessary loops, Check for empty string
It is possible that the database value will return an empty string
rather than a null value. This is simply precaution.

Conflicts:
	build_android/AndroidManifest.xml
2015-07-26 22:51:07 -04:00
TwistedUmbrella
5ba55fb89b Organize classes, Database support, Remove dupes
Conflicts:
Source/ui_android/java/com/virtualapplications/play/MainActivity.java
Source/ui_android/java/com/virtualapplications/play/SetupDB.java
Source/ui_android/java/com/virtualapplications/play/TheGameDB.java
Source/ui_android/java/com/virtualapplications/play/getGameDetails.java

Load internal database, Fill from internet APIs

If a cover image and description are not in the database, attempt to
retrieve them from the API by ID. If an ID is not present, generate
temporary values based on search. These values are saved according to
the API ID, but not associated with the file name in storage. This
allows these entries to be applied to a game retrieved by ID at a later
time.

Combine long click calls into generic function

Fix long click function to return a value

Now that this is only the listener, it is no longer self-contained

Add a settings option to clear the cover cache

Log serial in relation to filename for reference

This may prove useful to obtain missing serial numbers.

Verify the existence of an image before loading

An image entry has been added to avoid the StackOverflow generated by
simply looping through the possible suffix values. The database has
been configured to pick up these image entries during the course of
regular checks.
Most images are -1, but a few have been found with alternate endings,
depending on revisions.

External database versioning for assets file

Using database version would cause the database to be rebuilt
internally, which would not copy the assets file.
The last modified time only applies to the written file and could not
be compared to the assets file, which would result in unnecessary
writes for every app update.
This method allow the value to be hard-coded in the app to reflect only
when the assets database is updated and avoid the restrictions of
runtime options.

Conflicts:
Source/ui_android/java/com/virtualapplications/play/getGameDetails.java

Conflicts:
Source/ui_android/java/com/virtualapplications/play/TheGamesDB.java
build_android/assets/games.db

Conflicts:
	Source/ui_android/java/com/virtualapplications/play/TheGamesDB.java
	build_android/assets/games.db

Reconnect getSerial call after rebase
2015-07-26 22:51:07 -04:00
Jean-Philip Desjardins
d17fc15b19 Updated Android version code. 2015-07-26 22:14:57 -04:00
jpd002
8ead906d2e Merge pull request #254 from Thunder07/WIP
List filtering, Cover Saving, Serial ID identification, On Demand Description
2015-07-24 02:30:22 -04:00
Jean-Philip Desjardins
136d6ed6ba Merge branch 'diskid' 2015-07-23 23:45:05 -04:00
Jean-Philip Desjardins
9a62101f12 Fixed Android build. 2015-07-23 22:48:01 -04:00
TwistedUmbrella
ca7f48dfe3 Cross-check possible ROMs for serial numbers
This will shorten the list of available games to just those that both
fit the extension requirements and have a serial number. While it may
not cover every game, there is an extremely high probability at least
one game in a folder has a serial. This assumes all games are obtained
legally.

Conflicts:
	Source/ui_android/java/com/virtualapplications/play/GameInfo.java
2015-07-24 01:25:22 +01:00
Mahmood(Thunder07)
8a5ed042d3 List filtering, Cover Saving, Serial ID identification, On Demand Description 2015-07-23 23:31:23 +01:00
Jean-Philip Desjardins
de53905d9a Fixed script not calling proper target. 2015-07-21 03:06:41 -04:00
Jean-Philip Desjardins
7d190bb39a Updated Android build scripts. 2015-07-21 01:19:52 -04:00
Jean-Philip Desjardins
ab384dbb62 Removed some of the external dependencies definitions for Android build. 2015-07-21 00:11:15 -04:00
Jean-Philip Desjardins
90b39010b0 Updated Android version code. 2015-07-19 22:33:16 -04:00
TwistedUmbrella
35f0ee8489 Enclose textview to avoid over-stretching parent 2015-07-19 04:38:19 -04:00
TwistedUmbrella
8656dcb4af Lock orientation during file selection, Menu cleanup 2015-07-19 01:05:16 -04:00
TwistedUmbrella
db3e7c7ad8 Add a check for TV, Update menu graphics / layout 2015-07-19 01:05:12 -04:00
TwistedUmbrella
30726149f1 Convert to tables for flexibility, Add drawer shell
Fix display proportions with unified file searches

Adjust table alignment and clean up navigation

Set columns to minimum supported screen size
2015-07-19 01:05:12 -04:00
TwistedUmbrella
cbd1978777 Generate grid by landscape items displayed
Due to the limitation of grid dimensions being defined before the grid
is populated, the grid is designed for maximum visibility using
landscape. Adjusting the grid would reload the data, which would result
in unnecessary GamesDB API calls.

Refresh views appropriately, Improve grid layout

Support displaying a file name if no details exist
2015-07-19 01:05:12 -04:00
TwistedUmbrella
5de10406e4 Retrieve front cover, optimize ImageView layout 2015-07-19 01:05:12 -04:00
TwistedUmbrella
396d7aebbb Android: basic support for boxart and game info
Requires a stable internet connection and may not display full-size
images. This is only meant to demonstrate the concept.

Conflicts:
	build_android/AndroidManifest.xml
2015-07-19 01:05:12 -04:00
TwistedUmbrella
0b0b198501 Android: backend support for a file locator
Automatically lists all files that fit the extension and sets the root
game folder when one of the items is selected.

Clicking the Reset Folder preference will remove the stored base folder
and return to the complete list.

TODO: Add a method to refresh the list when clearing the preference or
returning from the emulator.

Conflicts:
	Source/ui_android/java/com/virtualapplications/play/MainActivity.java
2015-07-19 01:05:11 -04:00
Jean-Philip Desjardins
8739fd7a9f Updated Android build scripts. 2015-07-14 01:23:49 -04:00
TwistedUmbrella
be287c4102 Support an NDK_DEBUG flag in build
This can be configured using 1 of 2 methods:

Add the value to the local.properties file
ndk.debug=0 or ndk.debug=1

Exporting the environment variable from commandline or by adding it to
the global environment variables
export NDK_DEBUG=0 or export NDK_DEBUG=0
2015-07-13 23:24:48 -04:00
TwistedUmbrella
fbfc5a2f57 Android: automatically build NDK components 2015-07-13 23:23:49 -04:00
Jean-Philip Desjardins
42d08cb99a Updated Android version code. 2015-07-12 22:34:42 -04:00
Jean-Philip Desjardins
9c0f560d70 Added x86 build for Android. 2015-07-12 21:32:48 -04:00
TwistedUmbrella
0111db1a32 Android: rounded logo for use in title bars 2015-07-12 00:34:06 -04:00
TwistedUmbrella
c0beecd737 Android: replace TV placeholder banner 2015-07-12 00:33:59 -04:00
TwistedUmbrella
1f2f0b489f Android: add options for exiting the application 2015-07-12 00:33:51 -04:00
TwistedUmbrella
9fe8b8efea AndroidManifest: fix a whitespace discrepency 2015-07-12 00:33:31 -04:00
TwistedUmbrella
cb7c084b48 Android: Support Android TV installation 2015-07-12 00:33:27 -04:00
TwistedUmbrella
57f4dba732 Android: set emulator window to sensor landscape 2015-07-12 00:33:21 -04:00
Jean-Philip Desjardins
a506425e7d Added option to show/hide virtual pad on Android. 2015-07-09 00:08:42 -04:00
Jean-Philip Desjardins
4141a5b2de Use PreferenceActivity on Android for preference edition. 2015-07-08 23:15:06 -04:00
Jean-Philip Desjardins
b70b9f2048 Renamed VirtualPadConstants to InputManagerConstants on Android. 2015-07-06 00:53:45 -04:00
Jean-Philip Desjardins
30df8672e8 Updated Android version code. 2015-07-05 22:06:07 -04:00
Jean-Philip Desjardins
5dc176c773 Added missing L1/L2/R1/R2 buttons on virtual pad. 2015-07-02 01:48:13 -04:00
Jean-Philip Desjardins
f9446484fc Added analog stick graphic and adjusted size a bit. 2015-07-01 02:44:47 -04:00
Jean-Philip Desjardins
33890e15e7 Added basic analog stick on Android's virtual pad. 2015-06-30 05:26:01 -04:00
Jean-Philip Desjardins
5a3bcac057 Updated Android version code. 2015-06-28 20:18:23 -04:00
Jean-Philip Desjardins
b1ddd55c49 Updated Android version code. 2015-06-20 23:43:49 -04:00
Jean-Philip Desjardins
2467e35b9e Import cpufeatures library needed by CodeGen. 2015-06-20 23:04:31 -04:00
Jean-Philip Desjardins
23ec153dea Compile for Cortex-A7 on Android. 2015-06-20 23:03:39 -04:00
Jean-Philip Desjardins
cd66060356 Updated Android version name. 2015-06-14 23:09:37 -04:00
Sean Maas
c4089560e0 Android: Add a setting to enable or disable fps 2015-06-14 13:07:49 -04:00
Jean-Philip Desjardins
3f976e7e95 Added FPS and draw call counters on Android. 2015-06-13 00:59:34 -04:00
Jean-Philip Desjardins
81e3ce2820 Made EE executor work on Android. 2015-06-08 01:39:23 -04:00
Sean Maas
17ffad1590 Android: Add images for on-screen buttons 2015-06-02 14:20:43 -04:00
Jean-Philip Desjardins
1d078a718f Added a virtual pad on Android. 2015-05-16 23:07:24 -04:00
Jean-Philip Desjardins
c63467b688 Renamed id for better consistency. 2015-05-16 01:03:04 -04:00
Jean-Philip Desjardins
a8ac771cb3 Added basic about dialog on Android. 2015-05-11 00:53:35 -04:00
Jean-Philip Desjardins
03fadfff9a Merge branch 'master' into android 2015-05-09 23:26:10 -04:00
Jean-Philip Desjardins
0814c8cc16 Fixed Android build. 2015-05-09 23:26:01 -04:00
Jean-Philip Desjardins
8246d50a0c Fixed build. 2015-05-06 03:25:26 -04:00
Jean-Philip Desjardins
421295cd70 Merge branch 'master' into android. 2015-05-06 03:18:38 -04:00
Jean-Philip Desjardins
a7430543fe Fixed Android build. 2015-05-06 03:17:28 -04:00
Jean-Philip Desjardins
2687e41a09 Added very basic input support on Android. 2015-05-06 02:00:14 -04:00
Jean-Philip Desjardins
6ad1c129ec Set target sdk version to 22 on Android. 2015-04-26 22:31:18 -04:00
Jean-Philip Desjardins
665da1fe96 Fixed Android build. 2015-04-26 01:30:33 -04:00
Jean-Philip Desjardins
362e8b98eb Fixed Android build. 2015-04-14 23:00:33 -04:00
Jean-Philip Desjardins
aa5cdb77f9 Improved Android UI by adding a proper file explorer. 2015-04-11 23:07:40 -04:00
Jean-Philip Desjardins
dfeb59672c Update Android project before cleaning. 2015-04-11 00:40:56 -04:00
Jean-Philip Desjardins
09e61b0543 Make IszImageStream compile on Android. 2015-04-09 02:17:42 -04:00
Jean-Philip Desjardins
d0f3345903 Added some icons. 2015-04-08 03:06:14 -04:00
Jean-Philip Desjardins
8f028c9848 Improved Android UI a bit by making a separate activity for when the emulator is running and by pausing emulation when activity is not visible. 2015-04-05 23:29:49 -04:00
Jean-Philip Desjardins
5f8d1ccf65 Added replaced boring "Start Tests" button with a file selector and removed hard coded file path. 2015-03-19 23:54:47 -04:00
Jean-Philip Desjardins
f778d1cd78 Fixed release Android build. 2015-03-17 22:38:27 -04:00
Jean-Philip Desjardins
a51cdb0616 Added GLES compatibility mode in OpenGL GS handler. 2015-03-14 01:33:48 -04:00
Jean-Philip Desjardins
3798154d9e Now use boost library from dependencies project on Android. 2015-03-14 01:21:37 -04:00
Jean-Philip Desjardins
fca3f51aa0 WIP Android GS handler. 2015-03-09 23:35:45 -04:00
Jean-Philip Desjardins
2f3b7fd420 Android build updates. 2015-03-09 23:19:20 -04:00
jpd002
55725284cf Moved Android java code.
git-svn-id: http://svn.purei.org/purei/trunk@1736 b36208d7-6611-0410-8bec-b1987f11c4a2
2015-03-08 22:41:07 -04:00
jpd002
c9a306e81d More Android WIP.
git-svn-id: http://svn.purei.org/purei/trunk@1603 b36208d7-6611-0410-8bec-b1987f11c4a2
2014-12-31 23:21:57 -05:00
jpd002
672e709ced Android WIP.
git-svn-id: http://svn.purei.org/purei/trunk@1602 b36208d7-6611-0410-8bec-b1987f11c4a2
2014-12-31 23:21:56 -05:00
jpd002
25c76b5aeb Android WIP.
git-svn-id: http://svn.purei.org/purei/trunk@1601 b36208d7-6611-0410-8bec-b1987f11c4a2
2014-12-31 23:21:54 -05:00
jpd002
86af245464 Android build fixes.
git-svn-id: http://svn.purei.org/purei/trunk@1600 b36208d7-6611-0410-8bec-b1987f11c4a2
2014-11-27 03:48:58 -05:00
jpd002
6a680df4a7 Updated Android build configuration.
git-svn-id: http://svn.purei.org/purei/trunk@1532 b36208d7-6611-0410-8bec-b1987f11c4a2
2014-11-27 03:48:52 -05:00
jpd002
183c6f5084 Updated Android build config.
git-svn-id: http://svn.purei.org/purei/trunk@1530 b36208d7-6611-0410-8bec-b1987f11c4a2
2014-11-27 03:48:49 -05:00
jpd002
dd77fb3221 Android WIP.
git-svn-id: http://svn.purei.org/purei/trunk@1528 b36208d7-6611-0410-8bec-b1987f11c4a2
2014-11-27 03:48:47 -05:00