[SOLVED] SDL for Android: package name hard-coded. |
SDL for Android: package name hard-coded. |
Forest Hale
Guest
|
My main observation is that the README.android *really* needs a detailed list of files containing strings to change for each app, folders to rename, etc.
This is not a mere convenience, this is essential to shipping an app. On 08/05/2011 07:58 PM, William Dyce wrote:
-- LordHavoc Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces Co-designer of Nexuiz - http://alientrap.org/nexuiz "War does not prove who is right, it proves who is left." - Unknown "Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass "A game is a series of interesting choices." - Sid Meier _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
SDL for Android: package name hard-coded. |
wilbefast
|
When I get round to doing this I'll definately provide a list of files and line numbers - it should be easy enough to merge in. It's certainly essential thing though - you can't really afford to hard-code the unique app identifier :-S
On 6 August 2011 13:34, Forest Hale wrote:
|
|||||||||||||||
|
Re: SDL for Android: package name hard-coded. |
wilbefast
|
I *think* that's all the uses. Mind you, I have no idea how to write generic code for any package name - think it's just a matter of going in a changing everything by hand to suit your app |
|||||||||||||
|
SDL for Android: package name hard-coded. |
Paulo Pinto
Guest
|
Hi,
to make it generic, one needs to replace the stub names by a mapping structure and calling RegisterNatives(). http://download.oracle.com/javase/1,5.0/docs/guide/jni/spec/design.html http://download.oracle.com/javase/1,5.0/docs/guide/jni/spec/functions.html#wp17734 Still the names would need to be hardcoded in some place, so I am not really sure what you pretend to change. -- Paulo On Tue, Nov 8, 2011 at 7:44 AM, wilbefast wrote:
|
|||||||||||||
|
gabomdq
|
Hey guys, I've solved this issue for my project. Here's how I did it: http://mdqinc.com/blog/2011/11/using-your-own-app-name-in-a-sdl-android-app/
I hope it's useful for you. Gabriel. |
|||||||||||
|
wilbefast
|
Nice one I'm loathe to modify the code directly since it's supposed to be polyvalent. Wrapping it like this is much cleaner. Had to include <jni.h> to get it working though. Awesome: now the apk is self-contained (thanks to rWops access to assets) and uniquely named, so it's ready to go up on the market. Thanks SDL |
|||||||||||||
|