Skip to main content

Porting to iPhone

20 replies [Last post]
Anonymous

Hello,

I was wondering if anybody could provide more resources around porting
phoneMe Advanced to iPhone. I could not attend to Hinkmond's JavaOne session
called "How to Port phoneMEâ„¢ Advanced Software to Google Android, iPhone,
OpenMoko, LiMO, and More", that presentation could be a nice start as
well...

Thanks,

--
Bruno Cavaler Ghisi
http://weblogs.java.net/blog/brunogh
http://www.gujavasc.org.br
Home:+55 48 33340668
Mobile:+55 48 99682020
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tisoft_media
Offline
Joined: 2006-08-15

Hello,

I'd like to know if having an iPhone is really neccessary for running phoneme in the simulator. I'm planning to get a 3G iPhone as soon as its available, but i'd like starting to poke arround with java on the iPhone simulator right now.

So if I can help verifying your steps, I would be glad to do so. I have the SDK already installed and the phoneme source checked out.

Regards,
Markus

> I've starting a TWiki page at:
>
> http://wiki.java.net/bin/view/Mobileandembedded/Phone
> EAdvancedPlatformsIPhone
>
> Please let me know if you are able to do step #0-3
> (steps I've added so
> far). You have already performed step #2, so you can
> skip that. ;-)
>
> Once you have completed up to step #3, let me know
> and I will send more
> instructions that you can help test out before I
> transfer to the TWiki page.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello,
>
> I'd like to know if having an iPhone is really neccessary for running phoneme in the simulator. I'm planning to get a 3G iPhone as soon as its available, but i'd like starting to poke arround with java on the iPhone simulator right now.
>
> So if I can help verifying your steps, I would be glad to do so. I have the SDK already installed and the phoneme source checked out.
>

Hi Markus,

No, unfortunately you cannot use the iPhone simulator, since it won't do
what you might think it should do. It's a simulator, not an emulator,
so it can only run MacOS X x86 binaries (not iPhoneOS ARM binaries like
you would need for emulating the actual device).

I updated the TWiki page a little by splitting it up a bit with further
info:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...

So, because the iPhone simulator cannot run ARM binaries, it's best that
you have an actual iPhone or iPod Touch device.

Please let us know when you have one and you are ready to use it for
development.

Thanks,

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

tisoft_media
Offline
Joined: 2006-08-15

Hi!

I received my iPhone and I have already "unleashed its power". Would be glad to help out with bringing phoneme on it.

So, if you have some more steps to verify for the wiki, send them to me and I'll try to do so.

> phonemeadvanced@mobileandembedded.org wrote:
> > Hello,
> >
> > I'd like to know if having an iPhone is really
> neccessary for running phoneme in the simulator. I'm
> planning to get a 3G iPhone as soon as its available,
> but i'd like starting to poke arround with java on
> the iPhone simulator right now.
> >
> > So if I can help verifying your steps, I would be
> glad to do so. I have the SDK already installed and
> the phoneme source checked out.
> >
>
> Hi Markus,
>
> No, unfortunately you cannot use the iPhone
> simulator, since it won't do
> what you might think it should do. It's a simulator,
> not an emulator,
> so it can only run MacOS X x86 binaries (not iPhoneOS
> ARM binaries like
> you would need for emulating the actual device).
>
> I updated the TWiki page a little by splitting it up
> a bit with further
> info:
>
> http://wiki.java.net/bin/view/Mobileandembedded/PhoneM
> EAdvancedPlatformsIPhone
>
>
> So, because the iPhone simulator cannot run ARM
> binaries, it's best that
> you have an actual iPhone or iPod Touch device.
>
> Please let us know when you have one and you are
> ready to use it for
> development.
>
>
> Thanks,
>
> Hinkmond
>
>
>
>
> ------------------------------------------------------
> ---------------
> To unsubscribe, e-mail:
> advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail:
> advanced-help@phoneme.dev.java.net

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi!
>
> I received my iPhone and I have already "unleashed its power". Would be glad to help out with bringing phoneme on it.
>
> So, if you have some more steps to verify for the wiki, send them to me and I'll try to do so.
>

Hi Markus,

Do you have the Apple iPhone SDK currently installed on a Mac? If you
do, which version do you have installed.

Thanks,
Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

tisoft_media
Offline
Joined: 2006-08-15

Hi!

> Do you have the Apple iPhone SDK currently installed
> on a Mac? If you
> do, which version do you have installed.

I have the latest version of the iPhone SDK installed.

Regards,
Markus

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi!
>
>
>> Do you have the Apple iPhone SDK currently installed
>> on a Mac? If you
>> do, which version do you have installed.
>>
>
> I have the latest version of the iPhone SDK installed.
>

Hi Markus,

For the next step, I need to check on a build issue first, since it has
been a while since I last built our CDC binary with the iPhone SDK...

Will let you know more when I'm caught up...

Thanks,
Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

bantunes
Offline
Joined: 2003-06-11

I guess that port can begin again

It seems that it is now possible, as Apple changed the license terms, allowing interpreted code: Apple relaxes iOS SDK terms to allow Lua but block Flash




Also see my other post: Port of phoneME Advanced to iPhone

regards,

--

Bruno Antunes

vitek
Offline
Joined: 2008-06-19

Couple links regarding Java on IPhone:
How to install Java on IPhone:
http://java4iphone.com/all-news/tutorial-compile-and-run-java-applicatio...

How to compile/run simple console Java application
http://java4iphone.com/all-news/tutorial-install-java-on-the-iphone/

Java GUI application on IPhone
http://java4iphone.com/all-news/java-gui-on-iphone-example/

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Couple links regarding Java on IPhone:
> How to install Java on IPhone:
> http://java4iphone.com/all-news/tutorial-compile-and-run-java-applicatio...
>
> How to compile/run simple console Java application
> http://java4iphone.com/all-news/tutorial-install-java-on-the-iphone/
>
> Java GUI application on IPhone
> http://java4iphone.com/all-news/java-gui-on-iphone-example/
>

Hi vitek,

Please be aware that the above Java on iPhone from saurik is an
incompatible version of Java (not really Java SE and not really Java ME)
since it will only work on the iPhone and not on other Java ME devices
(like Nokia, Samsung, Motorola, LG, etc. cell phones). It instead binds
to the iPhone GUI and SQLite natives.

Since, our project phoneME is more interested in cross-device
compatibility and being able to run the same Java MIDlet or Java app on
the iPhone as on other cell phones, the java4iphone.com project from
saurik is only mildly interesting.

Good stuff, still! But, not the ultimate goal.

Thanks,

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

vitek
Offline
Joined: 2008-06-19

Hi, Hinkmond.
Unfortunately you're right. It's not really SE and not ME. It uses bridges to some IPhone's features and etc. The only plus is that it is avaliable to play with it.
I myself look forward to see something from Sun Microsystems :)

cat
Offline
Joined: 2003-06-14

Hi,

I was not at JavaOne this year, but spoke at QCon on a round table discussion about the present and future of JCP.

One issue we mentioned was JME (formerly known as J2ME) and its fate and future.
Where Rod Johnson (who has shaped the fate of JEE a lot ;-) ) mentioned, James Gosling's statement on JME and a "blurring" between it and the SE platform he predicted.

Android certainly speeds up this kind of blurring while those who worked with mobile devices and languages like myself as early as 2000-01 know, other systems like Java SDKs on Symbian or Palm also did to some extent (but with less momemtum then)

I cannot say, if porting phoneMEâ„¢ to Android really makes sense as much as elsewhere? Of course, a compatibility layer on this OS beside others (iPhone, Symbian, future Nokia Linux distros, Palm or RIM) certainly would help, even though such apps may not use the environment as much as "native" Android apps can do.

Porting it to iPhone and (unless that's exactly what RIM already offered on Eclipse?) BlackBerry among others clearly makes sense.

And to come back to James Gosling's theory, I believe, it is the only measure to rescue the ME platform from drifting into insignificance.

Kind Regards,
Werner Keil
Creative Arts & Technologies
http://www.catmedia.us

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi,
>
> I was not at JavaOne this year, but spoke at QCon on a round table discussion about the present and future of JCP.
>
> One issue we mentioned was JME (formerly known as J2ME) and its fate and future.
> Where Rod Johnson (who has shaped the fate of JEE a lot ;-) ) mentioned, James Gosling's statement on JME and a "blurring" between it and the SE platform he predicted.
> ...
>
> And to come back to James Gosling's theory, I believe, it is the only measure to rescue the ME platform from drifting into insignificance.
>
> Kind Regards,
> Werner Keil
> Creative Arts & Technologies
> http://www.catmedia.us
>
>

Hi Werner,

