Hi Hamish!
Thanks for your reply.
We have managed hot to launch the KHTML Browser:
1) See TSS000340 - "Launching the Web browser on S60 3rd Edition to
open a specified URL"
in the Technical Library, downloadable from Forum.nokia.com under
"Knowledge base"
2) The Uid for the new s60 "Web" browser is 0x1020724D
Although, we still have problems launching the Browser, forcing it to
open a local swf.
The tests we have made with our sis:
1) Launch the KHTML browser and open one swf which is available on
the internet ("http://...."😉. Everything worked ok. The Browser opened the
swf, and the user was prompted only once for the network connection.
2) Launch the KHTML Browser and open a local html file (which was
part of the sis). Everything worked ok. The browser opened the local HTML
file.
3) Launch the KHTML Browser and open a local swf file (which was
part of the sis). We got an error: "Web: memory full...". (it's not problem
of the swf size, because we can open it correctly if downloaded from the
Internet).
It seems that the Browser isn't understading how to open the local swf
file, and raises the error. The src code is at the end of the message.
Can any one help us please?
Thanks in advance. Regards,
Victor Batista
The code we are using to launch the Flash Lite swf file:
_LIT(KFile,"\\offside\\offside.swf"😉;
TFileName aFileName(KFile());
_LIT(KFileProtocol,"file:///"😉;
const TUid KOSSBrowserUidValue = {0x1020724D};
RApaLsSession apaLsSession;
CompleteWithAppPath(aFileName);
param->Des().Copy(_L("4 "😉);
param->Des().Append(KFileProtocol);
param->Des().Append(aFileName);
CEikonEnv::InfoWinL(_L("Link to File"😉,param->Des());
TUid id(KOSSBrowserUidValue);
TApaTaskList taskList(CEikonEnv::Static()->WsSession());
TApaTask task = taskList.FindApp(id);
if(task.Exists()) {
task.BringToForeground();
HBufC8* param8 = HBufC8::NewLC(param->Length());
param8->Des().Append(*param);
task.SendMessage(TUid::Uid(0), *param8); // UID not used
CleanupStack::PopAndDestroy(param8);
} else {
if(!apaLsSession.Handle()) {
User::LeaveIfError(apaLsSession.Connect());
}
TThreadId thread;
User::LeaveIfError(apaLsSession.StartDocument(*param, KOSSBrowserUidValue,
thread));
apaLsSession.Close();
}
CleanupStack::PopAndDestroy(param);
User::Exit(0);
"Hamish Willee" <[email protected]> wrote in message
news:[email protected]...
> Hi Victor
> Never having tried it, and since the browser is Nokia software I couldn't
> say. However based on what we've discussed I think there is a very good
> chance this will work. I don't know the UID of the browser, but you should
> be able to work this out by using RApaLsSession classes to find the UID of
> the application which displays HTML files.
> Regards
> H
>
>
>
>
> "Victor Batista" <[email protected]> wrote in message
> news:[email protected]...[color=green]
>> Hi Hamish!
>> Thanks for your reply.
>> We have tested our application (and others) on Flash Lite 2.0 and
> there
>> it works fine: The user is only propmted once to select the network.
>> Our problem arises with Flash lite 1.1, where the user always is
>> prompted to select the network, on a standalone sis. If we access the
>> same
>> Flash movie through the browser, the user is only prompted once. We are
>> trying to refactor our sis. Instead of launching the Flash Player, we are
>> thinking to launch the KHTML Browser, which will automatically open the
>> Flash Movie. Unfortunatelly we can't find the UID of the KHTML (Safari)
>> Browser. We only can get the UID of the KWML Browser (which also comes
> with
>> S60 3rd Edition phones). Do you think this will work? Do you know the
> KHTML
>> UID?
>>
>> Thanks in advance.
>> Regards,
>> Victor Batista
>>
>> "Hamish Willee" <[email protected]> wrote in message
>> news:[email protected]...[color=darkred]
>> > Ahhhrrrggg. Cursed outlook!
>> >
>> > What I was trying to say was that I believe the following answer, but[/color]
> its[color=darkred]
>> > not canonical.
>> >
>> > The Standalone Flash player prompts for network access, because some
>> > movies
>> > could run up a large network bill with the user being unaware the app[/color]
> ever[color=darkred]
>> > connected to the network. The warning/permission to use the network
>> > warning
>> > should only happen once per run of the Flash Movie, though in some[/color]
> earlier[color=darkred]
>> > versions of the player, if the root movie is replaced with another swf
>> > file
>> > I think you might get prompted again.
>> >
>> > When in the context of the browser, it is considered obvious to the
>> > user
>> > that they might incur network charges, so the warning is not issued.
>> >
>> > Ie an implementation decision by the phone vendor, not directly related[/color]
> to[color=darkred]
>> > platform security.
>> >
>> > Regards
>> > Hamish
>> >
>> > "Hamish Willee" <[email protected]> wrote in message
>> > news:[email protected]...
>> >> Hi Victor
>> >>
>> >> The flash player is not a Symbian product, so the following is without
>> >> warranty (but based on the contact I received this from is likely)
>> >>
>> >>
>> >> "Hamish Willee" <[email protected]> wrote in message
>> >> news:[email protected]...
>> >> > Hi Victor
>> >> >
>> >> > Its unlikely to be due to the certificate you are using. My guess is
>> > that
>> >> > when you're run in the browser process you get the browser process
>> >> > capabilities, and that this includes the Network services, however[/color]
> for[color=darkred]
>> >> some
>> >> > reason when you're run from a SIS stub the process is not getting[/color]
> this[color=darkred]
>> >> > capability.
>> >> > Not sure how to verify this. Have you spoken to Macromedia?
>> >> >
>> >> > Regards
>> >> > H
>> >> >
>> >> >
>> >> > "Victor Batista" <[email protected]> wrote in message
>> >> > news:2su%[email protected]...
>> >> > > Hello!
>> >> > > We have packaged a Flash Lite file (swf) as a sis application for
>> > Series
>> >> > 60
>> >> > > 3rd Edition. Our swf is a networked application. The sis file
>> >> > > installs
>> >> > > correctly, although, everytime it accesses the network, the user
>> >> > > is
>> >> > prompted
>> >> > > to select the network. If we download the same swf file through
>> >> > > the
>> >> mobile
>> >> > > phone browser (the swf executes embedded on the browser), the user
>> >> > > can
>> >> > > access the network without any problem (the user isn't promped to
>> > select
>> >> > the
>> >> > > network on every access).
>> >> > > We have signed our application with the Basic developer
>> >> > > certificate
>> > (one
>> >> > > IMEI only which gives us the following capabilities: Local[/color]
> Services,[color=darkred]
>> >> > > Location, Network Services, Power Management, ProtServ, Read User
>> > Data,
>> >> > > Surroundings DD, SW Event, User Environment, Write User Data).
>> >> > >
>> >> > > Can this be a capabilities problem (Network Control capability,[/color]
> which[color=darkred]
>> > is
>> >> > > only available for Phone manufacturer approved certificates) ??
>> >> > >
>> >> > > Any help would really be appreciated. We are getting out of time
>> >> > > to
>> >> finish
>> >> > > this mobile application, which must be packaged as a sis file.
>> >> > >
>> >> > > Thanks in advance.
>> >> > > Regards,
>> >> > > Victor Batista
>> >> > >
>> >> > >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>[/color]
>
>[/color]