[android-developers] Re: Context LocationManager

2011-05-23 Thread cellurl
Here's the API if anyone has an app that needs to know the speedlimit... http://goo.gl/kQYqZ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

Re: [android-developers] Re: Context LocationManager

2011-05-22 Thread Kostya Vasilyev
22.05.2011 8:38, cellurl пишет: I want to create a library that people link to. It tells them when the speedlimit changes. I have it all working, just not the library part. It would have methods like: SpeedlimitListener(); requestSpeedlimitChanges( speedlimitListener ); Maybe:

[android-developers] Re: Context LocationManager

2011-05-22 Thread cellurl
Context is a good idea too. Thanks -cellurl On May 22, 3:08 am, Kostya Vasilyev kmans...@gmail.com wrote: 22.05.2011 8:38, cellurl пишет: I want to create a library that people link to. It tells them when the speedlimit changes. I have it all working, just not the library part. It

[android-developers] Re: Context LocationManager

2011-05-22 Thread cellurl
How do I make speedlimitListener call back onSpeedLimitChanged() ? Thanks for helping! -cellurl -- SpeedlimitListener speedlimitListener; speedlimitListener = new SpeedlimitListener() { public void onSpeedLimitChanged(String speedlimit) {}

Re: [android-developers] Re: Context LocationManager

2011-05-22 Thread Kostya Vasilyev
The callback method: 22.05.2011 17:58, cellurl ?: public void onSpeedLimitChanged(String speedlimit) {} Need to be moved up to the interface: public *interface *SpeedlimitListener { *public void onSpeedLimitChanged(String speedlimit) {}* } So it can be called from your manager

Re: [android-developers] Re: Context LocationManager

2011-05-22 Thread Kostya Vasilyev
Um, forgot to remove the method body. Like this: 22.05.2011 18:30, Kostya Vasilyev ?: public *interface *SpeedlimitListener { *public void onSpeedLimitChanged(String speedlimit); // no curly braces here* } -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this

[android-developers] Re: Context LocationManager

2011-05-22 Thread cellurl
worked great. Thanks TreKing y Kostya -cellurl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Context LocationManager

2011-05-21 Thread cellurl
it doesn't single step well. Ok, spank me, then give me a hint. On May 21, 5:07 pm, TreKing treking...@gmail.com wrote: On Sat, May 21, 2011 at 4:41 PM, cellurl gpscru...@gmail.com wrote: Q: How do I get the second lm_distance variable to not be null below. Q: Does that even compile?

Re: [android-developers] Re: Context LocationManager

2011-05-21 Thread TreKing
On Sat, May 21, 2011 at 5:40 PM, cellurl gpscru...@gmail.com wrote: it doesn't single step well. I don't know what that means. Ok, spank me, then give me a hint. Why not just pass the location manager to the SpeedLimit constructor ... ?

[android-developers] Re: Context LocationManager

2011-05-21 Thread cellurl
Why not just pass the location manager to the SpeedLimit constructor ... ? I am trying to create a library that people will link to to get the speedlimit. It should do everything under the covers, if possible. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: Context LocationManager

2011-05-21 Thread TreKing
On Sat, May 21, 2011 at 6:03 PM, cellurl gpscru...@gmail.com wrote: I am trying to create a library that people will link to to get the speedlimit. It should do everything under the covers, if possible. How is this any less under the covers, considering Speedlimit is already an inner class?

[android-developers] Re: Context LocationManager

2011-05-21 Thread james pruett
Thanks for that. I don't know how to trigger events here? Any suggestions? -- SpeedlimitListener speedlimitListener; speedlimitListener = new SpeedlimitListener() { public void onSpeedLimitChanged(String speedlimit) { } };

Re: [android-developers] Re: Context LocationManager

2011-05-21 Thread TreKing
On Sat, May 21, 2011 at 10:21 PM, james pruett gpscru...@gmail.com wrote: I don't know how to trigger events here? Any suggestions? That would depend on what you're trying to do and I don't know what that is.

[android-developers] Re: Context LocationManager

2011-05-21 Thread cellurl
I want to create a library that people link to. It tells them when the speedlimit changes. I have it all working, just not the library part. It would have methods like: SpeedlimitListener(); requestSpeedlimitChanges( speedlimitListener ); In my mind, its very similar to LocationManager. In my

Re: [android-developers] Re: Context LocationManager

2011-05-21 Thread TreKing
On Sat, May 21, 2011 at 11:38 PM, cellurl gpscru...@gmail.com wrote: I have it all working, just not the library part. You will need to provide more information than just not the library part if you expect anyone to understand what you're having trouble with.