Jun 20, 2014 Replies: 19 Hi Community Here is my new game. Game have player and teams global ranking list so we can see which team is most popular https://play.google.com/store/apps/details?id=com.ddrmic.penaltyworldcupbrazil2014 Attachments 1.png 214.8 KB · Views: 3,440 2jpg.jpg 390.4 KB · Views: 673 1.png 214.8 KB · Views: 715 5jpg.jpg 392.3 KB · Views: 657 6.png 240.2 KB · Views: 759 7.png 260.3 KB · Views: 750 Last edited: Jun 20, 2014 Click to expand...
Hi Community Here is my new game. Game have player and teams global ranking list so we can see which team is most popular https://play.google.com/store/apps/details?id=com.ddrmic.penaltyworldcupbrazil2014
NJDude Expert Licensed User Longtime User Jun 20, 2014 #2 I tried your app and it doesn't start, it crashes, this is the log: Code: Copy ** Activity (main) Create, isFirst = true ** java.lang.OutOfMemoryError at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:810) at android.graphics.Bitmap.createBitmap(Bitmap.java:787) at android.graphics.Bitmap.createBitmap(Bitmap.java:754) at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:76) at com.ddrmic.penaltyworldcupbrazil2014.main._activity_create(main.java:1359) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174) at com.ddrmic.penaltyworldcupbrazil2014.main.afterFirstLayout(main.java:98) at com.ddrmic.penaltyworldcupbrazil2014.main.access$100(main.java:16) at com.ddrmic.penaltyworldcupbrazil2014.main$WaitForLayout.run(main.java:76) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method) Tested on a Nexus 7 tab, on my HTC One works fine so far.
I tried your app and it doesn't start, it crashes, this is the log: Code: Copy ** Activity (main) Create, isFirst = true ** java.lang.OutOfMemoryError at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:810) at android.graphics.Bitmap.createBitmap(Bitmap.java:787) at android.graphics.Bitmap.createBitmap(Bitmap.java:754) at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:76) at com.ddrmic.penaltyworldcupbrazil2014.main._activity_create(main.java:1359) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174) at com.ddrmic.penaltyworldcupbrazil2014.main.afterFirstLayout(main.java:98) at com.ddrmic.penaltyworldcupbrazil2014.main.access$100(main.java:16) at com.ddrmic.penaltyworldcupbrazil2014.main$WaitForLayout.run(main.java:76) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method) Tested on a Nexus 7 tab, on my HTC One works fine so far.
WAZUMBi Well-Known Member Licensed User Longtime User Jun 20, 2014 #3 I'm getting the same error. I'm using a Note 4.
danijel Active Member Licensed User Longtime User Jun 20, 2014 #4 thx guys ill try to resolve problem
Jaames Active Member Licensed User Longtime User Jun 20, 2014 #5 WAZUMBi said: I'm getting the same error. I'm using a Note 4. Click to expand... Note what?
Jaames Active Member Licensed User Longtime User Jun 20, 2014 #6 The same here. Galaxy note 2 N7105. Game crashes after progressbar is around 90%
danijel Active Member Licensed User Longtime User Jun 20, 2014 #7 Thanks to you too Jaames. Interesting thing is that i tested game on 4 devices and everything works fine. When i put it on google play first show one non working phone and then ton of them BTW i added this line to manifest file and it seems to be OK now Code: Copy SetApplicationAttribute(android:largeHeap,"true") When google refresh app version I let you know Thx again
Thanks to you too Jaames. Interesting thing is that i tested game on 4 devices and everything works fine. When i put it on google play first show one non working phone and then ton of them BTW i added this line to manifest file and it seems to be OK now Code: Copy SetApplicationAttribute(android:largeHeap,"true") When google refresh app version I let you know Thx again
NJDude Expert Licensed User Longtime User Jun 20, 2014 #8 I don't think that will work, you better find what's taking so much memory (bitmaps). Last edited: Jun 20, 2014
danijel Active Member Licensed User Longtime User Jun 20, 2014 #9 NJDude said: I don't think that will work, you better find what's taking so much memory. Click to expand... Well maybe you are in general right, but before this line of code game didn't work on: http://www.gsmarena.com/lg_optimus_4x_hd_p880-4563.php http://www.gsmarena.com/samsung_i9500_galaxy_s4-5125.php Android Virtual Device Sony Ericsson Arc S After that line of code in Manifest file game works on every of that 3 device. So i see some progress Also i find some other developers who solved same problem with this. However i am loading all graphics in activity_create to speed up game later. If 2 full screen, 3 medium and 32 very small flag images is to much, I don't know what to say...
NJDude said: I don't think that will work, you better find what's taking so much memory. Click to expand... Well maybe you are in general right, but before this line of code game didn't work on: http://www.gsmarena.com/lg_optimus_4x_hd_p880-4563.php http://www.gsmarena.com/samsung_i9500_galaxy_s4-5125.php Android Virtual Device Sony Ericsson Arc S After that line of code in Manifest file game works on every of that 3 device. So i see some progress Also i find some other developers who solved same problem with this. However i am loading all graphics in activity_create to speed up game later. If 2 full screen, 3 medium and 32 very small flag images is to much, I don't know what to say...
danijel Active Member Licensed User Longtime User Jun 20, 2014 #10 I think update is ready. @NJDude, @WAZUMBi, @Jaames Can u try now ?
NJDude Expert Licensed User Longtime User Jun 21, 2014 #11 I got the new version and crashed, re started the app and seems to work, however, that solution might now work on all devices just something you might keep in mind.
I got the new version and crashed, re started the app and seems to work, however, that solution might now work on all devices just something you might keep in mind.
danijel Active Member Licensed User Longtime User Jun 21, 2014 #12 Of course, i know you are right. But one question did you update or you previously deleted old one? on a small sample testing i noticed that update crashed or load without sounds... Fresh new install seems to be OK. Everything is a little strange and confusing... I still cant believe how is that out of memory ( total app is about 4MB ) i know that i must load bmp file for picture which is much larger but .... Thx again for testing
Of course, i know you are right. But one question did you update or you previously deleted old one? on a small sample testing i noticed that update crashed or load without sounds... Fresh new install seems to be OK. Everything is a little strange and confusing... I still cant believe how is that out of memory ( total app is about 4MB ) i know that i must load bmp file for picture which is much larger but .... Thx again for testing
NJDude Expert Licensed User Longtime User Jun 21, 2014 #13 I uninstalled and installed the new version and that happened. Every device/manufacturer handles memory differently.
I uninstalled and installed the new version and that happened. Every device/manufacturer handles memory differently.
S susu Well-Known Member Licensed User Longtime User Jun 21, 2014 #14 It worked fine on my LG Optimus G Pro. Good game! However, is it totally random? I can't move the glove when computer shoot the ball.
It worked fine on my LG Optimus G Pro. Good game! However, is it totally random? I can't move the glove when computer shoot the ball.
WAZUMBi Well-Known Member Licensed User Longtime User Jun 21, 2014 #15 I have a Samsung Galaxy Note 4 It works now however something curious happened that I've never seen before. A pop up message box showed up right after loading that read 'Possible viras on your device' with an option to 'Scan' or 'Cancel'. This popup came fron your app. Is this an ad or something? Last edited: Jun 21, 2014
I have a Samsung Galaxy Note 4 It works now however something curious happened that I've never seen before. A pop up message box showed up right after loading that read 'Possible viras on your device' with an option to 'Scan' or 'Cancel'. This popup came fron your app. Is this an ad or something?
eps Expert Licensed User Longtime User Jun 21, 2014 #16 You need to analyse the memory use, there are free Apps on Google Play which allow you to do this. You need to see if using the App uses more and more memory. Then you need to look at bitmap sizes and also how the bitmap variables are defined and if you are defining too many instead of reusing them, ideally they should be defined as globals and reused don't define lots of them, you need to be clever about this. Samsung devices seem to be more sensitive to memory use for Apps than other devices.
You need to analyse the memory use, there are free Apps on Google Play which allow you to do this. You need to see if using the App uses more and more memory. Then you need to look at bitmap sizes and also how the bitmap variables are defined and if you are defining too many instead of reusing them, ideally they should be defined as globals and reused don't define lots of them, you need to be clever about this. Samsung devices seem to be more sensitive to memory use for Apps than other devices.
Jaames Active Member Licensed User Longtime User Jun 21, 2014 #17 WAZUMBi said: I have a Samsung Galaxy Note 4 ... Click to expand... I know it's offtopic, but Samsung Galaxy Note 4 is not released yet. How that comes that u own one? Now ontopic . I received update notification for your game, updated it and now it works well. Nice game tho, Thumbs UP
WAZUMBi said: I have a Samsung Galaxy Note 4 ... Click to expand... I know it's offtopic, but Samsung Galaxy Note 4 is not released yet. How that comes that u own one? Now ontopic . I received update notification for your game, updated it and now it works well. Nice game tho, Thumbs UP
danijel Active Member Licensed User Longtime User Jun 21, 2014 #18 susu said: It worked fine on my LG Optimus G Pro. Good game! However, is it totally random? I can't move the glove when computer shoot the ball. Click to expand... When is your turn you just need to touch your target. after that computer choose random one of 6 position (up/down) AND (left/center/right) and animation starts...
susu said: It worked fine on my LG Optimus G Pro. Good game! However, is it totally random? I can't move the glove when computer shoot the ball. Click to expand... When is your turn you just need to touch your target. after that computer choose random one of 6 position (up/down) AND (left/center/right) and animation starts...
danijel Active Member Licensed User Longtime User Jun 21, 2014 #19 WAZUMBi said: I have a Samsung Galaxy Note 4 It works now however something curious happened that I've never seen before. A pop up message box showed up right after loading that read 'Possible viras on your device' with an option to 'Scan' or 'Cancel'. This popup came fron your app. Is this an ad or something? Click to expand... Yes, its an ad. I asked my ad network to remove that scary ad, and they remove it imidietaly
WAZUMBi said: I have a Samsung Galaxy Note 4 It works now however something curious happened that I've never seen before. A pop up message box showed up right after loading that read 'Possible viras on your device' with an option to 'Scan' or 'Cancel'. This popup came fron your app. Is this an ad or something? Click to expand... Yes, its an ad. I asked my ad network to remove that scary ad, and they remove it imidietaly
WAZUMBi Well-Known Member Licensed User Longtime User Jun 21, 2014 #20 Jaames said: I know it's offtopic, but Samsung Galaxy Note 4 is not released yet. How that comes that u own one? Now ontopic . I received update notification for your game, updated it and now it works well. Nice game tho, Thumbs UP Click to expand... Whoops I meant Note 3. Just wishful thinking I guess
Jaames said: I know it's offtopic, but Samsung Galaxy Note 4 is not released yet. How that comes that u own one? Now ontopic . I received update notification for your game, updated it and now it works well. Nice game tho, Thumbs UP Click to expand... Whoops I meant Note 3. Just wishful thinking I guess