More than 1 monkey app on phone
Monkey Targets Forums/Android/More than 1 monkey app on phone
| ||
Everytime I install different monkey apps on my android phone, it keep overwriting the same app. What needs to be changed in order to have more than 1 monkey app installed? |
| ||
Hi you need to change (manually) the target/Android/Res/value/string.xml with another name (default is MonkeyGame) <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">My_App_Name_is_here</string> </resources> and I think you should change either the layout/main.xls (not sure at the moment) |
| ||
Thanks for the suggestion degac I have already tryed setting another name in strings.xml. Also I edit project name in build.xml This result in new apk filename, and new app name ..but still, it keeps overwriting any existing 'MonkeyGame' already installed. |
| ||
I wish there was a tool for configuring the apk file. Like name, icons and the signing stuff. |
| ||
You need to change it in the plist, too. Not sure about specifics as I'm out at the moment. |
| ||
were can I find this plist? |
| ||
It would be nice if you set the AppTitle in code that Monkey would alter the generated files for you ;) |
| ||
Have someone figured out how to install more than one app on android device? |
| ||
I hava the same problem with IOS! Where should I rename the application? |
| ||
For iOS, see here: http://www.monkeycoder.co.nz/Community/topics.php?forum=205 |
| ||
Wrong forum! How to do this on ANDROID??? This is so lame! Are we supposed to hack native code to give the app a proper name?? |
| ||
I've not have multiple apps on Android as yet. You could try the tip on this page, but it requires Eclipse. http://developer.android.com/guide/appendix/faq/troubleshooting.html#gesturebuilderinstall |
| ||
Giving the app a new name is easier: yourapp.build/android/res/values/strings.xml<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">MyGame</string> </resources>Then running trans with the -update parameter will not overwrite this change. |
| ||
Editing strings.xml does not change the app title displayed on the android device. It just renames the apk file. Also it does not fix the problem that is preventing from installing more than one app on the device. |
| ||
To show a new name on the device, change the project name in build.xml I try changing "<activity android:name="MonkeyGame" in AndroidManifest.xml. But that crashes android. |
| ||
@VirTech > Editing strings.xml does not change the app title displayed on the android device. Works for me in my emulator and on my device. I tested the solution before posting. > Also it does not fix the problem that is preventing from installing more than one app on the device. I never said it does. :) |
| ||
Strange. I need to edit a new name in build.xml to show another name on the device. What a mess! I suspect the problem preventing to install multiple apps has something to do with the same key used to sign the apk file (keytool) |
| ||
Hi, The 'com.monkey' package/directory in src needs to be renamed 'per app' (and a bunch of stuff that references it) - coming soon! |
| ||
Thanks Mark. Good to know its being taken care of. |
| ||
Any news about this? |
| ||
I'd be interested as well! |
| ||
eh? I've had different monkey apps on one device for a while. I believe you need to create unique names under the config.txt file. If that doesn't work, just alter your android manifest file directly (the one specifically under templates of your build folder). |
| ||
Yes - just change the name in the config.txt file...easy. |
| ||
I tried that and other things too. I can get two monkeys apps on my phone, but the second one crashes, even when I have changed the config.txt file, have to test again :) [edit]Ok... Changing APP_PACKAGE=com.monkey to APP_PACKAGE=com.<your game> in Config.txt and then src/com/monkey to src/com/<your game> works for me. |