This is a migrated thread and some comments may be shown as answers.

write as webview

2 Answers 100 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Saghi
Top achievements
Rank 1
Saghi asked on 20 Feb 2016, 10:24 PM

Hi,
I want to write an android app in appbuilder VS extension (javascript) with these features:

- The app works just like a webview
- At the startup, app will open a url then users will work with the webpages
- app should detect each page's location (url string)
- app should call a javascript function of webpages after fully loaded
- app should check internet connectivity on location changing
- app should able to download pdf when users click on the links

Simplly, I want to have a webview and have most controls on it.

It is very appreciated to advise me with a sample code for understanding how to achieve to these goals.

 

Thank yo in advance


2 Answers, 1 is accepted

Sort by
0
Saghi
Top achievements
Rank 1
answered on 21 Feb 2016, 08:38 PM

 

I am still waiting for your help.

0
Anton Dobrev
Telerik team
answered on 24 Feb 2016, 02:27 PM
Hello Saghi,

Thanks for posting to the Telerik Developer Forums.

As to your questions.

- The app works just like a webview

Telerik Platform allows you to build hybrid mobile applications based on the Apache Cordova framework. This kind of applications are already implemented as a browser-based WebView within the native mobile platform.

Please, see below for more information on your use case.

- At the startup, app will open a url then users will work with the webpages

You can use the InAppBrowser sample to open an external URL

- app should detect each page's location (url string)

You can use window.location 

- app should call a javascript function of webpages after fully loaded

I am afraid that  this requirement is unclear. Can you elaborate? Usually, you app will consist of JavaScript code. You can also check this option of the InAppBrowser plugin.

- app should check internet connectivity on location changing

Yes, you can use the events of the InAppBrowser and check in them the network connectivity. You can refer to this sample about how to check the connection.

- app should able to download pdf when users click on the links


This is also listed in the InAppBrowser sample.

I hope that these answer your questions.

Regards,
Anton Dobrev
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
HTML5, CSS, JavaScript
Asked by
Saghi
Top achievements
Rank 1
Answers by
Saghi
Top achievements
Rank 1
Anton Dobrev
Telerik team
Share this question
or