Android Question OpenBrowser - Samsung

MarcoRome

Expert
Licensed User
Longtime User
Hi Erel, all
When i try this code on Samsung S7


B4X:
Sub ListView1_ItemClick (Position As Int, Value As Object)
    Dim pi As PhoneIntents
    Log("Value: " & Value) '= http://www.gazzetta.it/Calcio/Serie-A/Inter/04-01-2017/joao-mario-punta-champions-ancora-possibile-credo-nell-inter-gabigol-suning-180280421151.shtml
     StartActivity(pi.OpenBrowser(Value))
End Sub

i have this error:


If i run this code is OK.
B4X:
  StartActivity(pi.OpenBrowser("http://www.gazzetta.it/Calcio/Serie-A/Juventus/04-01-2017/rugani-carica-feroce-supercoppa-180280496426.shtml"))


Any idea ?
 

DonManfred

Expert
Licensed User
Longtime User
Cast the Object to a string first


Try
B4X:
Sub ListView1_ItemClick (Position As Int, Value As Object)
    dim url as string = value
    Dim pi As PhoneIntents
    Log("Value: " & url) '= http://www.gazzetta.it/Calcio/Serie-A/Inter/04-01-2017/joao-mario-punta-champions-ancora-possibile-credo-nell-inter-gabigol-suning-180280421151.shtml
     StartActivity(pi.OpenBrowser(url))
End Sub
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Already tried.... dont work
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User

Hi Erel, thank you for your answer.



This is Value from Log Windows ( Log("Value: " & Value)


This is all log:

In attachment also example
 

Attachments

  • rss-example.zip
    8.8 KB · Views: 265
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Mhhh...
I thought that exporting via:



would save the whole project.
Anyway this is a zipped "manual" copy
 

Attachments

  • Rss.zip
    13.3 KB · Views: 260
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Of course you are right.

In xml code i read this:
B4X:
.....
<title>
<![CDATA[
Joao Mario suona la carica "La Champions è possibile E Gabigol giocherà di più..."
]]>
</title>
.....
<link>
http://www.gazzetta.it/Calcio/Serie-A/Inter/04-01-2017/joao-mario-punta-champions-ancora-possibile-credo-nell-inter-gabigol-suning-180280421151.shtml
</link>
.....
and i dont see new line here.
The same thing happen with all fields ( title, link, etc ).

I tried also about another xml file ( another site http://www.ansa.it/sito/ansait_rss.xml )
I have the same problem.
So i correct the Class in this point:




Thank you for this Class @Erel is very useful class
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…