30.06.2011

Amazon Market not allowing Scoreloop Social Market – Solution

posted by Karsten

I’ve tried to have Android Apps been accepted to Amazon App Store with the Scoreloop Social Market, but was recently turned down in another game because the Social Market contain links to outside markets, i.e. Android Market.

This is not a unique experience as many people have reported similar issues (both acceptance and non-acceptance) due to this. Therefore, as the Samaritan I am, I thought I’d show how you remove the Social Market from the Scoreloop user interface. I don’t like doing it, as I believe I get a few downloads that way myself, but in times of trouble I believe this is one of the reasons why Scoreloop provide the source code to the developers.

Ok, the solution:

1:

Go to com.scoreloop.client.android.ui.ScoreloopManager and add

void setShowSocialMarke(boolean show);

to the interface.

 

2:

Go to com.scoreloop.client.android.ui.StandardScoreloopManager and add

private boolean showSocialMarket = true;

to the class.

 

3:

and add

@Override

public void setShowSocialMarke(boolean show) {

this.showSocialMarket = show;

}

 

4:

surround the line

description.addShortcutDescription(R.string.sl_market, R.drawable.sl_shortcut_market_default, R.drawable.sl_shortcut_market_active);

in the method

private ScreenDescription createScreenDescription(final User user, final Game game, final boolean useCached)

with a conditional on showScoialMarket, so that it reads:

if(showSocialMarket) {

description.addShortcutDescription(R.string.sl_market, R.drawable.sl_shortcut_market_default, R.drawable.sl_shortcut_market_active);

}

5:

Add the line:
ScoreloopManagerSingleton.get().setShowSocialMarke(false);

in your game Activity in onCreate()

6:

in method public ScreenDescription createEntryScreenDescription() in the line

description.setBodyDescription(new Intent(getContext(), EntryListActivity.class));

change to

if(this.showSocialMarket) description.setBodyDescription(new Intent(getContext(), EntryListActivity.class));

 

That’s it, this does the trick! Hope it helps you! Even though I really hate to shut these things off…

 

Share

2 Responses to “Amazon Market not allowing Scoreloop Social Market – Solution”

  1. Karsten says:

    Go and see this blog post: http://oster-lundqvist.com/karsten/?p=5157
    You have been warned…

  2. Karsten says:

    Ok. I have a rather intrusive solution to the above problem. It removes all friend finding through social networks. I really don’t like this solution, but it will do for now. Another might follow later as for now what you can do is:

    Include the line
    description.addShortcutDescription(R.string.sl_friends, R.drawable.sl_shortcut_friends_default, R.drawable.sl_shortcut_friends_active);

    in the if statement that you add under point 4. It should therefore read:

    if(showSocialMarket) {
    description.addShortcutDescription(R.string.sl_friends, R.drawable.sl_shortcut_friends_default, R.drawable.sl_shortcut_friends_active);
    description.addShortcutDescription(R.string.sl_market, R.drawable.sl_shortcut_market_default, R.drawable.sl_shortcut_market_active);
    }

Place your comment

Please fill your data and comment below.
Name
Email
Website
Your comment