Skip to content

Instantly share code, notes, and snippets.

Created January 27, 2011 01:11
Show Gist options
  • Save brettnak/797869 to your computer and use it in GitHub Desktop.
Save brettnak/797869 to your computer and use it in GitHub Desktop.
AppStoreHQ Deals - Developer Guide Snippets
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="">
public boolean onOptionsItemSelected( MenuItem item ) {
switch ( item.getItemId() ) {
Log.d( LOG_TAG, "Starting the AppStoreHQDealsController" );
* To kick off the Deals dialog flow call:
* AppStoreHQDealsController.processRebate( Context context, long appStoreHQAppId );
* Arguments:
* Context context:
* The running context of this activity. Just pass the
* running instance of the current activity, ie:
* 'ReferenceImplementation.this'
* Of course, if you're still in scope ( like we are here )
* you can just use 'this'.
* long appStoreHQAppId:
* The application id of your application on AppStoreHQ.
* You can find this from the URL of your application on AppStoreHQ.
* For example, AppESP's url is:
* and it's app id is 334556
ReferenceImplementation.sAppStoreHQAppId );
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment