Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Double sets of icons on android, after 1.071 update

Author
Message
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 8th May 2012 19:50
When I installed the android player, and my own made game, they both got 2 identical icons in the "Programs" menu on my devices. I tried on 4 different devices, same ressult. Anyone experiencing this? When you click the "wrong" icon, the program just crashes.

I did not have this problem before the 1.071 release.

----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
Marl
13
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 8th May 2012 19:59
Yep, same here.

Fortunately in each case it's been the first one which works and the second which bombs it.

Hopefully it's consistent in that respect.
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 9th May 2012 21:07 Edited at: 9th May 2012 21:08
When I compiled the player for version 1.072, it still made 2 icons, but now, instead of crashing, one of them opens up the game, and the other one just opens the my pictures folder... LOL Is this a desperate patch to prevent the crash, while trying to figure out the reason for 2 icons?

----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
Marl
13
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 9th May 2012 22:30
You see - I did back you up , you said in the other thread that no-one believed you
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 10th May 2012 02:53
The package name in the AndroidManifest.xml file determines if the app is a new app or the same as one you already have. If this changed then the app would get a new icon.
Marl
13
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 10th May 2012 08:51
Quote: " If this changed then the app would get a new icon."

I removed all versions of the player and my AppGameKit apps and reinstalled. Each installation gets two icons.

The fact that the second icon always does the same thing no matter what the app is, suggests it's a second entry point.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 10th May 2012 17:14
Found the cause, this will be fixed in 1073.
Marl
13
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 10th May 2012 18:19
Quote: "Found the cause, this will be fixed in 1073."

Brilliant, thanks Paul.

Another speedy fix, support here really is top notch.

As an aside, It might be worth keeping a note of what this was, having multiple launch icons for one app could be a useful enhancement for the future
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 10th May 2012 18:31
We created a new activity in the AndroidManifest.xml to open the gallery for choosing an image like so



which accidentally created a new icon that opened that activity instead of the main one. Changing it to



Removed the icon whilst still allowing it to be called from inside the app.
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 10th May 2012 21:51
Thank you Paul! That fixed that embarrasing problem

----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
LittleSteve
13
Years of Service
User Offline
Joined: 19th Sep 2011
Location:
Posted: 4th Jun 2012 00:33
Hi Paul,

Sorry to open this one again but...
I've just updated my AppGameKit to the latest version (so I assume I'm on 1074, I'm not sure if I just havent updated my agk properly because I still have the above problem.
Have I missed something I should have done in the update?

thanks
polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 4th Jun 2012 10:09
Isn't there a v1075 now?

Blackberry App Development & ZX Spectrum Game Development.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 4th Jun 2012 17:23
LittleSteve, the current version is v1075 (as polomint says).

It handles some orientation issues for ads and text inputs much better. Unless you work with an odd ball device like mine (which says it's a tablet, but acts like a phone).

Make sure to update all the directories in your android setup with the ones from the new version. And copy the contents of the <android path>/IDE/apps/interpreter_android/src and jni directories to the src and jni directories in your project. And look for changes in the manifest file as well.

Cheers,
Ancient Lady
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 4th Jun 2012 21:07
Yes the manifest file on android is the clue, they did some changes there, to fix the double icon issue. as described 5 posts up in this thread.

----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
LittleSteve
13
Years of Service
User Offline
Joined: 19th Sep 2011
Location:
Posted: 5th Jun 2012 13:41
Hi guys,

Updated to 1075 (to solve the double icon issue), but now cygwin wont compile error code is...

target '/cygdrive/c/Android/AGK/IDE/apps/stacker/obj/local/armeabi/objs/android_player/Core.o' failed

on the previous version of AppGameKit 1071, cygwin worked fine - I only updated because of the icons!

thanks in advance.

Steve
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 5th Jun 2012 18:39 Edited at: 5th Jun 2012 18:42
You want to make sure you updated everything in your android path and do a clean before building. Also, sometimes there is a permissions issue that pops up.

These are commands I execute every time I update/change my AppGameKit version. I have my Windows AppGameKit installed in C:\TGC\AGK (I never use the Program Files directories if given the choice, I hate spaces in paths/file names). And I used simply 'android-ndk' for the Android NDK path (I used the most recent version).

To update the core AppGameKit stuff:


To update my own projects after updating core AGK:


After doing the above to make sure the permissions are correct and that Eclipse will be able to run the app on the Android device:


Now, just so you have a working player, build the player:


Edit /cygdrive/c/Android/IDE/apps/interpreter/interpreter.cpp to uncomment the correct line so that your app will run instead of the player. In v1075 it is at line #255:


Copy from your AppGameKit Tier1 directory, clean and compile your app:


Good luck!

Cheers,
Ancient Lady
LittleSteve
13
Years of Service
User Offline
Joined: 19th Sep 2011
Location:
Posted: 5th Jun 2012 21:58
Hi Ancient Lady,

I would like to thankyou for you above assitance, after an awful lot of (what appears to be) trial and error on my behalf - the result is that the problem is fixed and cygwin is finally compiling again.

Unless the reason for upgrading again is monumental then I think I stick on the version I'm on

Thanks again!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 6th Jun 2012 03:47
I'm glad if I was any help.

The next version of AppGameKit will have better native handling for orientation issues for Android, at a minimum.

I know I will need to update to that version so my game will work correctly.

Cheers,
Ancient Lady

Login to post a reply

Server time is: 2024-11-23 15:05:12
Your offset time is: 2024-11-23 15:05:12