Re: [android-beginners] Re: illegal characer in URI ?

2010-02-14 Thread Clint Tredway
sent from my nexus one On Feb 14, 2010 6:24 PM, "Kevin Duffey" wrote: Good info Indicator.. I did not read both APIs to know that either was better than the other... for URIs this is good to know. On Sun, Feb 14, 2010 at 3:44 PM, Indicator Veritatis wrote: > > RFC2396 does l... -- You rece

Re: [android-beginners] Re: illegal characer in URI ?

2010-02-14 Thread Kevin Duffey
Good info Indicator.. I did not read both APIs to know that either was better than the other... for URIs this is good to know. On Sun, Feb 14, 2010 at 3:44 PM, Indicator Veritatis wrote: > RFC2396 does list '^' as one of the 'unwise' characters. The inference > is that '^' should be escaped, thou

[android-beginners] Re: illegal characer in URI ?

2010-02-14 Thread Indicator Veritatis
RFC2396 does list '^' as one of the 'unwise' characters. The inference is that '^' should be escaped, though the RFC does not say so explicitly. The Java API docs on URI and URLencode, OTOH, recommend always using URI rather than URLEncode, converting from URI to URL only as needed, using toURL.

[android-beginners] Re: illegal characer in URI ?

2010-02-14 Thread -DC-
How are you creating the URL? Try one of these methods: path = URLEncoder.encode("finance.yahoo.com/q/hp?s=^DJI", "UTF-8"); uri = new URI("http://"; + path); ...or... uri = new URI("http", "finance.yahoo.com", "/q/hp?s=^DJI", ""); On Feb 13, 11:55 pm, ivanchan wrote: > Hi all, > > I am trying

[android-beginners] Re: Alarm not triggered after restart.

2010-02-14 Thread wonglik
Cool it helps. Thx Mark. On Feb 14, 6:45 pm, Mark Murphy wrote: > wonglik wrote: > > My problem is that alarm is not triggered after mobile is restarted > > and is TURNED ON on the expected time. > > > Is there something I missed? Should I do some extra work to keep alarm > > scheduled after re

Re: [android-beginners] Alarm not triggered after restart.

2010-02-14 Thread Mark Murphy
wonglik wrote: > My problem is that alarm is not triggered after mobile is restarted > and is TURNED ON on the expected time. > > Is there something I missed? Should I do some extra work to keep alarm > scheduled after restart? Alarms are automatically flushed on a reboot. If you need your alarm

[android-beginners] Alarm not triggered after restart.

2010-02-14 Thread wonglik
Hi I get stuck with something that , I guess , is very trivial. Basically I am scheduling alarm for a given moment in the future : Intent contentIntent = new Intent(this, AlarmReceiver.class); PendingIntent theappIntent = PendingIntent.getBroadcast(Main.this, 0,contentIntent, 0);