[SDL] Extending SDLActivity (2.0.1/Android)

Martin Gerhardy martin.gerhardy at gmail.com
Thu Oct 24 08:12:19 PDT 2013


I can only offer you take a look at what I'm using. This isn't all my 
code. Parts of it were posted earlier on this mailinglist.

Keep in mind to fill all the needed variables in there (like adUnitId 
and base64PublicKey)
There are also some in-game-payitems defined there, too.

At least the requested layout stuff is in there. So you might find it 
useful.

The important part is this one:

     @Override
     public void setContentView(View view) {
         layout = new RelativeLayout(this);
         view.setId(SDLViewID);
         layout.addView(view);
         super.setContentView(layout);
     }

Regards
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MyGame.java
Type: text/x-java
Size: 8522 bytes
Desc: not available
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20131024/b705ab2c/attachment-0009.java>


More information about the SDL mailing list