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:

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

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

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 in

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

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 sebast...@somosazucar.org wrote: To the best of my

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 o...@cscott.net 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;

[Sugar-devel] opening a url with WebActivity

2011-08-12 Thread Erik Blankinship
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.open( http;//google.com ) This launches firefox in its own floating

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 er...@mediamods.comwrote: 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

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,