I wouldn't write off the future of continued growth and evolution of the
Java ME platform just yet. ;-) People like Rod Johnson and others more
familiar with Java EE and Java SE might not know that Java ME is
continuing to grow and prosper more rapidly now than ever before. For
example in this year's JavaOne 2008 conference, you saw lots of new
things with Java ME including the Amazon Kindle (Java ME CDC/PBP), the
Livescribe Pulse Pen (Java ME CLDC), Blu-ray winning the HD DVD wars
(Java ME CDC/PBP), JavaFX running on a cell phone (Java ME CLDC/MIDP
(MSA)), Sony Ericsson show device (K850i) (Java ME CLDC/MIDP (MSA)),
etc., etc.

Whenever our Sun execs talk about Java running on billions of devices,
they do not mean Java SE or Java EE. They mean Java ME specifically.
Those billions of devices are not going away any time soon nor is the
Java ME platform, which will keep growing with more functionality and
new features being added to it all the time.

So, when James Gosling talks about Java ME and Java SE "blurring", he
means we will continue to support and evolve the prosperous and vital
Java ME stack in a way that will pull in more APIs from Java SE (where
it makes sense for small devices).

For more info, see:
http://blogs.sun.com/jag/entry/javame_is_not_dead

So, eventually Java ME will engulf Java SE at some point, where you
won't need to distinguish Java SE anymore, since it will all be one
superset (with some optionality mechanism of course). It might not
happen overnight or next year, but the convergence is inevitable. Kinda
like the Borg? ;-) :-)

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Bruno Ghisi

Hello Wernell,

as it was said, Java ME platform continues to drive all the new technologies
that appears. As you may know, 8 in 10 mobiles ships it, Blu-ray is showing
all this new big market, etc, etc...

Just some numbers... Currently, iPhone has a pretty small percentage (6.5%)
of the smartphone market and this market represents around 10% of the mobile
market (from Canalys survey http://www.canalys.com/pr/2008/r2008021.htm).
The same will apply to Android. What I am trying to say is that things does
not happens in a week, it takes time and people will respond positively or
negatively in that time, otherwise it is just speculation. The fact is that
things are evolving and Java ME will always exists, the one we know, maybe
in smaIler things that will be invented, because the devices are coming with
more power, so we are able to put more stuff, that is how the technology
evolves. Currently I am able able to ship, for example, phoneME Advanced,
which is CDC stack and is much more powerful that CLDC, the base for our
MIDlets applications.

Cheers,
Bruno

2008/5/29 Hinkmond Wong :

> phonemeadvanced@mobileandembedded.org wrote:
>
>> Hi,
>>
>> I was not at JavaOne this year, but spoke at QCon on a round table
>> discussion about the present and future of JCP.
>>
>> One issue we mentioned was JME (formerly known as J2ME) and its fate and
>> future.
>> Where Rod Johnson (who has shaped the fate of JEE a lot ;-) ) mentioned,
>> James Gosling's statement on JME and a "blurring" between it and the SE
>> platform he predicted.
>> ...
>> And to come back to James Gosling's theory, I believe, it is the only
>> measure to rescue the ME platform from drifting into insignificance.
>>
>> Kind Regards,
>> Werner Keil
>> Creative Arts & Technologies
>> http://www.catmedia.us
>>
>>
>>
>
> Hi Werner,
>
> I wouldn't write off the future of continued growth and evolution of the
> Java ME platform just yet. ;-) People like Rod Johnson and others more
> familiar with Java EE and Java SE might not know that Java ME is continuing
> to grow and prosper more rapidly now than ever before. For example in this
> year's JavaOne 2008 conference, you saw lots of new things with Java ME
> including the Amazon Kindle (Java ME CDC/PBP), the Livescribe Pulse Pen
> (Java ME CLDC), Blu-ray winning the HD DVD wars (Java ME CDC/PBP), JavaFX
> running on a cell phone (Java ME CLDC/MIDP (MSA)), Sony Ericsson show device
> (K850i) (Java ME CLDC/MIDP (MSA)), etc., etc.
>
> Whenever our Sun execs talk about Java running on billions of devices, they
> do not mean Java SE or Java EE. They mean Java ME specifically. Those
> billions of devices are not going away any time soon nor is the Java ME
> platform, which will keep growing with more functionality and new features
> being added to it all the time.
>
> So, when James Gosling talks about Java ME and Java SE "blurring", he means
> we will continue to support and evolve the prosperous and vital Java ME
> stack in a way that will pull in more APIs from Java SE (where it makes
> sense for small devices).
>
> For more info, see:
> http://blogs.sun.com/jag/entry/javame_is_not_dead
>
> So, eventually Java ME will engulf Java SE at some point, where you won't
> need to distinguish Java SE anymore, since it will all be one superset (with
> some optionality mechanism of course). It might not happen overnight or
> next year, but the convergence is inevitable. Kinda like the Borg? ;-) :-)
>
>
> Hinkmond
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>
>

