Looping Google Play Login Android

Hello,
I’ve got several problems with packaging and deployment of my projects for the Android Platform.
To make things clear I will post them in form of a short list:

  1. When I choose the ‘for Distribution’ option and don’t activate Google Play support → Immediate Crash
  2. When I choose the ‘for Distribution’ option and activate Google Play support → the Google Play Gizmo (The Google Play animating Logo that indicates You’re logging in) appears and disappears in an infinite loop, until the Application crashes.
  3. When I deselect the ‘for Distribution’ option (I then use Shipping) and deactivate the Google Play Support → the game starts on my phone (Android v4.2) but not on my tablet (Android v4.1) (It freezes on a black screen).
  4. When I deselect the ‘for Distribution’ option (I then use Shipping) and activate Google Play Support → the game starts on my phone (Android v4.2) but not on my tablet (Android v4.1) (It freezes on a black screen).

I’m using 4.7 vanilla (no hotfixes) downloaded with the launcher (not Github version). The funny thing is that The game worked just fine with version 4.6.
Now I’m blocked.

Thanks

-Keno

Hi Keno,

We’ve had several bug and crash fixes in the 4.7.1-4.7.4 update cycles, not to mention several Android specific issues. Can you update to 4.7.4 and see if you’re still seeing the same issue?

I’m updating the engine right now. I’ll test the game, and let you know the results in the next days.

Hi Keno,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thanks very much!

Hi,
I’ve spent some time messing with the new 4.7.4 version, but the problem is still there. The Google Gizmo still loops indefinitely! especially when I package with the ‘for Distribution’ setting active.
I need assistance here, since My application is almost complete, but I’m still unable to test the Distribution version.

Thanks,

-Keno

Hi Keno,

I have a suspicion that this is not specifically an editor problem. Are you able to deploy your project to a device disregarding the Google Play steps? Can you install your project to a device via launch on or batch file installation of the apk?

If you can, it’s not the package and is something involving the Google Play services side of things. Have you double checked the Google Dev documentation for the implementation of Sign-in on Android?

Thanks!

EDIT: also, if after the doc review you’re still having the problem, can you post your logcat as a text file to this thread?

Hello wittlief,

Packaging the application (with the content in the apk, and the content in a separate obb file) not for Distribution works just fine (Even with the Google Play Support Setting Active). problems arise when I choose to deploy with the ‘Distribution’ setting active: The Gizmo loops indefinitely and the game never starts.

I will post the Logcat text file before the end of next week.
I will also try to make a dummy game and try the Google Play Service Support on that.

Yeah, the fact that you can package ok with the editor indicates to me that it’s a problem with implementing the Google Play sign-in for your project. Here is a Stack Overflow thread where a user had a similar problem and the answer was to check the code for sign-in. The documentation I posted above should be of some use in that instance.

Feel free to try with one of the sample projects from the Learn tab rather than making your own sample project. I recommend Tappy Chicken as it is fast to package and easy to diagnose.

Thanks wittlief! Actually I managed to resolve the problem: The latest version of the Engine requires a Minimum Android SDK Version of 14 to work ! (At least this is what I understood…).I ported my project from 4.6 and back then the minimum version I set was 9.

Now my application starts even with the ‘for Distribution’ setting active!

There is still one problem left:
My application doesn’t start on my tablet. After a few tries and a lot of patience, I realized that the application is not crashing, but is DELAYING for very long time before starting. Here’s the relevant portion of the logcat:

04-11 12:46:44.420: E/jdwp(717): Failed sending reply to debugger: Broken pipe
04-11 12:46:47.570: E/MediaPlayer(717): stop called in state 1
04-11 12:46:47.570: E/MediaPlayer(717): error (-38, 0)
04-11 12:46:47.570: E/MediaPlayer(717): Error (-38,0)
04-11 12:46:49.480: E/ViewRootImpl(24538): Attempting to destroy the window while drawing!
04-11 12:46:49.480: E/ViewRootImpl(24538):   window=android.view.ViewRootImpl@41d0d1a8, title=
04-11 12:46:49.700: E/GamesNativeSDK(717): Received unexpected UI result.

ok, cool. What tablet are you deploying your project to? Do you mind attaching the entire logcat to this thread? Thanks!

Here is the Logcat.

link text

Hi Keno,

I’m not able to see anything definitive in your logs, however I did see this:

04-19 00:14:31.630:
I/WindowState(1942): WIN DEATH:
Window{419f33a0 u0
com.kte.Quadrax/com.epicgames.ue4.GameActivity}
04-19 00:14:32.540:
D/InputEventConsistencyVerifier(1942):
TouchEvent: ACTION_DOWN but pointers
are already down. Probably missing
ACTION_UP from previous gesture.

Perhaps is an issue with your BP/code?

Hello Wittlief.
I’ve tried to seek for a solution for my problem, but I couldn’t find anything.
I’ve deployed successfuly my application to another Android Device without any problems (No crashes, No delays on starting the application, ecc…). Thus, I believe it is a problem with My tablet which doesn’t support the version of the Unreal Engine i’m using (4.7). I think I will go ahead and publish the application anyway. In the meanwhile I will keep an eye on the new versions of the Engine that are going to be released, to see if the problem will fix itself someway, and I will pay attention to users comments (they might experience the same problems on their devices.)

Thanks a lot for Your Help.