List of usage examples for android.location LocationManager sendExtraCommand
public boolean sendExtraCommand(String provider, String command, Bundle extras)
From source file:com.zoffcc.applications.zanavi.Navit.java
public static Boolean downloadGPSXtra(Context context) { Boolean ret = false;/* ww w.j a va2 s. co m*/ Boolean ret2 = false; try { LocationManager locationmanager2 = (LocationManager) context.getSystemService("location"); Bundle bundle = new Bundle(); //ret2 = locationmanager2.sendExtraCommand("gps", "delete_aiding_data", null); //ret = ret2; // System.out.println("ret0=" + ret); ret2 = locationmanager2.sendExtraCommand("gps", "force_xtra_injection", bundle); ret = ret2; //System.out.println("ret1=" + ret2); ret2 = locationmanager2.sendExtraCommand("gps", "force_time_injection", bundle); ret = ret || ret2; //System.out.println("ret2=" + ret2); } catch (Exception e) { //System.out.println("*XX*"); e.printStackTrace(); } return ret; }