I have 2 separate applications. From App1, I need to pass the location/destination to App2 so it will show in a popup.

I have tried Intents, SharedPreferences and even tried understanding ContentProviders (not good). Nothing seems to work.

Edit
----

Code using:

**App1: com.myapp.rider** - sending from rider app to driver app

```
Intent intent = new Intent("com.myapp.driver.Activities.DriverTracking");
intent.putExtra("destination", destination);
startActivity(intent);

```

**App2: com.myapp.driver** - receiving value from rider

```
Bundle bundle = getIntent().getExtras();
mDestination = (String) bundle.get("destination");
Log.d("STATUS_1", "Destination = " + mDestination);

```

**Add to Manifest in App2:**

```
<intent-filter>
   <action android:name="com.myapp.driver.Activities.DriverTracking" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>

```

The above I have tried and get following error:

```
 Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.myapp.driver.Activities.DriverTracking (has extras) }
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1878)

```

**Images**

[![enter image description here](https://i.stack.imgur.com/uGt3h.png)](https://i.stack.imgur.com/uGt3h.png)

Edit
----

Here is the error:

```
05-27 14:45:12.940 21851-21851/com.myapp.rider E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.myapp.rider, PID: 21851
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.rider/com.myapp.rider.Activities.RiderHome}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.putExtras(android.os.Bundle)' on a null object reference
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3253)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
    at android.app.ActivityThread.access$1100(ActivityThread.java:221)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:158)
    at android.app.ActivityThread.main(ActivityThread.java:7224)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
 Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.putExtras(android.os.Bundle)' on a null object reference
    at com.myapp.rider.Activities.RiderHome.sendIntent(RiderHome.java:355)

```