Connecting to Google

Have had my phone for two years. Never had a problem going to www.google.com. Within the past week whenever I try to go to Google either using an iconed bookmark on my homepage or through Safari on the iPhone the Google main page flashes open and then disappears. Does anyone have a clue as to what's causing this and how to fix it. I did multiple reboots, I reset network settings and updated to the latest version for the phone. No luck

You already posted this question here: http://forums.palm.com/t5/HP-TouchPad-Software-Hardware/Cannot-use-Microsoft-Exchange-account-to-con...

Similar Messages

  • Firefox connects to google-analytics for some sites, and then gets stuck, and I can never get onto the site. How do I prevent Firefox from connecting to google-analytics? I use XP with service pak 3 in English

    Firefox connects to google-analytics for some sites,when i click on links in websites or emails and then gets stuck, and I can never get onto the site. Or opens a new bower behind the one i'm usind that's blank i don't even know it's there untill i close the one i'm using. How do I prevent Firefox from connecting to google-analytics? Or opening a blank bowser behind the one i'm using. I use XP with service pak 3 in English
    == This happened ==
    A few times a week
    == a couple months ago

    I got the same issue.
    I go on a website and all the sudden another window pops up with "results.google-analytics.com" or "search.google-analytics.com". It has often ads for other sites for example. black single dating site
    how can I can I stop that from happening again?
    I didn't download or do anything, just visit websites, that I visit on a regular basis.
    OS: Windows XP
    Firefox Version: 3.6.6

  • How do I use doGoogleSearch to connect to Google API

    Hello all,
    I am trying to do my final year project and I am currently having trouble connecting to the Google API using doGoogleSearch. I dont know how to use http://api.google.com/GoogleSearch.wsdl to fill in the parameters for the doGoogleSearch and then I have to use the http://api.google.com/search/beta2 to connect to Google and perform the test. Any help would be appreciated or code or links
    Thanks in advance rgds,
    Tony
    Here is my code so far...................................
    package tony_buckley_project;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.net.URI;
    import java.net.URLConnection;
    import java.util.*;
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import com.google.soap.search.GoogleSearch;
    import com.google.soap.search.GoogleSearchResult;
    import com.google.soap.search.GoogleSearchFault;
    import com.google.soap.search.GoogleSearchResultElement;
    import com.google.soap.search.*;
    import javax.xml.soap.*;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import org.apache.soap.util.xml.*;
    import org.apache.soap.*;
    import org.apache.soap.rpc.*;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.messaging.URLEndpoint;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.*;
    * <p>Title: Mr. Tony Buckley</p>
    * <p>Description: </p>
    * <p>Copyright: Copyright Tony Buckley (c) 2004</p>
    * <p>Company: Cork Institute of Technology </p>
    * @[email protected]
    * @version 1.0
    public class Applet2 extends Frame implements WindowListener , ActionListener
    TextField searchField;
    Button search , quit;
    Canvas0 canvas;
    public Applet2()
    super();
    //Set up basic window
    setTitle("Tony Buckley Final Year Project");
    setBackground(Color.white);
    setSize(500 , 400);
    addWindowListener(this);
    //Set up area with buttons
    //Search button
    Panel p1 = new Panel();
    p1.setLayout(new FlowLayout());
    searchField = new TextField("" , 15);
    p1.add(searchField);
    search = new Button("Search the web for results...");
    p1.add(search);
    search.addActionListener(this);
    //Quit button
    Panel p2 = new Panel();
    p2.setLayout(new FlowLayout());
    Button quit = new Button("Quit");
    p2.add(quit);
    quit.addActionListener(this);
    //Set up search results area
    Canvas0 canvas = new Canvas0();
    add("Center" , canvas);
    Panel p4 = new Panel();
    p4.setLayout(new GridLayout(2 , 1));
    p4.add(p1);
    p4.add(p2);
    add("South" , p4);
    }//End of constructor method public Applet2()
    public void doGoogleSearch()
    String key;
    String q;
    int start;
    int maxResults;
    boolean filter;
    String restrict;
    boolean safeSearch;
    String lr;
    String ie;
    String oe;
    public static void main(String[] args)
    Applet2 app = new Applet2();
    app.setVisible(true);
    public void actionPerformed(ActionEvent event)
    //Deals with "Quit" button
    if(event.getSource() == quit)
    dispose();
    System.exit(0);
    else if(event.getSource() == search)
    /* try
    String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
    if(suggestion == null)
    System.out.println("There is no spelling suggestion in the database");
    else
    System.out.println(suggestion);
    int startResult = 100;
    search_internet.setStartResult(startResult);
    int maxResult = 5;
    search_internet.setMaxResults(maxResult);
    GoogleSearchResult result_search_internet = search_internet.doSearch();
    GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
    int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
    int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
    for(int i = startIndex ; i <= endIndex; i ++)
    GoogleSearchResultElement resultElement = resultElements[(i)];
    String title = resultElement.getTitle();
    String URL = resultElement.getURL();
    System.out.println(title);
    System.out.println(URL);
    System.out.println("");
    System.out.println("Start Index = " + result_search_internet.getStartIndex());
    System.out.println("End Index = " + result_search_internet.getEndIndex());
    System.out.println(result_search_internet.toString());
    int numResults = result_search_internet.getEstimatedTotalResultsCount();
    if(result_search_internet.getEstimateIsExact())
    System.out.println("Number of results: " +numResults);
    else
    System.out.println("Estimated number of results: " +numResults);
    //catch(GoogleSearchFault gsf)
    // System.out.println("Google Search Fault: " +gsf.getMessage());
    try
    String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
    String wsdl = "http://api.google.com/GoogleSearch.wsdl";
    String url = "http://api.google.com/search/beta2";
    String ns1 = "urn:GoogleSearch";
    String searchTerm;
    searchTerm = "science fiction";
    String spellingRequest = searchTerm;
    //First create the connection
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnFactory.createConnection();
    //Create the actual message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
    //Create objects for the message parts
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body = envelope.getBody();
    //Populate the message
    SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
    GoogleSearch search = new GoogleSearch();
    search.setKey(myKey);
    search.setQueryString(searchTerm);
    //Save the message
    message.saveChanges();
    //Send the message and get a reply
    //Set the destination
    URLEndpoint destination = new URLEndpoint(url);
    //Send the message
    SOAPMessage reply = connection.call(message, destination);
    SOAPPart sp = reply.getSOAPPart();
    SOAPEnvelope se = sp.getEnvelope();
    SOAPBody sb = se.getBody();
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    Source sourceContent = reply.getSOAPPart().getContent();
    StreamResult result = new StreamResult(System.out);
    transformer.transform(sourceContent, result);
    //Close the connection
    connection.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    }//End of method actionPerformed
    public void windowClosing(WindowEvent event)
    //Deals with the window closing
    dispose();
    System.exit(0);
    }//End of method windowClosing
    public void windowOpened(WindowEvent event)
    public void windowIconified(WindowEvent event)
    public void windowDeiconified(WindowEvent event)
    public void windowClosed(WindowEvent event)
    public void windowActivated(WindowEvent event)
    public void windowDeactivated(WindowEvent event)
    }//End of class Applet2
    class Canvas0 extends Canvas
    public Canvas0()
    super();
    public void paint(Graphics g)
    Dimension d = getSize();
    Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
    Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
    FontMetrics fm1 = g.getFontMetrics(f1);
    FontMetrics fm2 = g.getFontMetrics(f2);
    String s1 = "Hello , ";
    String s2 = "World";
    int w1 =fm1.stringWidth(s1);
    int w2 =fm1.stringWidth(s2);
    g.setColor(Color.GREEN);

    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.net.URI;
    import java.net.URLConnection;
    import java.util.*;
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import com.google.soap.search.GoogleSearch;
    import com.google.soap.search.GoogleSearchResult;
    import com.google.soap.search.GoogleSearchFault;
    import com.google.soap.search.GoogleSearchResultElement;
    import com.google.soap.search.*;
    import javax.xml.soap.*;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import org.apache.soap.util.xml.*;
    import org.apache.soap.*;
    import org.apache.soap.rpc.*;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.messaging.URLEndpoint;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.*;
    Title: Mr. Tony Buckley
    Description:
    Copyright: Copyright Tony Buckley (c) 2004
    Company: Cork Institute of Technology
    * @[email protected]
    http://beingaplayer.x314.co.uk
    * @version 1.0
    public class Applet2 extends Frame implements WindowListener , ActionListener
    TextField searchField;
    Button search , quit;
    Canvas0 canvas;
    public Applet2()
    super();
    //Set up basic window
    setTitle("Tony Buckley Final Year Project");
    setBackground(Color.white);
    setSize(500 , 400);
    addWindowListener(this);
    //Set up area with buttons
    //Search button
    Panel p1 = new Panel();
    p1.setLayout(new FlowLayout());
    searchField = new TextField("" , 15);
    p1.add(searchField);
    search = new Button("Search the web for results...");
    p1.add(search);
    search.addActionListener(this);
    //Quit button
    Panel p2 = new Panel();
    p2.setLayout(new FlowLayout());
    Button quit = new Button("Quit");
    p2.add(quit);
    quit.addActionListener(this);
    //Set up search results area
    Canvas0 canvas = new Canvas0();
    add("Center" , canvas);
    Panel p4 = new Panel();
    p4.setLayout(new GridLayout(2 , 1));
    p4.add(p1);
    p4.add(p2);
    add("South" , p4);
    }//End of constructor method public Applet2()
    public void doGoogleSearch()
    String key;
    String q;
    int start;
    int maxResults;
    boolean filter;
    String restrict;
    boolean safeSearch;
    String lr;
    String ie;
    String oe;
    public static void main(String[] args)
    Applet2 app = new Applet2();
    app.setVisible(true);
    public void actionPerformed(ActionEvent event)
    //Deals with "Quit" button
    if(event.getSource() == quit)
    dispose();
    System.exit(0);
    else if(event.getSource() == search)
    /* try
    String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
    if(suggestion == null)
    System.out.println("There is no spelling suggestion in the database");
    else
    System.out.println(suggestion);
    int startResult = 100;
    search_internet.setStartResult(startResult);
    int maxResult = 5;
    search_internet.setMaxResults(maxResult);
    GoogleSearchResult result_search_internet = search_internet.doSearch();
    GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
    int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
    int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
    for(int i = startIndex ; i <= endIndex; i ++)
    GoogleSearchResultElement resultElement = resultElements[(i)];
    String title = resultElement.getTitle();
    String URL = resultElement.getURL();
    System.out.println(title);
    System.out.println(URL);
    System.out.println("");
    System.out.println("Start Index = " + result_search_internet.getStartIndex());
    System.out.println("End Index = " + result_search_internet.getEndIndex());
    System.out.println(result_search_internet.toString());
    int numResults = result_search_internet.getEstimatedTotalResultsCount();
    if(result_search_internet.getEstimateIsExact())
    System.out.println("Number of results: " +numResults);
    else
    System.out.println("Estimated number of results: " +numResults);
    //catch(GoogleSearchFault gsf)
    // System.out.println("Google Search Fault: " +gsf.getMessage());
    try
    String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
    String wsdl = "http://api.google.com/GoogleSearch.wsdl";
    String url = "http://api.google.com/search/beta2";
    String ns1 = "urn:GoogleSearch";
    String searchTerm;
    searchTerm = "science fiction";
    String spellingRequest = searchTerm;
    //First create the connection
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnFactory.createConnection();
    //Create the actual message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
    //Create objects for the message parts
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body = envelope.getBody();
    //Populate the message
    SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
    GoogleSearch search = new GoogleSearch();
    search.setKey(myKey);
    search.setQueryString(searchTerm);
    //Save the message
    message.saveChanges();
    //Send the message and get a reply
    //Set the destination
    URLEndpoint destination = new URLEndpoint(url);
    //Send the message
    SOAPMessage reply = connection.call(message, destination);
    SOAPPart sp = reply.getSOAPPart();
    SOAPEnvelope se = sp.getEnvelope();
    SOAPBody sb = se.getBody();
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    Source sourceContent = reply.getSOAPPart().getContent();
    StreamResult result = new StreamResult(System.out);
    transformer.transform(sourceContent, result);
    //Close the connection
    connection.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    }//End of method actionPerformed
    public void windowClosing(WindowEvent event)
    //Deals with the window closing
    dispose();
    System.exit(0);
    }//End of method windowClosing
    public void windowOpened(WindowEvent event)
    public void windowIconified(WindowEvent event)
    public void windowDeiconified(WindowEvent event)
    public void windowClosed(WindowEvent event)
    public void windowActivated(WindowEvent event)
    public void windowDeactivated(WindowEvent event)
    }//End of class Applet2
    class Canvas0 extends Canvas
    public Canvas0()
    super();
    public void paint(Graphics g)
    Dimension d = getSize();
    Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
    Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
    FontMetrics fm1 = g.getFontMetrics(f1);
    FontMetrics fm2 = g.getFontMetrics(f2);
    String s1 = "Hello , ";
    String s2 = "World";
    int w1 =fm1.stringWidth(s1);
    int w2 =fm1.stringWidth(s2);
    g.setColor(Color.GREEN);

  • TS1702 i downloaded the GV app to my iphone but i'm trying to set up the app and it says it can't connect to google when i try to sign in to my google account.... any ideas what's wrong? i can access my gmail account just fine with my gmail app on the sam

    i downloaded the GV app to my iphone but i'm trying to set up the app and it says it can't connect to google when i try to sign in to my google account.... any ideas what's wrong? i can access my gmail account just fine with my gmail app on the same phone

    What's a GV app?

  • Best Calendar App to connect to Google Calendar and color code appointments

    I am looking for a replacement calendar app that will connect to Google Calendar and allow me to color code individual appointments.  I have looked at a ton of apps in the app store but none of them talk about the color coding option I am looking for.  I don't want to do the trial and error thing and waste my time and money. 

    Download Gmail app. itunes.apple.com/us/app/gmail/id422689480?mt=8

  • Empathy fails to connect to google talk using gnome online accounts

    Hi there,
    After last upgrade to gnome 3.6 empathy fails to connect to google talk using GOA credentials.
    Of course I can configure a talk account directly in empathy but... I would prefer to use a single sign on (with gnome online accounts).
    Does any one has this same problem?... Any clues?
    Best,
    M

    Yes...
    [miguel@miguel miguel]$ pacman -Q | grep gabble
    telepathy-gabble 0.17.1-1
    [miguel@miguel miguel]$
    In fact I can use Google Talk if I create an account using Menu->Accounts in empathy.
    Best.

  • Need help using doGoogleSearch to connect to Google API

    Hello all,
    I am trying to do my final year project and I am currently having trouble connecting to the Google API using doGoogleSearch. I dont know how to use http://api.google.com/GoogleSearch.wsdl to fill in the parameters for the doGoogleSearch and then I have to use the http://api.google.com/search/beta2 to connect to Google and perform the test. Any help would be appreciated or code or links
    Thanks in advance rgds,
    Tony
    Here is my code so far...................................
    package tony_buckley_project;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.net.URI;
    import java.net.URLConnection;
    import java.util.*;
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import com.google.soap.search.GoogleSearch;
    import com.google.soap.search.GoogleSearchResult;
    import com.google.soap.search.GoogleSearchFault;
    import com.google.soap.search.GoogleSearchResultElement;
    import com.google.soap.search.*;
    import javax.xml.soap.*;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import org.apache.soap.util.xml.*;
    import org.apache.soap.*;
    import org.apache.soap.rpc.*;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.messaging.URLEndpoint;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.*;
    * <p>Title: Mr. Tony Buckley</p>
    * <p>Description: </p>
    * <p>Copyright: Copyright Tony Buckley (c) 2004</p>
    * <p>Company: Cork Institute of Technology </p>
    * @[email protected]
    * @version 1.0
    public class Applet2 extends Frame implements WindowListener , ActionListener
    TextField searchField;
    Button search , quit;
    Canvas0 canvas;
    public Applet2()
    super();
    //Set up basic window
    setTitle("Tony Buckley Final Year Project");
    setBackground(Color.white);
    setSize(500 , 400);
    addWindowListener(this);
    //Set up area with buttons
    //Search button
    Panel p1 = new Panel();
    p1.setLayout(new FlowLayout());
    searchField = new TextField("" , 15);
    p1.add(searchField);
    search = new Button("Search the web for results...");
    p1.add(search);
    search.addActionListener(this);
    //Quit button
    Panel p2 = new Panel();
    p2.setLayout(new FlowLayout());
    Button quit = new Button("Quit");
    p2.add(quit);
    quit.addActionListener(this);
    //Set up search results area
    Canvas0 canvas = new Canvas0();
    add("Center" , canvas);
    Panel p4 = new Panel();
    p4.setLayout(new GridLayout(2 , 1));
    p4.add(p1);
    p4.add(p2);
    add("South" , p4);
    }//End of constructor method public Applet2()
    public void doGoogleSearch()
    String key;
    String q;
    int start;
    int maxResults;
    boolean filter;
    String restrict;
    boolean safeSearch;
    String lr;
    String ie;
    String oe;
    public static void main(String[] args)
    Applet2 app = new Applet2();
    app.setVisible(true);
    public void actionPerformed(ActionEvent event)
    //Deals with "Quit" button
    if(event.getSource() == quit)
    dispose();
    System.exit(0);
    else if(event.getSource() == search)
    /* try
    String suggestion = search_internet .doSpellingSuggestion(spellingRequest);
    if(suggestion == null)
    System.out.println("There is no spelling suggestion in the database");
    else
    System.out.println(suggestion);
    int startResult = 100;
    search_internet.setStartResult(startResult);
    int maxResult = 5;
    search_internet.setMaxResults(maxResult);
    GoogleSearchResult result_search_internet = search_internet.doSearch();
    GoogleSearchResultElement[] resultElements = result_search_internet.getResultElements();
    int startIndex = result_search_internet.getStartIndex() - 1 - startResult;
    int endIndex = result_search_internet.getEndIndex() - 1 - startResult;
    for(int i = startIndex ; i <= endIndex; i ++)
    GoogleSearchResultElement resultElement = resultElements[(i)];
    String title = resultElement.getTitle();
    String URL = resultElement.getURL();
    System.out.println(title);
    System.out.println(URL);
    System.out.println("");
    System.out.println("Start Index = " + result_search_internet.getStartIndex());
    System.out.println("End Index = " + result_search_internet.getEndIndex());
    System.out.println(result_search_internet.toString());
    int numResults = result_search_internet.getEstimatedTotalResultsCount();
    if(result_search_internet.getEstimateIsExact())
    System.out.println("Number of results: " +numResults);
    else
    System.out.println("Estimated number of results: " +numResults);
    //catch(GoogleSearchFault gsf)
    // System.out.println("Google Search Fault: " +gsf.getMessage());
    try
    String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
    String wsdl = "http://api.google.com/GoogleSearch.wsdl";
    String url = "http://api.google.com/search/beta2";
    String ns1 = "urn:GoogleSearch";
    String searchTerm;
    searchTerm = "science fiction";
    String spellingRequest = searchTerm;
    //First create the connection
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnFactory.createConnection();
    //Create the actual message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
    //Create objects for the message parts
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body = envelope.getBody();
    //Populate the message
    SOAPElement bodyElement = body.addChildElement(envelope.createName("doGoogleSearch" , "ns1", ns1));
    GoogleSearch search = new GoogleSearch();
    search.setKey(myKey);
    search.setQueryString(searchTerm);
    //Save the message
    message.saveChanges();
    //Send the message and get a reply
    //Set the destination
    URLEndpoint destination = new URLEndpoint(url);
    //Send the message
    SOAPMessage reply = connection.call(message, destination);
    SOAPPart sp = reply.getSOAPPart();
    SOAPEnvelope se = sp.getEnvelope();
    SOAPBody sb = se.getBody();
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    Source sourceContent = reply.getSOAPPart().getContent();
    StreamResult result = new StreamResult(System.out);
    transformer.transform(sourceContent, result);
    //Close the connection
    connection.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    }//End of method actionPerformed
    public void windowClosing(WindowEvent event)
    //Deals with the window closing
    dispose();
    System.exit(0);
    }//End of method windowClosing
    public void windowOpened(WindowEvent event)
    public void windowIconified(WindowEvent event)
    public void windowDeiconified(WindowEvent event)
    public void windowClosed(WindowEvent event)
    public void windowActivated(WindowEvent event)
    public void windowDeactivated(WindowEvent event)
    }//End of class Applet2
    class Canvas0 extends Canvas
    public Canvas0()
    super();
    public void paint(Graphics g)
    Dimension d = getSize();
    Font f1 = new Font("TimesRoman" , Font.PLAIN , 14);
    Font f2 = new Font("TimesRoman" , Font.ITALIC , 14);
    FontMetrics fm1 = g.getFontMetrics(f1);
    FontMetrics fm2 = g.getFontMetrics(f2);
    String s1 = "Hello , ";
    String s2 = "World";
    int w1 =fm1.stringWidth(s1);
    int w2 =fm1.stringWidth(s2);
    g.setColor(Color.GREEN);

    I don't know where you got the rest of this code from (was it supplied as part of the project or did you write it yourself), but I think it may be overcomplicated.
    The last time (at least a year ago) that I looked at the Google WS api, this is all you needed:
          GoogleSearch search = new GoogleSearch();
          search.setKey("_your_key_here_");
          search.setQueryString(searchStringHere);
          GoogleSearchResult result = search.doSearch();You can look in their api docs for how to extract the results from GoogleSearchResult.
    Hope that helps?
    Kevin Hooke

  • Cannot connect to Google Server

    Can anyone help me figure out why I cannot connect to Google? I'm on a MacBook Pro, running 10.6.8.
    I get the error messages:
    "Unable to connect: Firefox can't establish a connection to the server at www.google.com."
    "Safari can't connect to the server"
    What's going on? YouTube is fine, Bing is fine, everything else works. Could surfing job search websites have given me some virus?
    Thanks in advance, Valerie

    It looks like something or someone has modified your /etc/hosts file.
    By far the easiest way to fix the hosts file is to restore it from a Time Machine (or other) backup that predates the modification. If that's not possible, then do the following.
    Back up all data if you haven’t already done so. Before proceeding, you must be sure you can restore your system to the state it’s in now. If you skip this step, no one but you will be responsible for the consequences.
    These instructions must be carried out in an administrator account, if you have more than one user account.
    Select "Go to Folder..." from the Finder menu bar. In the text box, enter "/etc" (without the quotes.) A Finder window will open on the "etc" folder.
    Double-click the file named "hosts" in that folder. It should open in TextEdit. At the top of the file, you should see something like this:
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    127.0.0.1                              localhost
    255.255.255.255          broadcasthost
    ::1                                        localhost
    fe80::1%lo0                    localhost
    Below that, you'll see some other lines. Delete everything below the last line shown above. Make sure you scroll all the way to the bottom of the document. In Lion, scroll bars are hidden by default until you actually start scrolling, so you may not realize that you’re not seeing the whole document.
    Don’t try to save; you won't be able to. Instead, duplicate (in Lion) or select "Save As..." from the file menu (pre-Lion.) In the Save dialog, make the name of the file “hosts” and deselect the option to add a ".txt" extension to the file name, if it's selected. Save the file to your Desktop. You should now have a file named exactly "hosts" with no extension on your Desktop, having the contents shown above.
    Now launch the Terminal application, for instance by entering the first few letters of its name in a Spotlight search. Copy or drag -- do not type -- the line of text below into the window, and press return:
    sudo sh -c ' cat Desktop/hosts > /etc/hosts '
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. Confirm. Quit Terminal.
    Do not type anything into the Terminal window except your password.
    That will fix your hosts file. You can now close the “etc” folder and delete the hosts file on your Desktop. Unless you know how the file was modified, I can’t guarantee that no other damage has been done to your system.

  • Safari cannot make a secure connection to Google or Youtube--but only on my home network

    Recently, when I am on my home network, I cannot connect to Google or Youtube.  When I try to, I get an error message that says that Safari can't make a secure connection to the site.  (I can connect to these sites with Firefox at home though)  However, when I am at work, both Google and Youtube load just fine on Safari.  Any idea what could be causing this?  I suspect that it's the repeater that my landlord installed in my apartment, but I really have no idea.
    I am running Mavericks (10.9.4) on a 15-inch, late 2011 MacBook Pro.

    Hello Punxsutawney Phyllis,
    Thanks for using Apple Support Communities.
    See the article below to troubleshoot this error message you are receiving.
    Mac OS: "Unable to establish a secure connection" or "can't verify identity" messages in Web browsers
    http://support.apple.com/kb/TA20405
    Take care,
    Alex H.

  • IChat can't connect to Google Talk

    I can't get iChat to connect to Google Talk. I'm using iChat 5.0.3 (Snow Leopard, 10.6.8). I have a google account, but it is not a gmail account. My jabber id is my e-mail address (because that's what my google account is). The server is set to "talk.google.com", port is 5223, "Use SSL" is on. I get the following message "iChat can't log in to talk.google.com because your login ID or password is incorrect". I know they're both correct.
    If I turn on "automatically find server and port", then the status goes to "connecting..." for quite a while and then says: "the operation couldn't be completed. Operation timed out"
    So, if I had to guess, I'd say that a gmail account is required and this won't work with just a google account. Has anyone ever seen it work without a gmail account?

    Hi,
    The Info at Google says it has to be a Gmail account (with Talk Enabled) to use in another client.
    Other type of Google Accounts can do Talk on Google but have to do it on one of their Web pages.
    The confusion seems to come from the fact this used to be possible (You changed the Server name in iChat to google.com after setting up a Jabber ID)
    8:22 PM      Friday; August 12, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Macbook Air Safari (Mac OS X 10.6.8) won't connect to Google, Yahoo, or Facebook but yet allows other websites to connect.  Help!

    My daughter's Macbook Air Safari (using Mac OS X 10.6.8) won't allow her to connect to Google, Yahoo and Facebook.  It will for some reason allow for Bing searches and connections to specific other websites.  The wifi seems to be connected fine.  We have done the "reset Safari" excercise and updated for the most recent software updates.  Also did the good old shut down and restart but no go.  Does anyone have any other suggestions or seen this problem before?
    Thanks!

    There may be a redirect issue if an adware software has been
    installed by accident or by intent; usually if someone goes to a
    web site where questionable downloads of software are free,
    there may be (included, added to) the packet you get, adware
    or perhaps even malware.
    So, if this is the case, the symptoms you say are part of this
    experience may be related to an adware or other badware
    running in the background. A 'cleanmymac' or 'mackeeper'
    can also mess up a Mac computer, & they are not advised.
    Several posts to the ASC discussions are about these kinds
    of things and many point back to a user going to some web
    site and downloading something. A click can do it.
    A way to help find some evidence of certain kinds of add-ons
    (outside of looking into the Browser's add-ons and see about
    deleting those that relate to odd behavior, or badware) such
    as adware, one could get and use this free utility & get a
    report of general system info, and then post it online to see
    if someone can spot some of the characteristics adware or
    other malware may have included in the system.
    There is another way to get a more lengthy report than etrecheck
    as Linc Davis has posted, that uses more detailed effort on the
    part of the user, in order to get a larger fuller report.
    This is the short and easy way to look for a few clues that may
    be addressed through using advice in TheSafeMac guide.
    •EtreCheck: (also click on read-more)
    http://www.etresoft.com/etrecheck
    The report from the above may be helpful along with info in the
    site below. Note there are other guides in TheSafeMac, too.
    •Adware Removal Guide:
    http://www.thesafemac.com/arg/
    Hopefully the issue with the browser can be resolved in one
    of up to three/four different ways, depending on what it is.
    PS: recent updates to some OS X versions, etc do not
    include update to Snow Leopard; only later systems.
    {by the time I write all this, you may already have a reply}
    Good luck & happy computing!

  • I'm getting a message saying that Firefox cannot establish a connection to google.

    Something happened to Firefox yesterday - and now all I can get is a message saying that Firefox cannot establish a connection to google.
    I searched for help via IE and I tried all the fixes suggested. I even restored my computer to an earlier state- that didn't change anything; set network settings to No Proxy; then I uninstalled Firefox, deleted all the program files, and then reinstalled - but nothing seems to work.
    I really don't want to have to use IE, and I'm not technical enough to really know what I'm doing at this point. I'm afraid I might have lost all my bookmarks, screwed something(s) up on my computer etc.
    This is SOOOOOOOOOO irritating and frustrating - can someone help me please.

    Sorry to hear about your bookmarks. When you uninstalled Firefox, did you tell it to remove your personal data? That unfortunately would be irreversible, so hopefully you didn't do that.
    You mentioned deleting some folders. Your bookmarks and other Firefox settings data normally are stored in a hidden folder under C:\Users\''username''\AppData\Roaming\Mozilla\Firefox. I'm not sure whether you dug down and deleted folders under there. If so, please check the Windows Recycle bin and try to restore the Mozilla\Firefox folder to a safe location (e.g., Documents).
    Did you use Firefox's Reset feature at any point? That would have moved your old settings folder to your desktop, inside a folder named Old Firefox Data. Hold on to that if you have it.
    Regarding Google, I wonder whether your computer has contracted any malware infections that might be modifying your access. You could try the tools in our support article [[Troubleshoot Firefox issues caused by malware]]. Those are free and take a considerable amount of time to run. If they seem to finish quickly and require a payment for cleaning, you may have a serious infection. In that case, try the specialized malware cleanup forums listed in the article.

  • Cant's connect my Google and Yahoo calendar's. I am getting the Error message :A secure connection could't be established". Any recommendations on how to fix it? iMac/Mavericks

    Cant's connect my Google and Yahoo calendar's. I am getting the Error message :A secure connection could't be established". Any recommendations on how to fix it? iMac/Mavericks

    This article has a link for more information on finding your profile directory: [[Fix the "Could not initialize the application's security component" error message]]. On Windows 7, you can try this (either in a Windows Explorer window address bar or from the start menu search box):
    %APPDATA%\Mozilla\Firefox\Profiles
    You may see one folder in there and that's the one you want. If you see more than one, look for the one with the most recently modified files.

  • Can not connect to google on Mac mini or iPad, says Ido not have a certificate. This problem started after installing latest operating system

    Cannot Connect to google on iPad or Mac. Mini says I do not have a certificate. What is the problem and how can I fix it.

    I have Maverick on my iMac and haven't noticed any connection or any other issues. Also, that won't have any affect on your mobile devices.
    Most likely an issue with your router or isp.
    Try rebooting your modem and  router (if applicable)  by unplugging it for 5-10min.
    At the same time, reboot mac and both/all mobile devices by pressing and holding both the home and sleep/wake buttons at the same time until the apple logo appears on the screen.

  • Device will not connect a Google account

    I have the Samsung-SGH-1747  Andriod 4.1.1 Base Ver 1747UCDLK3 Build JRO03L.1747UCDLK3
    Recently I could not connect to Google for Sync or Play. When I deleted and re-added the account it failed to add saying that it could not connect to the server. I reset to factory and same issue.
    Now I cannot access any of my settings and cannot recover my contacts and details from Google. Anyone else see this issue??
    Respond here or to  >> personal information removed <<
    Thanks
    Message was edited by: Verizon Moderator

    SGH-1747 ????  Isn't  that the AT&T Samsung GS3?  You may want to ask on the AT&T forums.

  • Unable to connect to google on ipad

    I am having trouble connecting to Google on my ipad since upgrading to BT Home Hub 5

    Go to Settings >> WiFi >> BT Home Hub.
    Check that you have a valid IP address (that doesn't start 169.) and gateway.

Maybe you are looking for