It has a kml file inside. if I use gps instead of test I get the same
error.

On 24 Mrz., 19:49, "vikram shetty" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Were you able to create the provider "test" or how did you create it?
>
> Vikram
>
> On Mon, Mar 24, 2008 at 2:41 PM, goro <[EMAIL PROTECTED]> wrote:
>
> >  Hi,
> >  Can you please share how did you fixed the Nullpointer problem because
>
> >  locationManager =
> >  (LocationManager)getSystemService(Context.LOCATION_SERVICE);
> >  try{
> >         LocationProvider locationProvider =
> >  locationManager.getProvider("test");
> >         Log.i(TAG,"success");
> >  }catch(Exception se){
> >         Log.i(TAG , "se " + se.toString());
> >  }
>
> >  gives me null pointer exception
>
> >  On 11 Mrz., 06:16, Markiv <[EMAIL PROTECTED]> wrote:
> >  > Hi Everybody,
>
> >  > Thanks for all your suggestions. I was finally able to figure out what
> >  > was going on and took care of it.
>
> >  > Sorry for not replying early. I was sick for a week. I am finally
> >  > feeling 75% better.
>
> >  > Vikram
>
> >  > On Mar 4, 9:15 pm, Craig <[EMAIL PROTECTED]> wrote:
>
> >  > > Tele Atlas has a good demo for this 
> > athttp://developerlink.teleatlas.com/pages/208_sample_applications.cfm
>
> >  > > If you're not interested in their registration process, you need to
> >  > > get the LocationManager
>
> >  > >   LocationManager locationManager =
> >  > > (LocationManager)getSystemService(Context.LOCATION_SERVICE);
>
> >  > > and you can pull your LocationProvider from that. Then you need to
> >  > > requestUpdates on the LocationManager using your LocationProvider, and
> >  > > an extended IntentReceiver that overrides onReceiveIntent. The
> >  > > onReceiveIntent method gets an Intent as a parameter - you can do
>
> >  > >   Location location = (Location)intent.getExtra("location");
>
> >  > > to get your Location.
>
> >  > > If you want to draw an icon at the Location you will probably also
> >  > > want to check out com.google.android.maps.Overlay.
>
> >  > > Hope that helps.
>
> >  > > -Craig
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to