question

morefunnerguy avatar image
morefunnerguy asked

Gamecircle initializes on kindle but not on other android devices

Gamecircle will initializes on all Kindle Fire devices, but on other Android devices (non-Kindle Fire) Gamecircle initialize fails with onServiceNotReady. If I do not initialize my game view then I have no problem, but if I do initialize my game view and ad views then only Kindle Fire devices initialize with onServiceReady and all other non-Kindle Fire devices recieve onServiceNotReady. --------------------------------------------------------------------------------------------------------------------- public class MainActivity extends AndroidApplication { private View gameView; private RelativeLayout layout; private AmazonGamesClient agsClient; private EnumSet myGameFeatures = EnumSet.of(AmazonGamesFeature.Achievements, AmazonGamesFeature.Leaderboards, AmazonGamesFeature.Whispersync); private AmazonGamesCallback amazonGamesCallback = new AmazonGamesCallback() { @Override public void onServiceReady(AmazonGamesClient amazonGamesClient) { agsClient = amazonGamesClient; log("GAME","onServiceReady"); } @Override public void onServiceNotReady(AmazonGamesStatus status) { log("GAME","onServiceNotReady"); } }; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); setContentView(R.layout.main); AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration(); cfg.useWakelock = true; layout = (RelativeLayout)findViewById(R.id.main_layout); // If I remove next two lines it works on all devices // otherwise it only works on Kindle Fire Devices // I am using LIBGDX but I have tried using // a custom game loop and it still does not work correctly. gameView = initializeForView(new WordSearchFun(this), cfg); layout.addView(gameView); } @Override protected void onPause() { super.onPause(); AmazonGamesClient.release(); } @Override protected void onResume() { super.onResume(); AmazonGamesClient.initialize(this, amazonGamesCallback, myGameFeatures); } }
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Morefunnerguy, Can you post the full logs? What status code you are getting in onServiceNotReady() for non Amazon devices? Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.