Creating datawedge profiles in activities different than "Main"

I need to create couple profiles in my app.

Runnig following code in activity different than "Main" always returns failure.

EMDKResults results = mProfileManager.processProfile(profileName, ProfileManager.PROFILE_FLAG.SET, (String[]) null);
if (results.statusCode == EMDKResults.STATUS_CODE.FAILURE) {

   Log.e("Main", "Failed to process profile " + results.getExtendedStatusMessage());

My question is how to create/update datawedge profile in activity other than "Main"?,

Best regards,