Android Question Web intent log

Douglas Farias

Expert
Licensed User
Longtime User
Good Morning to all

how can i take the log of the one intent?
like a webview page finish

here is a code of i m using the intent
B4X:
Sub botaoface_Click
  Dim TheUrl As String
  TheUrl = "http://www.ibm.com"
  Dim i As Intent
  i.Initialize(i.ACTION_VIEW, "http://m.facebook.com/sharer.php?u="&TheUrl&"")
  i.SetType("text/plain")
  i.PutExtra("android.intent.extra.TEXT", TheUrl)
  i.WrapAsIntentChooser("Escolha o navegador!")
  StartActivity(i)
End Sub

i tryed this but dont work
B4X:
Sub botaoface_Click
  Dim TheUrl As String
  TheUrl = "http://www.ibm.com"
  Dim i As Intent
  i.Initialize(i.ACTION_VIEW, "http://m.facebook.com/sharer.php?u="&TheUrl&"")
  i.SetType("text/plain")
  i.PutExtra("android.intent.extra.TEXT", TheUrl)
  i.WrapAsIntentChooser("Escolha o navegador!")
  StartActivity(i)
 Dim pm As PackageManager
   For Each cn As String In pm.QueryIntentActivities( i)
   Log(cn)
   Next
End Sub

i tryed make a log(i) dont work too =(

have a way to log the current url?
if user change url show in the log too *-*


thx
 
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
i m opning a browser with a url
i need to get the current url

http: etc etc

if user change url
show in the log same of webview with pagefinish

its possible?


i start a intent with www.ibm.com

and i enter on another website
www.lala.com

have a way to know this with logs?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…