package tk.wlemuel.cotable.utils;

import android.content.Context;
import android.content.Intent;

import tk.wlemuel.cotable.activity.blog.view.DetailActivity;

/**
 * UIHelper
 *
 * @author Steve Lemuel
 * @version 0.1
 * @desc UIHelper
 * @created 2015/05/11
 * @updated 2015/05/11
 */
public class UIHelper {

    /**
     * Show Blog Details
     *
     * @param context context
     * @param blogId  blog id
     */
    public static void showBlogDetail(Context context, int blogId) {
        Intent intent = new Intent(context, DetailActivity.class);
        intent.putExtra("blog_id", blogId);
        context.startActivity(intent);
    }


}

@@ -28,16 +28,45 @@
 utils;%0A%0A
+import android.app.Activity;%0A
 import a
@@ -669,11 +669,583 @@
 %0A    %7D%0A%0A
+    /**%0A     * Call the system application with shares.%0A     *%0A     * @param context context%0A     * @param title   share title%0A     * @param url     share url%0A     */%0A    public static void showShareMore(Activity context, final String title, final String url) %7B%0A        Intent intent = new Intent(Intent.ACTION_SEND);%0A        intent.setType(%22text/plain%22);%0A        intent.putExtra(Intent.EXTRA_SUBJECT, %22Share: %22 + title);%0A        intent.putExtra(Intent.EXTRA_TEXT, title + %22 %22 + url);%0A        context.startActivity(Intent.createChooser(intent, %22Choose to share%22));%0A    %7D%0A%0A
 %0A%7D%0A

add showShareMore method to share the current content with other applications with the funcitons of sharing