Page 3 of 132

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 28 May 2014, 16:11
by drdev
Agetian wrote:Ok, testing it on my Samsung Galaxy tab 2 GT-P3100, it doesn't install. I followed the instructions and my tablet says "application not installed" when I try to install the apk, no reason is provided. My Android version is 4.2.2.

- Agetian
Sounds like the same issue friarsol is having. As mentioned in my last post, either Krazy or I will investigate this as soon as possible.

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 28 May 2014, 17:35
by Davor Vitief
I have the same "Application not installed" problem, im using Android 4.2.2.

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 28 May 2014, 18:21
by KrazyTheFox
I've found the problem!

The certificate is being seen as invalid on slightly older Android versions as the default signing algorithm changed with Java 7. It doesn't show up on the S4s since they use the newer algorithm. See: http://stackoverflow.com/a/10083280/3331135

I should have an update for the Android pom.xml that'll fix this shortly. You'll also need to re-create your keys with keytool to use the other algorithm:
Code: Select all
-sigalg MD5withRSA -keyalg RSA -keysize 1024

For example, my input:
Code: Select all
keytool -genkey -v -keystore <name>.keystore -alias <alias> -sigalg MD5withRSA -keyalg RSA -keysize 1024 -validity 10000

Edit: Change is committed, Dan just needs to build and publish a new version. I'd build it myself, but the app should generally be signed with the same key every time.

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 28 May 2014, 21:41
by jmartus
Is it supposed to take 3 hours to transfer over from desktop to phone?

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 28 May 2014, 23:30
by jmartus
Ok I tried I installed it and when I go to open it all I get is a back screen.

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 28 May 2014, 23:44
by drdev
jmartus wrote:Is it supposed to take 3 hours to transfer over from desktop to phone?
I'd recommend zipping all files you want to transfer then unzipping them once on the phone. That should be much faster.

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 29 May 2014, 00:03
by jmartus
why my screen black when I go to open forge?

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 29 May 2014, 00:31
by KrazyTheFox
jmartus wrote:why my screen black when I go to open forge?
It sounds like your "res/" folder isn't in the right place. It should go under "Forge/" in wherever your phone considers external storage.

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 29 May 2014, 00:47
by jmartus
ok thank you I just had to rename assets to rez now it works

Re: Forge Android App: 05-27-2014 Alpha 1.5.19.001

PostPosted: 29 May 2014, 02:13
by drdev
I just published and released 1.5.19.002 using the new signing algorithm. For those who were having issues installing the last build, please try this new build and let me know if it works for you. The link is below, and I also updated the first post.

http://cardforge.org/android/releases/forge/forge-gui-android/1.5.19.002/forge-android-signed-aligned.apk

Thanks for your patience.
-Dan

Re: Forge Android App: 05-28-2014 Alpha 1.5.19.002

PostPosted: 29 May 2014, 02:26
by friarsol
FYI, the link you provided has a period at the end, which redirects to the cardforge homepage. And the new apk installs for me. Thanks for the hard work Dan & Krazy.

Re: Forge Android App: 05-28-2014 Alpha 1.5.19.002

PostPosted: 29 May 2014, 03:11
by drdev
friarsol wrote:FYI, the link you provided has a period at the end, which redirects to the cardforge homepage. And the new apk installs for me. Thanks for the hard work Dan & Krazy.
Removed the period. Thanks.

Re: Forge Android App: 05-28-2014 Alpha 1.5.19.002

PostPosted: 29 May 2014, 03:18
by friarsol
One request I have that would help enormously, is to zip up the cardsfolder like we do with full releases. That way we're not extracting 13k files to an sdcard. All that is of course assuming a zipped cardsfolder can actually be loaded in by Forge on Android.

I seem to be stuck on a black screen and I see this in my sdcard/Forge/data/forge.log

(ThreadUtil first call): Running on a machine with 2 cpu core(s)
EDT > java.lang.NullPointerException
at forge.assets.FSkinTexture.load(FSkinTexture.java:51)
at forge.assets.FSkin.loadLight(FSkin.java:79)
at forge.screens.SplashScreen.<init>(SplashScreen.java:36)
at forge.Forge.create(Forge.java:74)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:334)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1505)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

Is the step below required? Since it sounds kind of optional "you can", and I have a feeling that by not doing it, it might be related to my error?

"If you're connected to a computer with Forge installed, you can copy over your card pics, decks, quest data, and preferences into the Forge folder. The following mappings apply (based on a Windows user with default AppData locations)
- C:\Users\<username>\AppData\Local\Forge\Cache\ > Forge\cache\
- C:\Users\<username>\AppData\Roaming\Forge\ > Forge\data\"

Re: Forge Android App: 05-28-2014 Alpha 1.5.19.002

PostPosted: 29 May 2014, 03:22
by KrazyTheFox
friarsol wrote:One request I have that would help enormously, is to zip up the cardsfolder like we do with full releases. That way we're not extracting 13k files to an sdcard. All that is of course assuming a zipped cardsfolder can actually be loaded in by Forge on Android.
It does work on Android. My current cards folder is zipped.

friarsol wrote:I seem to be stuck on a black screen
The stuff you listed below should still be optional. For whatever reason it's not locating your res/ folder (specifically, the skins portion).

Re: Forge Android App: 05-28-2014 Alpha 1.5.19.002

PostPosted: 29 May 2014, 03:23
by 5enza
First of all excellent job on the port - I've been having a lot of fun with it. Found a bug that I wanted to let you know about. The app is consistently crashing for me on the assign damage screen. Whether I tap Auto or manually assign damage to blockers the screen graphics corrupt and I am forced to close app. I uploaded a video to Youtube so you can see exactly what is happening if that is helpful - youtu.be/eEX4P19MDo0

My device specs:
Nexus 7 2013 4.4.2 stock rooted
Forge Android Alpha 1.5.19.001
HQ card images