title: The method setDefaultPushCallback from the type PushService is deprecated using android
body: <p>I am newbie in android. I have been dealing with the problem of <code>deprecated method</code> at <code>push service</code> using <code>parse</code> services. I have followed similar question for the similar problem here but can't get the solution. In My main <code>application class</code> i am dealing with this problem, the code is given below for that one.</p>
  
  <pre><code>public class MApplication extends Application {
      private static MApplication mInstance;
  
      @Override
      public void onCreate() {
          super.onCreate();
  
          mInstance = this;
          Parse.initialize(this, JNI.stringFromJNI001(), JNI.stringFromJNI010());
  
          // Specify an Activity to handle all pushes by default.
          PushService.setDefaultPushCallback(this, MainLandingActivity.class);
  // setDefaultPushCallback shows deprecated method here..
  
       ParseACL defaultACL = new ParseACL();
          // Optionally enable public read access.
          defaultACL.setPublicReadAccess(true);
          defaultACL.setPublicWriteAccess(true);
          ParseACL.setDefaultACL(defaultACL, true);
  
      }
  
      public static MApplication getInstance() {
          return mInstance;
      }
  
  }
  </code></pre>
  
  <p>In my <code>manifest</code> i am using this one:</p>
  
  <pre><code>&lt;service android:name="com.parse.PushService" /&gt;
  
  
          &lt;receiver android:name="com.parse.ParseBroadcastReceiver" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
                  &lt;action android:name="android.intent.action.USER_PRESENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  </code></pre>
  
  <p>From this <em>link</em>  <a href="https://teamtreehouse.com/forum/app-crash-on-push-test" rel="noreferrer">https://teamtreehouse.com/forum/app-crash-on-push-test</a> i saw that i have to use it like the following method, but i cant figure it out how to use this and resolve my problem. </p>
  
  <pre><code>public class Receiver extends ParsePushBroadcastReceiver {
  
      @Override
      public void onPushOpen(Context context, Intent intent) {
          Intent i = new Intent(context, MainActivity.class);
          i.putExtras(intent.getExtras());
          i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          context.startActivity(i);
      }
  }
  </code></pre>
  
  <p>Please help me for this problem. You help will be appreciated.</p>