Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6114989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:02:23+00:00 2026-05-23T15:02:23+00:00

I used Google chart api to generate the chart using webview in android. Now

  • 0

I used Google chart api to generate the chart using webview in android. Now my next requirement is to save that image into some local storage and to send the image via email and mms.please help me in doing that.

thanks
nishant

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:02:23+00:00Added an answer on May 23, 2026 at 3:02 pm
    WebView w = new WebView(this);
     //Loads the url
     w.loadUrl("http://www.yahoo.com";);
     //After loading completely, take its picture
     Picture picture = w.capturePicture();
     //Create a new canvas
     Canvas mCanvas = new Canvas();
     //Draw the Picture into the Canvas
     picture.draw(mCanvas);
     //Create a Bitmap
     Bitmap sreenshot = Bitmap.createBitmap(picture.getWidth(),
     picture.getHeight(),Config.ARGB_8888);
     //copy the content fron Canvas to Bitmap
     mCanvas.drawBitmap(mBitmapScreenshot, 0, 0, null);
    
     //Save the Bitmap to local filesystem
     if(sreenshot != null) {
            ByteArrayOutputStream mByteArrayOpStream = new
     ByteArrayOutputStream();
             screenshot.compress(Bitmap.CompressFormat.JPEG, 90,
     mByteArrayOpStream);
             try {
                     fos = openFileOutput("yahoo.jpg",
     MODE_WORLD_WRITEABLE);
                     fos.write(mByteArrayOpStream.toByteArray());
                     fos.close();
             } catch (FileNotFoundException e) {
                     e.printStackTrace();
             } catch (IOException e) {
                     e.printStackTrace();
             }
     }
    

    And for sending the images thro email u can go thru this question
    and for MMS

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm updating an older data visualization module which used the Google Image Chart API
This question is for anyone that used Google Analytic API on a commercial website.
I'm trying to create a chart using the Google Visualization API, with PHP &
I really like the dashboard line chart which is used in google analytics, Which
If you've used Google Wave or iGoogle you have probably seen that you can
Has anybody used TreeMultimap in Google Collections? I understand that with a TreeMultimap, its
I am having issue with Google line chart API. When I reload the div,
I am using the Google Checkout API to code a simple store. I have
I am using a Google Line Chart to graph values pulled from a database
We have used Google form, Wufoo form to try to securely capture the info

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.