Re: [Sugar-devel] opening a url with WebActivity

2013-02-09 Thread Angel Sánchez
BTW, I've discovered that my XO has sugar-launch with the -u parameter... so it seems that sometimes it open the webpage with the Browser, but sometimes my game gets stuck and the Activity is not opened and I have to reboot the machine. Can be possible that the Browser activity is launched but

Re: [Sugar-devel] opening a url with WebActivity

2013-02-09 Thread Angel Sánchez
Hi people! I was just searching how I could open a webpage from my Activity. It's a game coded in c++ and I was trying to call shells commands to open it, but I haven't had much luck. Anybody can help me? As I was searching I just got with this archived thread: http://lists.sugarlabs.org/arc

Re: [Sugar-devel] opening a url with WebActivity

2011-08-17 Thread Erik Blankinship
Okay, so to summarize, the best practice for an activity to open a URI in the browse activity is to not open a URI in the browse activity, but to open a WebView instance in your own activity instead. It will be nice when the intent system is ready. Good to know it should be an easy switch for act

Re: [Sugar-devel] opening a url with WebActivity

2011-08-16 Thread Gonzalo Odiard
Yes, I agree. Gonzalo I'd suggest you use this approach for now, and switch to the intent > mechanism in the future. Both the switch to webkit and the design of > an intent mechanism are future projects. If they are scheduled well, > then all the places broken by the switch to webkit (not just

Re: [Sugar-devel] opening a url with WebActivity

2011-08-15 Thread C. Scott Ananian
On Fri, Aug 12, 2011 at 2:34 PM, Erik Blankinship wrote: >> FWIW you can take a look at the activity >> http://activities.sugarlabs.org/en-US/sugar/addon/4455 >> > > Thank you Rafael.  Good idea. > As you suggest, this activity opens URLs inside of the current activity. > hulahop.startup(os.path.j

Re: [Sugar-devel] opening a url with WebActivity

2011-08-15 Thread Gonzalo Odiard
I agree with Sebastian here. We can plan the long term solution, but right now we need a simple solution to give the user a better experience and do not replicate a lot of code. Gonzalo On Mon, Aug 15, 2011 at 10:05 AM, Sebastian Silva wrote: > To the best of my knowledge this is not supported

Re: [Sugar-devel] opening a url with WebActivity

2011-08-15 Thread Sebastian Silva
To the best of my knowledge this is not supported and is a big elephant in the room. Intent system seems wonderful like a nice car, but not being able to open a URI, is like having no shoes. Regards, Sebastian El 15/08/11 18:02, Erik Blankinship escribió: I think an intent mechanism will be he

Re: [Sugar-devel] opening a url with WebActivity

2011-08-15 Thread Erik Blankinship
I think an intent mechanism will be helpful to olpc and sugar going forward. But, back to my original post... does anyone know how to successfully open a URI in Browse with the API and tools available on olpc sugar distributions now? ___ Sugar-devel mail

Re: [Sugar-devel] opening a url with WebActivity

2011-08-14 Thread C. Scott Ananian
On Sat, Aug 13, 2011 at 8:23 PM, C. Scott Ananian wrote: > Taking a look at the chrome, firefox, and android "intent" apis would be a > good start.  WebOS apparently has an equivalent API, with a slightly > different permissions ui, which might be an improvement. Some links: http://blog.chromium.

Re: [Sugar-devel] opening a url with WebActivity

2011-08-13 Thread C. Scott Ananian
Taking a look at the chrome, firefox, and android "intent" apis would be a good start. WebOS apparently has an equivalent API, with a slightly different permissions ui, which might be an improvement. --scott On Friday, August 12, 2011, Gonzalo Odiard wrote: > How should be this mechanism? > > >

Re: [Sugar-devel] opening a url with WebActivity

2011-08-13 Thread Erik Blankinship
On Fri, Aug 12, 2011 at 4:21 PM, Scott @ OLPC wrote: > A proper solution would probably involve creating an "Intent" system for > Sugar, akin to those in Android, Chrome, and Firefox. There's a short > discussion on my google+ stream which I can't seem to link to from my > mobile; maybe someone

Re: [Sugar-devel] opening a url with WebActivity

2011-08-12 Thread Gonzalo Odiard
How should be this mechanism? Gonzalo On Fri, Aug 12, 2011 at 9:19 PM, C. Scott Ananian wrote: > I'm arguing that a more general mechanism would be even better. > --scott > > > On Friday, August 12, 2011, Martin Abente > wrote: > > In January I sent a patch to sugar-devel with minor changes

Re: [Sugar-devel] opening a url with WebActivity

2011-08-12 Thread C. Scott Ananian
I'm arguing that a more general mechanism would be even better. --scott On Friday, August 12, 2011, Martin Abente wrote: > In January I sent a patch to sugar-devel with minor changes to sugar-launch so it would be able to pass the uri argument to the Browse activity (to open links, etc, from oth

Re: [Sugar-devel] opening a url with WebActivity

2011-08-12 Thread Martin Abente
In January I sent a patch to sugar-devel with minor changes to sugar-launch so it would be able to pass the uri argument to the Browse activity (to open links, etc, from other activities or sugar itself). I wonder if some have changed mind about including it :) On Fri, Aug 12, 2011 at 2:34 PM, Eri

Re: [Sugar-devel] opening a url with WebActivity

2011-08-12 Thread Erik Blankinship
> > >> FWIW you can take a look at the activity > > http://activities.sugarlabs.org/en-US/sugar/addon/4455 > > > Thank you Rafael. Good idea. As you suggest, this activity opens URLs inside of the current activity. hulahop.startup(os.path.join(env.get_profile_path(), 'gecko')) from hulahop.webvi

Re: [Sugar-devel] opening a url with WebActivity

2011-08-12 Thread Rafael Ortiz
On Fri, Aug 12, 2011 at 9:40 AM, Erik Blankinship wrote: > I am trying to figure out how to open a URL in the browse activity from my > own python sugar activity. What is the best way to do this? > > I was hacking around on an xo running 860, sugar 84) > > [1] > > import webbrowser > webbrowser.o