Kunk Fuj Panda
Kunk Fuj Panda

Reputation: 11

PhoneGap use java class on android and iOS

Can I use the same java class in phonegap for Android and iOS ?

e.g. This example will be work on iOS too ?

Upvotes: 0

Views: 465

Answers (2)

user1720500
user1720500

Reputation: 119

Now java can be used on iOS, please check this link. Hope the samples will answer your question.

Upvotes: 0

Thilo
Thilo

Reputation: 262494

You cannot use Java on iOS at all.

You'd have to create Objective-C code to do the same thing as your Java class, and if they provide the same interface to Phonegap, at least the Javascript code can be shared.

Upvotes: 1

Related Questions