<div class="gmail_quote">On Thu, Jun 6, 2013 at 4:44 PM, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Thu, Jun 06, 2013 at 04:16:32PM +0100, Simon Bradley wrote:<br>
>    On Thu, Jun 6, 2013 at 3:22 PM, James Paige <<a href="mailto:Bob@hamsterrepublic.com">Bob@hamsterrepublic.com</a>><br>
>    wrote:<br>
><br>
>      On Thu, Jun 06, 2013 at 01:28:10PM +1200, Ralph Versteegen wrote:<br>
>      > On 6 June 2013 02:19, James Paige <<a href="mailto:Bob@hamsterrepublic.com">Bob@hamsterrepublic.com</a>> wrote:<br>
>      ><br>
>      > > For people who don't have their own domain name, we can provide a<br>
>      > > namespace like com.hamsterrepublic.ohrrpgce.games.gamename but I<br>
>      would<br>
>      > > also like to allow people to specify their own namespaces, so for<br>
>      your<br>
>      > > own game, tmc, you might choose to use<br>
>      > > com.castleparadox.tmc.foresttemple or maybe Mogri would want to use<br>
>      > > com.slimesalad.phantomtactics or Harlock might use<br>
>      > > org.crithit.spellshard<br>
>      ><br>
>      > Is there any point to allowing customisation of namespace? I think it<br>
>      > just has to be unique, eg a com.hamsterrepublic.ohrrpgce.games.<br>
>      > prefix.<br>
>      > I see that the Android documentation says "To avoid conflicts with<br>
>      > other developers, you should use Internet domain ownership as the<br>
>      > basis for your package names (in reverse)."<br>
><br>
>      Well, from a making-things-work perspective, no, there is no point to<br>
>      allowing people to specify their own namespaces, but from the<br>
>      perspective of people signing their own games and uploading them to the<br>
>      google play store, I would like to give people that option, especially<br>
>      for people who are going to sell their games rather than post them as<br>
>      free apps.<br>
><br>
>      Someone can still sell their game with a name in the<br>
>      com.hamsterrepublic.ohrrpgce.games.* namespace, but by doing so the are<br>
>      trusting me as the owner of that domain to behave honorably about it :)<br>
><br>
>    The simplest way would presumably be to make the ohrrpgce a library<br>
>    project and wrap it with the new namespace, I think:<br>
><br>
>    package com.newnamespace.myrpg;<br>
><br>
>    public class MainActivity extends com.ohrrpgce.games.OHRActivity<br>
><br>
>    etc.<br>
><br>
>    I believe that would work. That seems to be how these examples I am<br>
>    looking at are set up.<br>
><br>
>    (I am actually working on an Android project right now for my day job, but<br>
>    it's been a while and I'm a bit rusty. And someone else has already<br>
>    written it; I'm just changing it.)<br>
><br>
>    Cheers,<br>
>    Simon<br>
<br>
</div></div>Hmm... If that is the only way to change the namespace, then it sounds<br>
like having the Android SDK installed and recompiling the project would<br>
be required. Maybe it isn't worth it if it is that much trouble?<br>
<br>
Even though I want people to be able to customize the namespace of their<br>
game, I guess that should be a low-priority goal :)<br>
<br></blockquote><div> </div></div>Ah, yes. Maybe not ideal. It might be possible to change it with something like proguard instead, in the compiled version.<br>