This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

iPhone Vs. Android

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why tug of war?
Why can't we develop portable apps in this JAVA Era
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because there's no Java on the iPhone? (And technically not on the iPhone, either.)

A lot of it has to do with Apple's licensing and app development restrictions.
 
Nageswara Prasad Nakarikanti
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think apple is thinking in it hardware way

I do not it is a good approach or a bad one
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Portable mobile Java applications!
yes good luck with that, just try to do some JME development.
Apple doesn't really differ from MSFT in this issue, to do Windows programs you need Windows OS and the .NET platform and to do iOS applications you need a Mac and C/C++/Obj-C.
Both lock you in.
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since each device has it's its own features, you will need an SDK to take advantages of the device's capabilities. For example, iPhones have accelerometers and compasses. Java alone does not support such a thing, and hence you have to use an SDK, This means that you cannot truly have a portable mobile app (unless of course you create an app using web technologies like HTML5 and JavaScript, and this means that you will not make use of the devices' capabilities).
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nageswara Prasad Nakarikanti wrote:Why can't we develop portable apps in this JAVA Era


Because Apple does not want you to!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simpler explanation is that they already have years of development on Objective-c apis and code and UI widgets that have a better user experience than what you can create today with Java. The reason why the iPhone is successful is because the user experience is better. If they even allowed Java development on the device those apps wouldn't have the same experience, look and feel approach, that to me makes the iPhone stand above Java enabled devices.

Mark
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that says a lot about Java developers too, though; even on the desktop it's tough to find good examples of great Java-based UIs, but there's no technical reason for that.
 
Alaa Nassef
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mark Spritzler wrote:Simpler explanation is that they already have years of development on Objective-c apis and code and UI widgets that have a better user experience than what you can create today with Java. The reason why the iPhone is successful is because the user experience is better. If they even allowed Java development on the device those apps wouldn't have the same experience, look and feel approach, that to me makes the iPhone stand above Java enabled devices.

Mark



I have to disagree here. Android is using Java, and it has great UI and user experience
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Android apps aren't really Java, fragmentation is a better word I think.
Regarding the UI, sure ever one has his own opinion here but Android UI is really ugly and gloomy to my taste and don't let me start talking about the screen sensibility
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Todd wrote:Android apps aren't really Java




 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I mean Android apps are written in Java -the language- but Dalvik VM isn't a JRE to be sure.
Maybe this subject is larger than me but Android is a fragmentation and Google should settle this issue with Oracle.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Todd wrote:I mean Android apps are written in Java -the language- but Dalvik VM isn't a JRE to be sure.
Maybe this subject is larger than me but Android is a fragmentation and Google should settle this issue with Oracle.



This thread isn't really about the dispute between Google and Oracle, so we should keep this thread on track.

With regards to Dalvik VM not being a JRE, it's subtle, but not significantly different. Whether you're running a Swing application or an Android application, both are java byte code executing on a JVM. Android apps are written in Java, compiled to byte code using a Java Development Kit, and executed on a Java Virtual Machine. Android apps are Java.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please correct me if I'm wrong but AFAIK, Android apps don't get compiled to Java bytecode we know (not .class format).
The dex tool translates JVM bytecode into Dalvik bytecode.
But again, I don't do Android development, I might be hugely wrong here.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sort of. Standard class files are generated (by the regular JDK tools, as Gregg mentioned) and then the Android tools convert them to something that can run on the Dalvik VM (which standard Java class files do not).

Personally, I find fault with both statements "Android is Java" and "Android is not Java", so for me it's not a useful discussion to have
 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Todd wrote:Regarding the UI, sure ever one has his own opinion here but Android UI is really ugly and gloomy to my taste and don't let me start talking about the screen sensibility


This should change soon. Google's Android team has decided to cut down on the number of releases they make in a year and concentrate on user experience specifically (think there'll be only one once a year). Whether or not it is as good/polished or even better than iPhone is a different question and perhaps also a matter of taste IMO.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Alaa Nassef wrote:Since each device has it's its own features, you will need an SDK to take advantages of the device's capabilities. For example, iPhones have accelerometers and compasses. Java alone does not support such a thing, and hence you have to use an SDK, This means that you cannot truly have a portable mobile app (unless of course you create an app using web technologies like HTML5 and JavaScript, and this means that you will not make use of the devices' capabilities).






I agree with you, each device has its own features.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic