Android Intent Create gotoHome(Context context)

Here you can find the source of gotoHome(Context context)

Description

goto Home

Declaration

public static final void gotoHome(Context context) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static final void gotoHome(Context context) {
        Intent intent = new Intent(Intent.ACTION_MAIN);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.addCategory(Intent.CATEGORY_HOME);
        context.startActivity(intent);/*ww  w.j  a va  2s  .  co  m*/
    }
}

Related

  1. callPhone(Context context, String number)
  2. constructGoogleCalendarIntentVariant1()
  3. constructGoogleCalendarIntentVariant2()
  4. createNotification(Intent resultIntent, Context current, final Class destination)
  5. getExtraObject(Activity context, String key)
  6. locate(Context context, String chooserTilte, String lat, String lng, String addr)
  7. putParamters(Intent intent, Object[] parameters)
  8. to(Context context, Class cls)
  9. to(Context context, Class cls, Bundle data)