Android Developer:: Opening external link within the app - android

Happy Friday to all.
I was wondering if there is a way to open an external link within the app itself? I currently can execute a link, but it opens it in a browser. I would like to open a site or two within the app.
Can this be done?
Oh, please tell me it can be, because this is one of the reasons why I am creating my app in Eclipse instead of Dreamweaver...html can only limit so much stuff!
please and thank you help me figure this out.
Cady

Yes, you need to use a WebView and load the html into it yourself.
Note that by default a WebView only displays html content. The plugins and javascript are off, and it does not handle link clicks, or forward / backward navigation
http://developer.android.com/reference/android/webkit/WebView.html

You can use a WebView to open HTML pages inside your app. There's a nice little tutorial in the docs showing the use of its basic features.

You can use WebView, put it in your layout and load URLs to show websites inside your app.

Yes it can be done, you can use a WebView to load the content inside your activity.

Related

can I change the URL in a browser previously opened via my application

I have a code in my application to open a browser.
Sometimes I need to tell the browser to load another URL after a few seconds.
Is there a way to make the first browser to change the URL or I need to open a new one always?
Thanks,
Simon
The best way to achieve this would probably be to embed a WebView in your application, and then you can control it directly. Otherwise, as far as I know, you can't control a browser opened up via Intents. I could be wrong about that, but embedding a WebView and controlling it directly seems much more straightforward.
The WebView class reference:
http://developer.android.com/reference/android/webkit/WebView.html
Some notes on the WebView (less pertinent to what you're doing [this article pertains to writing HTML/native hybrid apps], but may have some useful information):
http://developer.android.com/guide/webapps/webview.html

slideshare in android app

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

Icon that when clicked would launch to my website

I would think this would be one of the simpler and popular app questions on the net, but I have been unable to find any info…
I would like to create an icon that when clicked would launch to my website which has been modified for mobile devices. I would like to make this available on the android market.
Does anyone know how to do this or know where I can find a step by step guide?
Matt
Have you thought of using the WebView control? Then your UI can be a local HTML with an image button and you configure it with an onclick event that refresh the WebView control with your target website?

How to implement a complete HTML page on Android without using 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.

Use a HTML page as Live Wallpaper in Android

Can I use a HTML page as a Live Wallpaper?
Or is it possible to capture a web page as an image and set it as a wallpaper?
Any help would be greatly appreciated.
I am the author of the mentioned WebLiveWallpaper. It can use both techniques: Showing a web snapshot from snapr, webthumb, ... but normally it is really a WebView which has disadvantages but also some advantages. A web snapshot/thumb image cannot update animated images fast enough. But it avoids the problems a 'hacked' WebView in a live wallpaper has (like missing images, huge memory footprint).
I think what you want is using one of these:
http://www.websnapr.com/
http://webthumb.bluga.net/home
http://snapr.seekxl.de
They all have more and better documentation on their sites than I can put in here. Mostly it is simply a picture from their url with your key and some settings.
There is an app on the market called WebLiveWallpaper that does this. There is an option in it for how often to refresh the view of the web page, which leads me to believe that it is simply taking a snapsnot of the page and presenting it as an image some how. Unfortunately I wouldn't know how to go about setting that up. But I think you're definitely going to want to go the image route.
Edit Here are some links that may help you out:
Open source Java library to produce webpage thumbnails server-side
http://www.acasystems.com/en/web-thumb-activex/
http://www.fileguru.com/apps/convert_html_to_image_in_java
I have not used any of these components before so I'm not positive about them but they seem like they can do what your looking for .

Categories

Resources