java me - finding location in codename1 -


i'm following this tutorial finding locations on j2me device. in default codename1 mechanism, tries find out through gps. phone doesn't have it. opens bluetooth connect screen. i'm using following code.

com.codename1.location.locationmanager.getlocationmanager().getcurrentlocationsync(); 

in tutorial mentioned, change retrieval mechanism cell-id or network, doing following.

 //specify retrieval method online/cell-id  int[] methods = {(location.mta_assisted | location.mte_cellid | location.mte_shortrange | location.mty_networkbased)};   // retrieve location provider  provider = locationutil.getlocationprovider(methods, null); 

is there way similar stuff in codename1 ??

we don't support other methods in j2me devices @ point in time. can use native interfaces implement it.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -