Adding button to list 'Go to', 'Bookmarks', 'Windows', etc. with WebView

by ruben » Fri, 20 Jun 2008 10:23:51 GMT


Sponsored Links
 Hi all,

Here is my question: How can I easily modify this code to add 'my
button' at android web browser menu?

        super.onCreate(icicle);
        WebView w = new WebView(this);
        url = "www.test.com";
        w.loadUrl(url);
        setContentView(w);

Thanks,
Ruben

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. ViewGroup with round angle

Hi,

I like to have a ViewGroup (like LinearLayout) that has rounded
angles. The angle can cover
content of the ViewGroup.

Any suggestion?

-- 
 _| _.  o _| _
(_| (_| \/ | (_| (/_

-- 

2. how to capture more than 2 Views?

i am a beginner study Android.

what i wannt know is ...
how to capture more than 2 Views?

i mean
i got a layer view, camera view and surface view ...then have to
capture in a one jpg file.
it's just add together as follows,

cameraView cameraView = new cameraView(this);
setContentView(mGLSurfaceView);
addContentView(cameraView, new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));
addContentView(maker, new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));



but how can make it one jpg file.
i try it but filed my code is like that..

(v is layout)
if (v == caputrButton) {
                externalDir = new
File(Environment.getExternalStorageDirectory().getAbsolutePath(),
"crownJewels");
                        if (externalDir.exists()) {
                                externalDir.mkdir();
                        } else {
                                externalDir.mkdir();
                        }
                        v.getRootView().setDrawingCacheEnabled(true); //
                        v.getRootView().buildDrawingCache(); //
                        Bitmap srcimg = v.getRootView().getDrawingCache();
                        String CrownDir = externalDir.toString() + 
File.separator;
                        long dateTime = new java.util.Date().getTime();
                        SimpleDateFormat sdfNow = new 
SimpleDateFormat("yyyyMMddHHmmss");
                        String strNow = sdfNow.format(new Date(dateTime));
                      temFile = new File(CrownDir + strNow + ".jpg");
                        try {
                                FileOutputStream out = new 
FileOutputStream(temFile.getPath());
                             }
......of course  i just capture layout view...


this is not mime but this example is  exactly the same what i want to
know..

please Refer to the following sites ..... http://www.androidpub.com/452385


top one is just capture like my source. lines are black on blue
screen...
also, following one is capture using DDMS... can see through camera
view...
i'd like to capture like DDMS..

do you have any idea? it's really urgent  help me..

-- 

3. Custom Account Preferences using AccountManager / AccountAuthenticators

4. "WPA2-PEAPv0-MSCHAPv2" support in "android.net.wifi" package

5. how to upgrade android 1.5 to 2.1

6. user application logi

7. Android building for ARMV6