@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.menu); layoutInflater = this.getLayoutInflater(); // overridePendingTransition(android.R.anim.slide_in_left,android.R.anim.slide_out_right); // startService(new Intent(this, LocationService.class)); GridView gridView = (GridView) findViewById(R.id.gridView); gridView.setOnItemClickListener(itemClickListener); gridView = (GridView) findViewById(R.id.gridView); gridView.setAdapter(new ImageAdapter(this)); peopleNearByIcon = (ImageView) findViewById(R.id.peopleNearByNotification); peopleNearByIcon.setOnClickListener(this); friendRequestsIcon = (ImageView) findViewById(R.id.friendRequestNotification); friendRequestsIcon.setOnClickListener(this); nameText = (TextView) findViewById(R.id.userName); nameText.setOnClickListener(this); userImage = (ImageView) findViewById(R.id.userImage); userImage.setOnClickListener(this); updateImageNameStrip(); if (pd != null) pd.dismiss(); // VISH Intent i = new Intent(getApplicationContext(), NotificationService.class); startService(i); }
@Override protected void onResume() { super.onResume(); String errorMsg = getIntent().getStringExtra("errorToast"); if (errorMsg != null && !"".equals(errorMsg.trim())) { CustomToast.showCustomToast( getApplicationContext(), errorMsg, Constants.TOAST_VISIBLE_LONG, layoutInflater); } }