I have an app and I want to re-brand it. This is my code for sharing intent:
String shareBody = "https://play.google.com/store/apps/details?id=" + mContext.getPackageName();
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, mContext.getResources().getString(R.string.enjoy_this_app));
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
mContext.startActivity(Intent.createChooser(sharingIntent, "Please Choose"));
I have changed the package name EVERY WHERE in the project but still the mContext.getPackageName() returns the old name. (the package name is changed in manifest, gradle files, from project pane...)
I checked many posts here and I did everything recommended. Nothing worked. Posts I checked:
Android Studio Rename Package How to change package name of an Android Application How to change package name in android studio? Android Studio Rename Package
any idea what is going wrong?
thanks in advance.