Package javax.microedition.location

Examples of javax.microedition.location.LocationProvider


                 * @see java.lang.Thread#run()
                 */
                public void run() {
                    final BlackBerryCriteria oldBBCriteria = _bbCriteria;
                    _bbCriteria.setMode(GPSInfo.GPS_MODE_CDMA_MS_ASSIST);
                    LocationProvider tempProvider = null;

                    try {
                        tempProvider =
                                LocationProvider.getInstance(_bbCriteria);
                    } catch (final LocationException e) {
                        log(e.toString());
                    }

                    if (tempProvider != null) {
                        log("Clearing VZ credentials. Please wait...");

                        try {
                            Thread.sleep(2000);
                        } catch (final InterruptedException e) {
                            log(e.toString());
                        }

                        GPSSettings.setPDEInfo("127.0.0.1", 0);

                        try {
                            Thread.sleep(2000);
                        } catch (final InterruptedException e) {
                            log(e.toString());
                        }

                        try {
                            tempProvider.getLocation(1);
                        } catch (final Exception e) {
                            log(e.toString());
                        }

                        try {
View Full Code Here


            final Thread resetThread = new Thread() {
                /**
                 * @see java.lang.Thread#run()
                 */
                public void run() {
                    LocationProvider tempProvider = null;

                    try {
                        tempProvider = LocationProvider.getInstance(_criteria);
                    } catch (final LocationException e) {
                        log(e.toString());
                    }

                    if (tempProvider != null) {
                        log("Clearing VZ credentials. Please wait...");

                        try {
                            Thread.sleep(2000);
                        } catch (final InterruptedException e) {
                            log(e.toString());
                        }

                        GPSSettings.setPDEInfo("127.0.0.1", 0);

                        try {
                            // Sleep so the PDE has time to be set up
                            Thread.sleep(2000);
                        } catch (final InterruptedException e) {
                            log(e.toString());
                        }

                        try {
                            tempProvider.getLocation(1);
                        } catch (final Exception e) {
                            log(e.toString());
                        }

                        try {
View Full Code Here

TOP

Related Classes of javax.microedition.location.LocationProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.