On Thu, Jun 6, 2013 at 3:22 PM, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="im">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 would<br>
> > also like to allow people to specify their own namespaces, so for 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>
</div></div>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>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote></div><br>The simplest way would presumably be to make the ohrrpgce a library 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 looking at are set up.<br><br>(I am actually working on an Android project right now for my day job, but it's been a while and I'm a bit rusty. And someone else has already written it; I'm just changing it.)<br>
<br>Cheers,<br>Simon<br>