question

meyumeapps avatar image
meyumeapps asked

Help please! Kindle fire behaves differently to other android devices

Hi, We've have an app that works fine on typical Android devices but behaves differently on our two kindle fire 7" HD devices. This is the scenario - app is running fine 60 FPS - user clicks button to launch web view e.g. login to Facebook - activity is started - Facebook dialog is showing - user presses BACK button to return to OUR app - now the FPS is 30 FPS - it's dropped by 50% If the user presses the HOME button and relaunches then we are back to 60FPS (app hasn't been quit) On the Android devices we've tested on (quite a few), the frame rate drop doesn't happen when the back button is pressed. This is driving us crazy as we really would like to launch our app on the Amazon app store before the holidays :( Any help or suggestions is much appreciated. Thanks Scott
fire tablet
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Meyumeapps, Thank you for writing to us. Without looking at the code its difficult to find the root cause of the issue. Is that possible to isolate the issue in a sample app and provide the source code of it through ContactUs ( https://developer.amazon.com/help/contactus.html)
10 |5000

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

meyumeapps avatar image
meyumeapps answered
Is the Amazon SDK for Kindle 7 HD much different to the Android variant? I've got the simplest of test apps built using the MOAI game engine ( http://getmoai.com) The app performs flawlessly on my Android devices but has 50% frame rate slow down when returning to the app on the Kindle Fire using the back button. All I'm doing is starting an activity to open the silk web browser and show the Google Home page. Any tool that might help me isolate the problem? I'm using a GLSurfaceView Renderer and the ononDrawFrame is called at a solid 60 FPS. After back button pressed this rapidly drops to 30FPS. I've timed the render and update code in my app and it takes no more than 2ms, even after the slow down. It's almost as if something else is dragging the frame rate down, like a spinning thread or something. I'm happy to post an APK if it help? Thanks Scott
10 |5000

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

meyumeapps avatar image
meyumeapps answered
Some more information: The slow down also occurs if I DON'T launch the activity from my app but instead press the quick menu and then go through app search. Returning to my app from search is an immediate 50% slow down. It is almost as if the quick start menu continues to consume resource after it has been closed?
10 |5000

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

meyumeapps avatar image
meyumeapps answered
Sorry for the posts: If I go to another app and then back to my app via the carousel then I keep the 60 FPS.
10 |5000

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

meyumeapps avatar image
meyumeapps answered
Okay, we think we have found the problem :) It seems that we need in the manifest android:hardwareAccelerated="true" despite the kindle fire 7" 2nd gen being api level 15: https://developer.amazon.com/sdk/fire/specifications.html Android docs say it's hardware acceleration is auto enabled for >= api level 14: http://developer.android.com/guide/topics/graphics/hardware-accel.html It would be good to hear something from the Amazon techies on this one as it has been driving us nuts. Message was edited by: meyumeapps
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Meyumeapps, Thank you for the details and findings. Can you please zip and send us the project folder of your simplest app so that we can further investigate? Please raise a ContactUs and mention this thread url ( https://forums.developer.amazon.com/forums/thread.jspa?threadID=2192&tstart=0) there. This way we could reach to the issue early.
10 |5000

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