×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Question 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 set Location method in Location.MTE_CELLID . How to do?
    Please Help me..

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,174

    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.

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    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();
    }
    }
    }

  4. #4
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    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...

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: using network based Location Methods


Similar Threads

  1. Problem getting network-based location
    By campbeltonian in forum [Archived] Qt Mobility Project
    Replies: 0
    Last Post: 2010-05-04, 15:10
  2. Network based location in Python?
    By miohtama in forum Symbian
    Replies: 4
    Last Post: 2007-12-31, 09:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×