Is there any way to get the GPS location of a device using Processing?

edited August 2017 in Android Mode

I want to send it to another device to be used by my application.

Answers

  • By "device", do you mean that the Processing sketch will be running on an Android mobile device?

  • @irrational_pi===

    like @jeremydouglass i don't understand exactly what you want; yet getting the GPS location is very easy with 3 imports from android:

    import android.location.Location;
    import android.location.LocationListener;
    import android.location.LocationManager;
    

    Then what do you mean by "sending"??? - SMS? mail? wifi? Bluetooth?

  • Don't forget to enable the proper permission.

    Kf

Sign In or Register to comment.