iam using intent to call activity here and i need to send to long variable to the other acitivity ?
Porjct.java
Intent i = new Intent(ProjectList.this,RoleList.class);
Bundle c = new Bundle();
c.putLong("PID", projectID );
c.putLong("CTSID", castingTimeSlotID);
i.putExtras(c);
startActivityForResult(i,0);
finish();
RoleList.java
public void onActivityResult(int requestCode, int resultCode, Intent data) {
Bundle c = new Bundle();
c = data.getExtras();
projectID = b.getLong("PID");
castingTimeSlotID = b.getLong("CTSID");}
this is not working , Please help me out?