Android

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Android

Post by gravy »

Sounds like a nightmare to convert to

http://www.altdevblogaday.com/2012/08/0 ... o-android/
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Android

Post by GoatFoam »

It's because android are trying to be the windows 3.1 of the smart phone world.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Android

Post by gravy »

They're succeeding :D
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Re: Android

Post by sack »

I've tried NDK for porting and as far as I can see my 2D game engine is technically running, albeit silently as every openGL calls fails with an error saying the call isn't implemented (even clearing the screen), with pretty much zero debugging or feedback. The build process is a black art and I'm pretty sure you have to sacrifice a chicken to get native call function names working right.

and once you've done all of that someone releases a bloody x86 phone, so you need to do it all again. But hopefully there's some way of detecting if you are running on x86 and loading the other binary blob instead.

One of these days I'll go back to it, but it's such a ballsache compared to iOS that's fer sure...
User avatar
bcass
Baaaaa!
Baaaaa!
Posts: 1932
Joined: Mon Apr 22, 2002 7:54 pm 0
Location: Island of Dots
Contact:

Re: Android

Post by bcass »

To be fair to Google, in their NDK documentation one of the first things they get across is to discourage writing everything in C/C++, which is a sort of acknowledgement that their NDK is nowhere near as mature as their SDK.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Android

Post by gravy »

"lol it's shit" isn't much of an excuse to be honest.
User avatar
bcass
Baaaaa!
Baaaaa!
Posts: 1932
Joined: Mon Apr 22, 2002 7:54 pm 0
Location: Island of Dots
Contact:

Re: Android

Post by bcass »

Sure, but you can't complain about getting burnt when you were told not to jump into the fire.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Android

Post by gravy »

The NDK has been out for 3 years and was in development for a while before that.

And if you read the article there's a bunch of issues that are to do with legacy Android issues in general, it's not just NDK problems.

Past 2.3 Android seems like a much better system to write for but the complete lack of policing on older implementations was a real mistake.

And yeah devs are warned about the NDK but ultimately it's the end users that suffer.
User avatar
Darkflame
Sheepie Whore
Sheepie Whore
Posts: 18236
Joined: Mon Mar 31, 2003 11:06 am 0
Location: Not the UK

Re: Android

Post by Darkflame »

Because your porting the wrong way. Google wants you to write webapps in GWT, port to Android (which is pretty easy) and maybe use their App Engine for some databases and hopefully pay them forever ;)

Googles trying to get Java as quick as possible rather then paying much attention to other languages.
User avatar
gilesgoat
Sheepie Whore
Sheepie Whore
Posts: 27258
Joined: Wed Sep 03, 2003 7:54 am 0
Location: Monfalcone, Italy
Contact:

Re: Android

Post by gilesgoat »

So do you mean I should not even start trying and move maybe on the ps vita sdk instead ;) ?
Giles the billy goat
"Baa"
User avatar
gilesgoat
Sheepie Whore
Sheepie Whore
Posts: 27258
Joined: Wed Sep 03, 2003 7:54 am 0
Location: Monfalcone, Italy
Contact:

Re: Android

Post by gilesgoat »

sack wrote:I've tried NDK for porting and as far as I can see my 2D game engine is technically running, albeit silently as every openGL calls fails with an error saying the call isn't implemented (even clearing the screen), with pretty much zero debugging or feedback. The build process is a black art and I'm pretty sure you have to sacrifice a chicken to get native call function names working right.

and once you've done all of that someone releases a bloody x86 phone, so you need to do it all again. But hopefully there's some way of detecting if you are running on x86 and loading the other binary blob instead.

One of these days I'll go back to it, but it's such a ballsache compared to iOS that's fer sure...
How can it be your program working AND very call fail ?

I suppose the OpenGL examples do not work then ?
Giles the billy goat
"Baa"
User avatar
pyroxian
Baaaaa!
Baaaaa!
Posts: 1308
Joined: Sat Nov 06, 2004 2:05 pm 0
Location: OX-ford

Re: Android

Post by pyroxian »

gilesgoat wrote:
sack wrote:I've tried NDK for porting and as far as I can see my 2D game engine is technically running, albeit silently as every openGL calls fails with an error saying the call isn't implemented (even clearing the screen), with pretty much zero debugging or feedback. The build process is a black art and I'm pretty sure you have to sacrifice a chicken to get native call function names working right.

and once you've done all of that someone releases a bloody x86 phone, so you need to do it all again. But hopefully there's some way of detecting if you are running on x86 and loading the other binary blob instead.

One of these days I'll go back to it, but it's such a ballsache compared to iOS that's fer sure...
How can it be your program working AND very call fail ?

I suppose the OpenGL examples do not work then ?
I tend to use the old fallback and just use shitloads of Log.i etc. to tell me what's going on. I've not got a native debugger to work yet though.
User avatar
RamaBot
Baaa!
Baaa!
Posts: 349
Joined: Sat Feb 04, 2006 1:44 am 0
Location: Coventry, England
Contact:

Re: Android

Post by RamaBot »

I have three games out on and Android. With 2 of them on IOS too. All written in c++

The first game I wrote the using a little Java wrapper with 99% c++ and the jni crap.

The next two I used this.
http://www.madewithmarmalade.com/marmaladesdk

Next I may look at this.

http://www.mosync.com/documentation/manualpages/sdk

Have fun.
User avatar
bcass
Baaaaa!
Baaaaa!
Posts: 1932
Joined: Mon Apr 22, 2002 7:54 pm 0
Location: Island of Dots
Contact:

Re: Android

Post by bcass »

gilesgoat wrote:So do you mean I should not even start trying and move maybe on the ps vita sdk instead ;) ?
Not as bad an idea as it might initially sound. Playstation Network code would be easily portable to XBLIG, Windows Phone 7 and Windows.
User avatar
gilesgoat
Sheepie Whore
Sheepie Whore
Posts: 27258
Joined: Wed Sep 03, 2003 7:54 am 0
Location: Monfalcone, Italy
Contact:

Re: Android

Post by gilesgoat »

bcass wrote:
gilesgoat wrote:So do you mean I should not even start trying and move maybe on the ps vita sdk instead ;) ?
Not as bad an idea as it might initially sound. Playstation Network code would be easily portable to XBLIG, Windows Phone 7 and Windows.
The code already runs on Windows, I heard that wp7 also supports DX.
Giles the billy goat
"Baa"
Post Reply