Samsung Galaxy Store Submission Best Practices
This article contains best practices for submitting your app to the Samsung Galaxy Store. Failure to implement these items can result in having your app suspended from the Galaxy Store until they are addressed.
Exit the App When Pressing the Hardware Back Button
Exit your app when the the hardware back button is pressed while the main screen is displayed. This will usually be your main menu or title screen.
Handle the back key in your root activity:
public class RootActivity extends Activity
{
@Override
public void onBackPressed()
{
// Be sure to remove the call to super.onBackPressed()
// super.onBackPressed();
// Optionally, you could show a "Are you sure you want to exit" prompt
// (Just make sure the prompt can be confirmed via hitting back again)
Intent intent = new Intent();
intent.putExtra("EXIT", true);
setResult(RESULT_OK, intent);
finish();
}
}
Handle the back key in the scene representing your main screen:
public class YourScript : MonoBehavior
{
private void Update()
{
//KeyCode.Escape is the Android back key
if (Input.GetKeyDown(KeyCode.Escape))
{
// Optionally, you could show a "Are you sure you want to exit" prompt
// (Just make sure the prompt can be confirmed via hitting back again)
Application.Quit();
}
}
}
Increment the Version Code and Version Name
Be sure to update both the versionCode
AND the versionName
before submitting. The Galaxy Store relies on the former to determine which version of your app is the most recent. Failure to do so can cause users to unintentionally download a previous version. Refer to the official documentation for more information.
Do Not Select Iran for Distribution
Developers have reported that their apps were rejected for containing inappropriate content as a result from selecting Iran as a country for distribution. As a precaution, please do not select Iran as a country for distribution when submitting your app to the Galaxy Store.