I use the android file explorer, not the explorer, showing my classes,
but the one showing me data , system, tmp etc. i use the same data in
my 'test' folder as the data in 'gps' - the files location, mnea and
proerties. i don't use the adb to copy the 'test' folder into  /data/
misc/location. I simly dragg the folder in as in normal 'windows'
window. it copies it fine, i see it right next to the 'gps' folder.
but when i lunch i have java.lang.IllegalArgumentException for the
provider 'test'. must I register the provider somehow? i've noticed
that when i close the emulator and start it again my 'test' folder is
deleted.

On 24 Mrz., 20:59, "vikram shetty" <[EMAIL PROTECTED]> wrote:
> Glad atleast the default gps folder worked. Thats a start.
>
> Now, First when you mention fileexplorer in eclipse. I hope you are
> using the fileexplorer from within the emulator and not creating the
> /data/misc/location directory, because thats the mistake initially
> which I made.
>
> Also, I wouldn't remove the gps directory because I think when android
> starts up it looks for that directory and some of the exceptions you
> are seeing might be related to that.
>
> Instead what you should do is create a folder called test in
> data/misc/location and move content of gps directory in there and see
> if that works.
>
> Vikram
>
> On Mon, Mar 24, 2008 at 3:40 PM, goro <[EMAIL PROTECTED]> wrote:
>
> >  10x Vikram. I've forgot to set the permissions :(. now it works with
> >  the default gps folder. the problem is that it does not work with the
> >  test folder. I've created test like this: from the filexploerer in
> >  eclipse i've copied the gps folder to the desktop, i've renamed it to
> >  'test' and dragged it into /data/misc/location. it returns now :
>
> >  ERROR/JavaBinder(523): *** Uncaught remote exception!  (Exceptions are
> >  not yet supported across processes.)
> >  ERROR/JavaBinder(523): java.lang.IllegalArgumentException:
> >  provider=test
> >  ERROR/JavaBinder(523):     at
> >  
> > android.server.LocationManagerService.getProviderInfo(LocationManagerService.java:
> >  649)
> >  ERROR/JavaBinder(523):     at android.location.ILocationManager
> >  $Stub.onTransact(ILocationManager.java:127)
> >  ERROR/JavaBinder(523):     at
> >  android.os.Binder.execTransact(Binder.java:274)
> >  ERROR/JavaBinder(523):     at android.dalvik.NativeStart.run(Native
> >  Method)
>
> >  Thata meens that I haven't created the test folder the right way. What
> >  am I doing wrong?
>
> >  On 24 Mrz., 20:05, "vikram shetty" <[EMAIL PROTECTED]> wrote:
> >  > Have you set the permissions in the androidmanifest file
>
> >  >             <uses-permission
> >  > android:name="android.permission.ACCESS_LOCATION"></uses-permission>
> >  >             <uses-permission
> >  > android:name="android.permission.ACCESS_GPS"></uses-permission>
> >  >             <uses-permission
> >  > android:name="android.permission.ADD_SYSTEM_SERVICE"></uses-permission>
>
> >  > Also, Have you tried putting break points and running this through a
> >  > debugger and see exactly at what point you get the NullPointer
> >  > Exception.
>
> >  > Vikram
>
> > > On Mon, Mar 24, 2008 at 2:52 PM, goro <[EMAIL PROTECTED]> wrote:
>
> >  > >  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