--
Bruno Cavaler Ghisi
http://weblogs.java.net/blog/brunogh
http://www.gujavasc.org.br
Home:+55 48 33340668
Mobile:+55 48 99682020
[att1.html]

Hinkmond Wong

Bruno Ghisi wrote:
> Hello,
>
> I was wondering if anybody could provide more resources around porting
> phoneMe Advanced to iPhone. I could not attend to Hinkmond's JavaOne
> session called "How to Port phoneMEâ„¢ Advanced Software to Google
> Android, iPhone, OpenMoko, LiMO, and More", that presentation could be
> a nice start as well...

Hi Bruno,

It was nice to meet you at this year's JavaOne.

Please keep watching the JavaOne Online Web site for when they post the
2008 technical sessions so that you can see my presentation over the Web:

http://developers.sun.com/learning/javaoneonline
(The tech session presentations should appear there in the next several
weeks)

In the meantime, we can start a pMEA forum thread and put instructions
onto a Wiki site if you'd like. Let me know if you have specific
questions about porting pMEA to the iPhone.

Thanks,

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

brunogh
Offline
Joined: 2006-04-23

Hello Hinkmond,

thanks! A wiki page with first instructions will be awesome. I have started my tests with Java/iPhone, posted at http://weblogs.java.net/blog/brunogh/archive/2008/05/java_on_iphone.html

Cheers,
Bruno

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello Hinkmond,
>
> thanks! A wiki page with first instructions will be awesome. I have started my tests with Java/iPhone, posted at http://weblogs.java.net/blog/brunogh/archive/2008/05/java_on_iphone.html
>

Hi Bruno,

Looks good so far! Nice work. ;-)

I've starting a TWiki page at:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...

Please let me know if you are able to do step #0-3 (steps I've added so
far). You have already performed step #2, so you can skip that. ;-)

Once you have completed up to step #3, let me know and I will send more
instructions that you can help test out before I transfer to the TWiki page.

Thanks,

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

up2dream
Offline
Joined: 2008-03-18

Hinkmond,

it seems I got a problem... iPhone SDK is only for Mac OS X and I do not have it! I was trying to look a way to make it work on Linux or Windows, but it seems there is no one right now due to XCode and other stuff... :( Any chances to skip step 1? I cannot believe my iPhone will keep sucking.

Update: Sorry, I was making some tests with a friend account in a java.net project and forgot to loggof.

Cheers,
Bruno Ghisi

Message was edited by: brunogh

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hinkmond,
>
> it seems I got a problem... iPhone SDK is only for Mac OS X and I do
> not have it! I was trying to look a way to make it work on Linux or
> Windows, but it seems there is no one right now due to XCode and
> other stuff... :( Any chances to skip step 1? I cannot believe my
> iPhone will keep sucking.

Hi Bruno,

That's a bummer. Sorry, that's how Apple does things: ties their
software to their hardware.

There's no way I know of to skip step #1. The cheapest Mac I know that
can run the iPhone SDK is the Mac Mini for US$570 after rebate.

http://www.amazon.com/dp/B0006HU49Y?smid=ATVPDKIKX0DER&tag=cnet-pc-20&li...

If that's still a problem, you might want to check your local library,
Internet cafe, or Mac Users Group to see if there are any Macs available
for public use locally.

Sorry, that's the best I know to suggest. :-(

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

brunogh
Offline
Joined: 2006-04-23

Thanks Hinkmond. Maybe I will try to install Mac OS X in a PC as well. This stuff will make some delays in the experiments, but I am going to figure it out.

Cheers,
Bruno

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Thanks Hinkmond. Maybe I will try to install Mac OS X in a PC as well. This stuff will make some delays in the experiments, but I am going to figure it out.
>

Hi Bruno,

Sounds good. I've seen some promising discussions on the
insanelymac.com forum groups:

http://forum.insanelymac.com/index.php?showforum=136

Hope that works for you. Let us know how that works out.

Thanks,

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net