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.
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
Related
I open my site through a webview, inside the page there are links with the tag <_blank>, but the application treats them as if they were not inside the webview (if it wants them to be pdf links).
I tried to check around but I can't find anything that suits me.
I saw that I can use the BrowserLaunchMode function, but I go back to the starting point because I don't know how to implement it in the webview and above all I don't know how to make the app recognize that I'm clicking a link.
Could someone please tell me if there is a way to check when I touch the webview if I am clicking a link please?
First of all, let me emphasize that we are not looking for a specific code snippets for a solution. We believe that this problem of ours started with some design flaws. So we are looking for a general direction with which we can start looking for specific methods to solve this issue.
We have an app that has an notice board where admins and users can create threads.
However, we made a thread where people can download our excel template. We posted our link to this excel file like so:
(I apologize for non-English thread as we are located in Korea)
So in this thread page, the image in the middle is the link.
When you tap(click) on this image, a more detailed download page shows up.
When you press the download button, nothing happens. It is supposed to automatically lead to downloading process but it does not.
I suspect that the problem resides in our application structure where whatever a user does in the thread stays in the webview and webview only. Is there any way to make this download take place? The only workaround we found is to press and hold the link button until some options show up and press "open in the browser". However, this is quite inconvenient for normal users and we need to fix this.
Thanks a lot!
I am new to Android and I am studying the possibility of including/embedding a slideshare slideshow (among other contents) into an Android app.
The idea would be receiving from the user the URL of the resource, such as:
"http://es.slideshare.net/slideshow/embed_code/16060200?rel=0"
And in certain section of the app display the slideshow mixed with other contents (text or whatever...)
I have been searching and the only option I saw (I insist I am really new to this...) would be making a webview for that activity... but... Is a webview fullscreen only? Can it be just part of an activty?
I hope I got to make myself understood... otherwise, let's try to clear it out and ask me whatever you may need to understand the question ;)
Thank you very much in advance,
Miguel
PS: I can accept other systems instead of slideshare, what i want is to embed an slideshow
Sounds like what you need is a WebView, just like you said. They can be non-fullscreen as well. Not sure how much this helps, but here's a tutorial on WebView's from the dev site:
Building Web Apps in WebView
I have a string which consumes the html code of a form and I want to show that form in my app and it should also work further as on submit it should move forward to next page.
I used WebView, it just shows the page in a static way. It don't support buttons and DatePicker, so I DONT WANT WEBVIEW.
First off, WebView does support buttons, and you could support a DatePicker either by using an HTML/JS one or by doing something fancy to route a request to the Java side of things. I really suspect your insistence on not using WebView is going to prove unproductive.
That said, sure you should show your HTML in your app without using WebView... you could write your own web control or take another (Firefox is open source as is WebKit on which WebView is based, in fact so is WebView itself for that matter). That's going to be a heck of a lot of work though.
I want to us an Android-powered Pad as an information terminal for my customers.
The only thing it has to to is to show a HTML5 Webpage.
Therefore,
1. it should not be posiible to show another website (only the local one), should be no problem
it should be only possible to leave the app with a password (how?)
and all buttons should be disabled (that´s hard).
I found out how to set the target for the home button, but maybe there is an existing solution.
Thanks
Christian
I assume you understand the easiest way to do this is to develop an Android native application to show your webpage. This is done by using a WebView, but the support of HTML5 depends on the platform, so if you use any video or audio, you may need some hooks.
Trhough a WebView, you can filter which urls can be opened or not.
And well, I don't think there are many problems on exiting only when a password is entered.
Regarding to number 2, AFAIK, you can let your Activity ("window" of the application) to handle most of keys, but obviously you can't map the power key.
But I have to confess, when you develop an application, you always find some issues... so probably is not that easy as I wrote in these lines... Good luck!