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 8101833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:05:09+00:00 2026-06-05T23:05:09+00:00

I want to call a method say success(message) of javascript from android activity. I

  • 0

I want to call a method say success(message) of javascript from android activity. I do this as follows:

webView.loadUrl(javascript:success(message));

But this message = JSON object from the http://weather.yahooapis.com/forecastjson?w=12844782&u=c response. So how do i make the right url (message) in android?

Thanks
Sneha

  • 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-06-05T23:05:10+00:00Added an answer on June 5, 2026 at 11:05 pm
    1. you should read all content from specified url (http://weather.yahooapis.com/forecastjson?w=12844782&u=c). do it using HttpClient or URL connection. let me know if you don’t know how to do this. save the content to some var (say message)
    2. then you should invoke the following: webView.loadUrl(“javascript:success(” + message + “)”);

    almost the same as you wrote 🙂

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

Sidebar

Related Questions

Say, I want to call a UIActionSheet from a helper class method. I want
Say I have a function in JS function playerJob(job){} I call this method from
I want to call a method which returns two values basically lets say my
I want to call a certain method in my UIView code say every 5
Didn't know how else to put this. Say I have a JavaScript method that
How do I trigger a delay, let's say I want to call a method
In C# when I want to call a static method of a class from
I have a requirement: I want to call method every day at any particular
I want to call a method of my class inside a lambda expression: void
I want to call a method, pass it the length and have it generate

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.