Android Question Webview - WebView_PageFinished

Discussion in 'Android Questions' started by tdocs2, May 20, 2015.

  1. tdocs2

    tdocs2 Well-Known Member Licensed User

    Greetings, all, and thank you for your help in advance.

    How do I retrieve or capture the day clicked in Google Calendar from the URL?

    I call the Google Calendar using this code (posted by me elsewhere in the forum:

    Code:
    Sub CalendarShow (SelectedDate As Long)

        
    'Load Google Calendar - with SelectedDate
        Dim CalStr1 As String
        
    DateTime.DateFormat="yyyyMMdd"
        CalStr1=
    "/render?date="&DateTime.Date(SelectedDate)
        
    Log("CalStr1 "&CalStr1)
        WebViewGCalendar.LoadUrl(
    "http://www.google.com/calendar"&CalStr1)

    End Sub
    These are the URL's generated for each of these dates:

    Code:
    For 2015-05-20 (today)
    Page Fin Url https://www.google.com/calendar/render?date=20150520&pli=1#main_7

    For 2015-05-27
    Page Fin Url https://www.google.com/calendar/render?date=20150520&pli=1#main_7%7Cday-1+23227+23227+23227

    For 2015-06-01
    Page Fin Url https://www.google.com/calendar/render?date=20150520&pli=1#main_7%7Cday-1+23233+23233+23233

    For 2015-04-27
    Page Fin Url https://www.google.com/calendar/render?date=20150520&pli=1#main_7%7Cday-1+23195+23195+23195
    I cannot reverse engineer the string following the Cday parameter in the URL.

    I have searched the web for an answer to no avail.

    Thank you.

    Sandy
     
  2. LucaMs

    LucaMs Expert Licensed User

    My first test.
    It should work only if Google Calendar is in "day display mode" (I have to study the other modes).
     

    Attached Files:

    tdocs2 likes this.
  3. tdocs2

    tdocs2 Well-Known Member Licensed User

    Thank you, Luca.

    I had posted the problem here, in Stack Exchange and in two additional forums dealing with the Google Calendar - No or meaningless answers.

    :):):)

    Real sharp.

    Sandy
     
  4. LucaMs

    LucaMs Expert Licensed User


    :)

    I'm glad to help.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice