Link donate :
Facebook :
Link Database new :
#OrderFoodAndroidEDMTDev #AndroidEDMTDev #EDMTDev
In this tutorial , i will show you update realtime location of Shippers

android development tutorial,
android programming tutorial,
android app development tutorial,
android tutorial for beginners ,
android app tutoria,
android studio tutorial,
learn android programming ,
android developer tutorial ,
android programming,
android development,
android studio tutorial for beginners,
android course,
android training,
android development course,
android app development course

Nguồn:https://missingsunglasses.com/

22 COMMENTS

  1. Hy can we display only small are like a state or small city high lighted on map and rest of area are underdevelopment

  2. Hi sir i've been following your tutorial many times and i've learn a lot from you 😀

    anyway sir i'm having a error :
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toString()' on a null object reference

    and i'm thinking its about this line:
    JSONObject jsonObject = new JSONObject(response.body().toString());
    i'm getting a null in this code but i have no idea what to check
    I hope you can help me sir 😀

  3. Hi, bro. After to test the app it shows me this errorr:
    Process: com.moagui.shipper, PID: 15259

    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toString()' on a null object reference

    Error in 'private void drawRoute' TrackingOrder.java > this line toString();
    JSONObject jsonObject = new JSONObject(response.body().toString());

    I don't know why I'm getting this error. toString is null, any suggestion? how could I call toString();

  4. hi bro how are you ? bro i getting this error please help me why this come ?

    2019-10-22 10:34:59.066 30650-30650/rb.c.foodshipper E/AndroidRuntime: FATAL EXCEPTION: main
    Process: rb.c.foodshipper, PID: 30650
    java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference
    at rb.c.foodshipper.Common.Common.createShippingOrder(Common.java:65)
    at rb.c.foodshipper.HomeActivity$1$1.onClick(HomeActivity.java:111)
    at android.view.View.performClick(View.java:7352)
    at android.widget.TextView.performClick(TextView.java:14177)
    at android.view.View.performClickInternal(View.java:7318)
    at android.view.View.access$3200(View.java:846)
    at android.view.View$PerformClick.run(View.java:27800)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7050)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

  5. GUYS PLEAASE CAN ANYONE HELP !!!!
    private void drawRoute(final LatLng yourLocation, final Request request) {

    //clear all polyline

    if (polyline != null)

    polyline.remove();

    if (request.getAddress() != null && !request.getAddress().isEmpty()) {

    mService.getGeoCode(request.getAddress()).enqueue(new Callback<String>() {

    @Override

    public void onResponse(Call<String> call, Response<String> response) {

    try {

    =====> JSONObject jsonObject = new JSONObject(response.body().toString()); <=======

    I'm getting this "Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference" probably my response is null but i dont know how ????

  6. sir please help!

    E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.example.justtapaushipper, PID: 8305

    java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference

    at com.example.justtapaushipper.Common.Common.createShippingOrder(Common.java:52)

    at com.example.justtapaushipper.HomeActivity$1$1.onClick(HomeActivity.java:109)

    at android.view.View.performClick(View.java:6294)

    at android.view.View$PerformClick.run(View.java:24770)

    at android.os.Handler.handleCallback(Handler.java:790)

    at android.os.Handler.dispatchMessage(Handler.java:99)

    at android.os.Looper.loop(Looper.java:164)

    at android.app.ActivityThread.main(ActivityThread.java:6494)

    at java.lang.reflect.Method.invoke(Native Method)

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

    E/UncaughtException: java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference

    at com.example.justtapaushipper.Common.Common.createShippingOrder(Common.java:52)

    at com.example.justtapaushipper.HomeActivity$1$1.onClick(HomeActivity.java:109)

    at android.view.View.performClick(View.java:6294)

    at android.view.View$PerformClick.run(View.java:24770)

    at android.os.Handler.handleCallback(Handler.java:790)

    at android.os.Handler.dispatchMessage(Handler.java:99)

    at android.os.Looper.loop(Looper.java:164)

    at android.app.ActivityThread.main(ActivityThread.java:6494)

    at java.lang.reflect.Method.invoke(Native Method)

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

    where i supposed to find that double on null object

  7. hey EDMT,
    i have tried everything but i cannot get the orderLocation neither is a polyline drawn. I have tested my google API key and it works. i suspect the problem is somewhere here:
    if (mCurrentMarker != null)

    mCurrentMarker.setPosition(new LatLng(mLastLocation.getLatitude(),mLastLocation.getLongitude()));

    //Update location on Firebase

    Common.updateShippingInformation(Common.currentKey, mLastLocation);

    mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(mLastLocation.getLatitude(),mLastLocation.getLongitude())));

    mMap.animateCamera(CameraUpdateFactory.zoomTo(16.0f));

    drawRoute(new LatLng(mLastLocation.getLatitude(),mLastLocation.getLongitude()), Common.currentRequest);

    i am stuck however. No crashes in the logcat.

  8. Hi ,I enabled google maps prizing but I got an error :

    "error_message" : "You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account",

    "results" : [],

    "status" : "REQUEST_DENIED"

    How can I solve it ?

    Logcat:

    /System.err: org.json.JSONException: Index 0 out of range [0..0)

    at org.json.JSONArray.get(JSONArray.java:293)

    at org.json.JSONArray.getJSONObject(JSONArray.java:521)

  9. I'm very depressed i always get this error " Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference" in the line "Global.createShipperOrder(adapter.getRef(position).getKey(),

    Global.currentShipper.getPhone(),

    mLastLocation"
    and couldn't find the solution…please help me.

  10. Can u help me tu build a simple app in which status of complaint like pending, in process and completed can bi displayed

  11. The blue line direction is not showing up, even the drawable box, help

    I already watched this many times, but still not getting a better result

  12. after two weeks Error with Map Location finally i gated the solution but what i gone is i don't see the polyline between the shipper and order destination what i can do please help me bro. thank for your full support.

  13. Is that the reason why we cant get the drawing route between two spots(blue line drawing)?
    https://developers.google.com/maps/billing/important-updates
    We need to connect our developers account for our apis with a billing account?

  14. Sir, If I want the shipper receives notification when he arrives to order destination , what can I do for this feature?

  15. Hello Sir, how can the user recieve notification(the shipper has been arrived ) when the shipper is arrived to home ?

  16. i am not getting shipper and client location and when i checked respone i get "keyless access to google maps platform is deprecated"

LEAVE A REPLY

Please enter your comment!
Please enter your name here