More than 1 monkey app on phone

Monkey Targets Forums/Android/More than 1 monkey app on phone

Virtech(Posted 2011) [#1]
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?


degac(Posted 2011) [#2]
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)


Virtech(Posted 2011) [#3]
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.


Virtech(Posted 2011) [#4]
I wish there was a tool for configuring the apk file. Like name, icons and the signing stuff.


matt(Posted 2011) [#5]
You need to change it in the plist, too.

Not sure about specifics as I'm out at the moment.


Virtech(Posted 2011) [#6]
were can I find this plist?


therevills(Posted 2011) [#7]
It would be nice if you set the AppTitle in code that Monkey would alter the generated files for you ;)


Virtech(Posted 2011) [#8]
Have someone figured out how to install more than one app on android device?


Wagenheimer(Posted 2011) [#9]
I hava the same problem with IOS! Where should I rename the application?


matt(Posted 2011) [#10]
For iOS, see here: http://www.monkeycoder.co.nz/Community/topics.php?forum=205


Virtech(Posted 2011) [#11]
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??


matt(Posted 2011) [#12]
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


matt(Posted 2011) [#13]
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.


Virtech(Posted 2011) [#14]
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.


Virtech(Posted 2011) [#15]
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.


matt(Posted 2011) [#16]
@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. :)


Virtech(Posted 2011) [#17]
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)


marksibly(Posted 2011) [#18]
Hi,

The 'com.monkey' package/directory in src needs to be renamed 'per app' (and a bunch of stuff that references it) - coming soon!


Virtech(Posted 2011) [#19]
Thanks Mark. Good to know its being taken care of.


jayparker(Posted 2011) [#20]
Any news about this?


Xaron(Posted 2011) [#21]
I'd be interested as well!


AdamRedwoods(Posted 2011) [#22]
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).


matty(Posted 2011) [#23]
Yes - just change the name in the config.txt file...easy.


jayparker(Posted 2011) [#24]
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.