how to create browser for android? [closed]
开发者_C百科
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this questiondear, i am a student of bca. i have to do one project in my last semester. so i decided to create web browser which run on android o.s. but i am totally for this application. so, can any one help me for that. i already installed all required tools like jdk, android sdk 3.0, eclipse. but now i have no idea from where i have to start the developing browser. so please help me... i have only 2 months for doing this project. so is this possible in 2 months or not?
It depends on what you mean by develop a browser...
Developing a browser + rendering engine from scratch is a hell lot of work, but you could easily create a browser based on Androids WebView using a WebViewClient and create a new user experience by changing the way the user interacts with the browser.
The Webview has all kinds of hooks to intercept user interaction with the browser, so you can easily extend it. For example you could let the user flip through pages (like google fastflip), experiment with 3D by mapping the rendered webpage into OpenGL space (like sphere browser) etc.
As a starting point have a look at Aleksander Kmetec's blog and his Mosembro Project, that extends the Android browser by adding microformat support.
Sounds like a really big project and therefore you can't just start from scratch and write it down. You have to make a plan on how you want to implement all parts, write down class diagrams etc. If you study informatics you should have heard of these things in previous semesters.
First you should ask yourself if that project is feasible, as you can see from the comments most people agree that you should not underestimate this task!
I really suggest you to understand the extent of this task, here is the source code of Androids browser to give you an impression of it's complexity.
For creating complete web browser in Android you use WebView
.
Simple snap of code:
WebView wv = (WebView)findViewById(R.id.webview1);
wv = (WebView) findViewById(R.id.webView1);
wv.loadUrl("http://www.apsmind.com");
for complete code reference visit: http://androidshivendra.blogspot.in/2013/12/android-browser.html
Making a very basic browser could be done in a day or 2 for someone with experience in Android development as just like others have stated WebView provides pretty much all you need to display a Web page. There are a few settings around JavaScript and other features to check and then after marking a basic text box for the url and a go button that is pretty much a basic Web browser done.
The real work comes in all the advanced settings. Making a browser that competes with the big guys maybe a little difficult for one person in a couple of months, but making something of your own that works is very possible. Give it a go!
精彩评论