[Ohrrpgce] Android port

Simon Bradley neworiginal at gmail.com
Thu Jun 6 08:16:32 PDT 2013


On Thu, Jun 6, 2013 at 3:22 PM, James Paige <Bob at hamsterrepublic.com> wrote:

> On Thu, Jun 06, 2013 at 01:28:10PM +1200, Ralph Versteegen wrote:
> > On 6 June 2013 02:19, James Paige <Bob at hamsterrepublic.com> wrote:
> >
> > > For people who don't have their own domain name, we can provide a
> > > namespace like com.hamsterrepublic.ohrrpgce.games.gamename but I would
> > > also like to allow people to specify their own namespaces, so for your
> > > own game, tmc, you might choose to use
> > > com.castleparadox.tmc.foresttemple or maybe Mogri would want to use
> > > com.slimesalad.phantomtactics or Harlock might use
> > > org.crithit.spellshard
> >
> > Is there any point to allowing customisation of namespace? I think it
> > just has to be unique, eg a com.hamsterrepublic.ohrrpgce.games.
> > prefix.
> > I see that the Android documentation says "To avoid conflicts with
> > other developers, you should use Internet domain ownership as the
> > basis for your package names (in reverse)."
>
> Well, from a making-things-work perspective, no, there is no point to
> allowing people to specify their own namespaces, but from the
> perspective of people signing their own games and uploading them to the
> google play store, I would like to give people that option, especially
> for people who are going to sell their games rather than post them as
> free apps.
>
> Someone can still sell their game with a name in the
> com.hamsterrepublic.ohrrpgce.games.* namespace, but by doing so the are
> trusting me as the owner of that domain to behave honorably about it :)
>
>
The simplest way would presumably be to make the ohrrpgce a library project
and wrap it with the new namespace, I think:

package com.newnamespace.myrpg;

public class MainActivity extends com.ohrrpgce.games.OHRActivity

etc.

I believe that would work. That seems to be how these examples I am looking
at are set up.

(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.)

Cheers,
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20130606/6213b88b/attachment-0001.htm>


More information about the Ohrrpgce mailing list