1

I am new on android, but i want to try to write an app for my friend. He is asking for something, who would let him record a sequence of hyperlinks and repeat it. So far i did a webview program, which shows desired web page ( actually it's wap game ) and i know how to do almost everything, except one thing. So, i want to ask if it is possible to designate what for should program search in webview and if app find it - press on it, for example:

Webview shows a page of game with list of possible actions : Cut tree, Dig and etc.

so, I want to know how i can tell program to press on "Cut tree" and then it should automaticly do it and go to pressed webpage.

I hope that someone understood me.

P.S. sorry for my bad English.

Dalikas
  • 17
  • 1
  • 6

1 Answers1

0

Your webview should allow for standard in-page loading of links. If you need data from the link passed to the app, then you need a javascript bridge:

Android WebView Java-Javascript bridge

Community
  • 1
  • 1
Jim
  • 10,172
  • 1
  • 27
  • 36
  • Thanks. All links loads in webview and i need only open it. I don't care about data in opened page. I only need what app would be able to find link and automatically open it. So i think i will go to find something about first option :) – Dalikas Jan 29 '14 at 09:28