I am trying to send a set of data from one Activity under project A , package a , into another Activity under project B , package b for Android project integration.
How to modify the Intent myintent = new Intent () in order can such be achieved?
The below is my part of code of project A, package a ..
try {
Intent myIntent = new Intent();
Bundle myData = new Bundle();
myData.putInt("cntKey", contractKey);
myData.putInt("workTypeKey", workType);
myData.putInt("estateIDKey", estateID);
myData.putInt("workIDKey", workID);
myData.putInt("blockIDKey", blockID);
myData.putInt("districtIDKey", districtID);
myData.putString("estateRoomNumKey", estateRoomNumber);
myData.putString("estateKey", estate);
myData.putString("blockKey", block);
myIntent.putExtras(myData);
startActivityForResult(myIntent,0);
} catch (Exception e) {
Toast.makeText(getBaseContext(), e.getMessage(), Toast.LENGTH_LONG).show();
}
Now I am trying to pass some data from one Activity , package a , project A into another Activity, package b , Project B
The Project A itself is a library project.
What should I begin with if using Indents and Bundle?