WebView Example, Pimp Up Your App!

IanMc

Well-Known Member
Licensed User
Longtime User
Trying to get to grips with the WebView, here's my first creation.

What do you think?

Would you like to know how I did it in under an hour?

See the attached WebView project.
 

Attachments

  • WebView.zip
    171.7 KB · Views: 1,894

IanMc

Well-Known Member
Licensed User
Longtime User
Well I've posted the project. But ok, hold on ....


Here' you go....
 

Attachments

  • WebView.apk
    266.2 KB · Views: 716
Upvote 0

susu

Well-Known Member
Licensed User
Longtime User
Just tested it but I don't know what is the purpose?
 
Upvote 0

IanMc

Well-Known Member
Licensed User
Longtime User
Did it work for you?

Then the purposes that I intend to use it for are

Help Pages
Contact Pages
Instructions Pages
Advertising Pages

I'm sure others can think of more uses.

Oh, you could also use it to have an in-app web browser

:)
 
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User
Well I've posted the project. But ok, hold on ....


Here' you go....

Sorry to have inconvenienced you, LOL. I browse the forum primarily on my phone thus can't compile!

Anyways, it looks pretty cool. Are the pages hosted on a server or local?
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Thanks, and it's more inappropriate to also post it on the share Your Creations
forum with some screen shot

BTW: I think you mean Pump-up your App!!
 
Last edited:
Upvote 0

IanMc

Well-Known Member
Licensed User
Longtime User
Thanks, and it's more inappropriate to also post it on the share Your Creations
forum with some screen shot

Sorry, I don't understand this, could you clarify please?
 
Upvote 0

Beja

Expert
Licensed User
Longtime User

Attachments

  • creation.JPG
    creation.JPG
    79.7 KB · Views: 922
Upvote 0

IanMc

Well-Known Member
Licensed User
Longtime User
Ah, ok, well it's not a creation, simply a demo of the WebView object.

I wished to demo how the WebView object can be used to create professional looking pages for documentation.

I was going to go with something like the CusomListView then try to colour some of the text etc. but using a WebView I can insert pictures, styles etc. and so much more.

One of the screens I intend to make for my app will be a 'Nag' screen which will enable the users to download a fully functional version of the app but they will on occasion be presented with this 'Nag' screen to remind them that this is the free trial version and hopefully convince them that purchasing the app will encourage further development and benefit everyone.

After my experiments with WebView today I realise that I can use this and I can stick an animated gif of a horses head moving and I can play a horse 'whinny' sound each time the Nag screen shows :)

(A Nag is slang for an old horse)

P.S. No-one has asked how I did this yet :) It's really easy but perhaps no-one is interested, oh well, shame :)

As they say, you can lead a horse to water ... (pun intended) :)
 
Last edited:
Upvote 0

Beja

Expert
Licensed User
Longtime User
After going to the linked pages of Facebook or Twitter, then your App provides
no way to go back to home page.
I would suggest to you that you make the Webview smaller and put a button a
that can be seen from anywhere and that it takes you back to homepage.

The app interface looks good and the colors are comfortable to the eye.
 
Upvote 0

IanMc

Well-Known Member
Licensed User
Longtime User
That's a fair observation. Also you'll note that as the demo only has one activity then pressing the back button takes you out of the app. When I use it in my app for documentation it won't be the first activity so pressing back will take the user back to the app and I won't have any external links so I won't need the Internet permission.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
IanMc,

thanks for the tip of publishing or advertising a book this way.. agree with you
it is very efficient and low-cost method for someone who is on budget like
myself.
Not revealing a secret in telling you that I am now mid-way in writing a book
about my long experience in China (about 7 years), and will try your method.
 
Upvote 0

britec

New Member
Licensed User
Longtime User
I'm also just getting the hang of B4A. I tried running this project and when I debug i get the message:
Compiling code. 0.01
Compiling layouts code. 0.01
Generating R file. 0.28
Compiling generated Java code. Error
javac 1.7.0_10
javac: file not found: src\b4a\example\designerscripts\*.java
Usage: javac <options> <source files>
use -help for a list of possible options
Can anyone tell me what this means or how to fix it?
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
I'm also just getting the hang of B4A. I tried running this project and when I debug i get the message:
Compiling code. 0.01
Compiling layouts code. 0.01
Generating R file. 0.28
Compiling generated Java code. Error
javac 1.7.0_10
javac: file not found: src\b4a\example\designerscripts\*.java
Usage: javac <options> <source files>
use -help for a list of possible options
Can anyone tell me what this means or how to fix it?

You have to install JDK 7 Update 9, update 10 has a bug.
 
Upvote 0
Top