HTML5 to native Android Java compiler

Chat about anything not covered in these forums, but keep it civil!

Post » Mon Oct 01, 2012 1:50 pm

Hi all,

I was away from construct for a while creating a proof of concept html5 to java wrapper / compiler and I somewhat succeeded with a published on android market app:

https://play.google.com/store/apps/details?id=com.sugart.wallpapers

it still uses much "hacks" to make most of the work in native java, but i managed to make a basic template to compile:

html files to activities (with lots of manual work)
global js file as a global class
some js functions to native java functions (ie. alert to toast)
some basic html elements to views (img to imageview, button to buttonview, p to textview, etc)

as I said before it still uses native java for facebook sdk, setting wallpapers, accessing gallery, admob ads, in app purchases etc. but i got the basics running and it was really fun to create this app and (as a webdeveloper) to learn java for android this way, so I would be more than happy if you test it and let me know what you think?

cheers!ranma2012-10-01 13:50:47
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Mon Oct 01, 2012 2:59 pm

Really usefull and interesting
but for me appear very complicated
B
60
S
9
G
7
Posts: 176
Reputation: 8,794

Post » Wed Oct 03, 2012 8:15 pm

I don't understand why is supposed to be converted from HTML5 to Java.

I know Java helps to set wallpaper, use facebook sdk, accesing gallery, admob and in app payment. HTML5 is a new Java if is completed in 2014
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Thu Oct 04, 2012 12:02 am

1) java is native to android
2) webview is slow

simple as that :)
anyway it was just a proof it can be done and done for fun, not to be used by anyone for any purpose.
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Fri Mar 22, 2013 2:23 pm

@Joannesalfa

Hi have used cocoonjs.

there is a cocoonjs splash screen can I change that screen

B
12
S
2
G
3
Posts: 57
Reputation: 3,439

Post » Fri Mar 22, 2013 10:32 pm

@rob

We can't until CocoonJS releases final version and pay premium services
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Mon Apr 01, 2013 7:04 am

how to add in app billing in c2?
B
12
S
2
G
3
Posts: 57
Reputation: 3,439

Post » Mon Apr 01, 2013 3:34 pm

Closing this thread, the posts are way off topic and the OP is very old. Please start a new thread if the subject you want to discuss is not related.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518


Return to Open Topic

Who is online

Users browsing this forum: DrewMelton and 5 guests