Import Deck for Android...
-
- Posts: 619
- Joined: Tue Feb 08, 2011 3:00 pm
- Location: Philippines
- Contact:
Import Deck for Android...
I really don't know about java but I hope we can have an Import button for decks downloaded from deckstats...
Just playing around from SDLActivity.java and I hope I can understand it..
Just playing around from SDLActivity.java and I hope I can understand it..
Optimized Android Images - up to Aether Revolt
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
Re: Import Deck for Android...
I think the best way would be to declare that Wagic can be used to open a specific file format matching the one of deckstats, if I remember correctly this can be done easily in Android, but also on iOS or Windows.
Then, we need to add in Wagic that if the app was started to open a specific file, then it saves it into the user directory.
When we have all that, we could actually use Google Drive or Microsoft OneDrive Android apps to simply load a new deck into a Wagic Android app...
Then, we need to add in Wagic that if the app was started to open a specific file, then it saves it into the user directory.
When we have all that, we could actually use Google Drive or Microsoft OneDrive Android apps to simply load a new deck into a Wagic Android app...
Re: Import Deck for Android...
this is great and all but wagic currently cant even load external sd card images on android 4 or higher. baby steps?
-
- Posts: 619
- Joined: Tue Feb 08, 2011 3:00 pm
- Location: Philippines
- Contact:
Re: Import Deck for Android...
Can you try this if this works: https://mega.nz/#!9kRiWYpB!fHMdsLeOhCpl ... SOmp51_T6IZethfox wrote:this is great and all but wagic currently cant even load external sd card images on android 4 or higher. baby steps?
On my device (Android 5.0.2) it doesn't work but on my cousins phone with Android 4.2 it works...
edit: I think I've got it:
Optimized Android Images - up to Aether Revolt
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
Re: Import Deck for Android...
Didnt work for me.
-
- Posts: 619
- Joined: Tue Feb 08, 2011 3:00 pm
- Location: Philippines
- Contact:
Re: Import Deck for Android...
Here's my last attempt, please try:Zethfox wrote:Didnt work for me.
https://mega.nz/#!htAn0KYa!MZxncZjrcBMV ... A626bawFlI
I forced the path if the mountpoints are null and the android version is kitkat and above...
Optimized Android Images - up to Aether Revolt
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
Re: Import Deck for Android...
That was closer yes, it didnt work but atleast it mounted. Error not allowed to write to that card.
Did any of the info i posted on this bug help? It said used that function i pointed and aet the sd card as somearray [0] or something cause that will be the location we are allowed to save and read.
Did any of the info i posted on this bug help? It said used that function i pointed and aet the sd card as somearray [0] or something cause that will be the location we are allowed to save and read.
-
- Posts: 619
- Joined: Tue Feb 08, 2011 3:00 pm
- Location: Philippines
- Contact:
Re: Import Deck for Android...
Yeah, I read somewhere that As of Android 4.4 KitKat, applications can no longer write * to the "secondary storage" of a device. Write operations using the java.io.File API will thus fail. There is a workaround I think using Media Content Provider, but I don't know how to implement it. Anyway my device is using Android 5.0.2 and It's has a read and write access to SDCard since I'm using a Custom Firmware.Zethfox wrote:That was closer yes, it didnt work but atleast it mounted. Error not allowed to write to that card.
Did any of the info i posted on this bug help? It said used that function i pointed and aet the sd card as somearray [0] or something cause that will be the location we are allowed to save and read.
Anyway Just an Update
The bug above is the path points to the same location...
Optimized Android Images - up to Aether Revolt
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
-
- Posts: 619
- Joined: Tue Feb 08, 2011 3:00 pm
- Location: Philippines
- Contact:
Re: Import Deck for Android...
Update: I think I'm close... Using Droid4x as my emulator for Android
Optimized Android Images - up to Aether Revolt
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
-
- Posts: 619
- Joined: Tue Feb 08, 2011 3:00 pm
- Location: Philippines
- Contact:
Re: Import Deck for Android...
Another update: parsed the same file .dec or .txt success. just find a way to count existing deck and name it, then save
Optimized Android Images - up to Aether Revolt
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC
MTG Dynamic Theme
HIRES MTG THEME FOR LATEST WAGIC GIT
------------------------------------
<DOTP> MAGIC 2014 Custom DLC