/*
 * Copyright 2018 Midhun Harikumar
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.ae.apps.lib.common.utils.intents;

public class IntentUtils {


}

@@ -641,35 +641,1457 @@
 s;%0A%0A
-public class IntentUtils %7B%0A
+import android.content.Context;%0Aimport android.content.Intent;%0Aimport android.net.Uri;%0A%0A/**%0A * Helper functions for handling intents%0A *%0A * @since 4.0%0A */%0Apublic class IntentUtils %7B%0A%0A    /**%0A     * Returns an intent for sharing%0A     *%0A     * @param context           context%0A     * @param textResourceId    text resource%0A     * @param titleResourceId   title resource%0A     * @param subjectResourceId suibject resource%0A     * @return intent%0A     */%0A    public static Intent getShareIntent(final Context context,%0A                                        int textResourceId,%0A                                        int titleResourceId,%0A                                        int subjectResourceId) %7B%0A        Intent shareIntent = new Intent();%0A        shareIntent.setAction(Intent.ACTION_SEND);%0A        shareIntent.setType(%22text/plain%22);%0A        shareIntent.putExtra(Intent.EXTRA_TEXT, context.getString(textResourceId));%0A        shareIntent.putExtra(Intent.EXTRA_TITLE, context.getString(titleResourceId));%0A        shareIntent.putExtra(Intent.EXTRA_SUBJECT, context.getString(subjectResourceId));%0A        return shareIntent;%0A    %7D%0A%0A    /**%0A     * Creates an intent for URI%0A     *%0A     * @param context context%0A     * @param url     url%0A     * @return intent%0A     */%0A    public static Intent getUriIntent(final Context context, final String url) %7B%0A        Intent intent = new Intent();%0A        intent.setData(Uri.parse(url));%0A        return intent;%0A    %7D
 %0A%0A%7D%0A

add more intent util methods