using network based Location Methods
I develop one project in location based service . Already, i am find the current location (latitude and longitude) value in satellite based.
Now, i want to find current location (latitude and longitude) value in Network based.(without native API) .
How to do that?
2.location.getLocationMethod(); this method return Assisted GPS. Now, i want [B]set Location method in Location.MTE_CELLID [/B] . How to do?
Please Help me..
Re: using network based Location Methods
I moved this to own thread, since it was not related to the original thread where you posted this in. Anyway, you might also want to still identify the actual technology used. I would assume its Java, but just to make certain, so people who want to answer you would know that before answering.
Re: using network based Location Methods
Now , i am writing code for find current location in network based .. but , it does not working well..
I don't know the solution .
Any one know then help me..
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.location.*;
public class Locate extends MIDlet implements CommandListener {
Command Exit = new Command("Exit",Command.EXIT,0);
public Locate() {}
public void startApp() {
Form f=new Form("Waiting...");
f.append("Finding for location...");
f.addCommand(Exit);
f.setCommandListener(this);
Display.getDisplay(this).setCurrent(f);
try {
Criteria c=new Criteria();
c.setHorizontalAccuracy(1000);
c.setVerticalAccuracy(1000);
c.setCostAllowed(true);
c.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
LocationProvider lp=LocationProvider.getInstance(c);
Location loc=lp.getLocation(200);
QualifiedCoordinates qc=loc.getQualifiedCoordinates();
f.append("Alt: "+qc.getAltitude());
f.append("Lat: "+qc.getLatitude());
f.append("Long: "+qc.getLongitude());
} catch(Exception e) {
f.append("Exception: "+e);
}
}
public void pauseApp() {}
public void destroyApp(boolean destroy) {}
public void commandAction(Command c, Displayable s) {
if (c == Exit) {
destroyApp(true);
notifyDestroyed();
}
}
}
Re: using network based Location Methods
I am using nokia n95 mobile.
network based positioning is possible or not using j2me standard library.
please guide me...
Re: using network based Location Methods
[url]http://www.developer.nokia.com/Community/Discussion/showthread.php?230754-Get-Latitude-and-Longitude-values-using-network-based-positioning&p=870250&viewfull=1#post870250[/url]