Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old August 27th, 2012, 02:51 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Aug 2012
Location: Denmark
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Connection JAVA and HTML/CSS/AS

Hey,

I need some help.
Im trying to make my first real app.
My problem is that I made the style in Dreamweaver 5.5, where I used HTML/CSS and then I made some buttons in Eclipse where I used JAVA.
The buttons are used to open some games apps Im making to. But I want to be able to open the games through the app I made in Dreamweaver and not as a normal game with a icon on the telephone.
All of that is working now with the use of intents in JAVA, but I have no idear how to combine the to programs into 1 app.
Think I have to make some kind of webintent where I use JavaScribt to combine the app but dont know how to.

Hope you understand what I mean as I'm not very good at writing in English. But in shot I want to take the buttons and its metheds I made in Eclipse and add them to my design from Dreamweaver.

Hope there are someone who can help me as I've been stuck here for a while now

Thanks

Morten

Advertisements
Hartaine is offline  
Reply With Quote
sponsored links
Old August 27th, 2012, 03:33 AM   #2 (permalink)
Junior Member
 
Join Date: May 2012
Location: Ventimiglia, Italy
Posts: 32
 
Device(s): Chinese 5" dual-SIM, Motorola Atrix 4G
Carrier: Not Provided

Thanks: 0
Thanked 5 Times in 5 Posts
Default

I know it's possible to get Java and Javascript to communicate with each other. I saw it in a book somewhere, which I've lent to someone but I can't remember who. I believe some kind of service may be involved.
Tramontana is offline  
Reply With Quote
Old August 28th, 2012, 05:19 AM   #3 (permalink)
Junior Member
 
Join Date: Aug 2012
Location: Athens, Greece
Posts: 42
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 7 Times in 7 Posts
Default

Two way communication between Java and Javascript is possible in the WebView. You can achieve it with the aid of addJavascriptInterface

See Android Developers Blog: Using WebViews for an example.
Kostas G is offline  
Reply With Quote
Old August 29th, 2012, 02:04 AM   #4 (permalink)
New Member
Thread Author (OP)
 
Join Date: Aug 2012
Location: Denmark
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Kostas, I will have a look at it.
Hartaine is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:03 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.