Appucino

Integrating Appucino Into Your Project


  1. Open your application project.

  2. Add the Appucino Library to your project.
      In Eclipse workspace,
    • Right-click on your project
    • Select Properties
    • Select Android from the side menu
    • Inside Library Fieldset, click on the 'Add…' button and select Appucino-dist from the Menu

  3. Add the Appucino JAR files to your project
      While in the Project Properties in Eclipse Workspace,
    • Select Java Build Path from the side menu
    • Click on Libraries Tab
    • Click on 'Add JARs…'
    • Select "Appucino-dist/lib/AppucinoLibs.jar" and add it
    • Select "Appucino-dist/lib/Appucino.jar" and add it

  4. Switch to the Google API Android SDK
      While in the Project Properties in Eclipse Workspace,
    • Select Android
    • In Project Build Target select "Google APIs" for Platform 2.2 or over

  5. Modify your app's Manifest file, inside the <application> tag:
  6. Copy to clipboard
     
    <!-- *** appucino *** -->
    <uses-library android:name="com.google.android.maps" />
     
    <activity android:name="com.appucino.afkag" android:label="AFKAG" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.ChatsActivity" android:label="Chats"  android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation"  />
    <activity android:name="com.appucino.GamesActivity" android:label="Games"  android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.RegisterActivity" android:label="Games"  android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.ProfilesActivity" android:label="Profiles"  android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.LoginActivity" android:label="Login"  android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.LeadersActivity" android:label="Tastes" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.Settings" android:label="Settings" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.RoomList" android:label="RoomList" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.MUCConversationList" android:label="MUCConversationList" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.ScoreCheckinActivity" android:label="Check-in your Score " android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <service android:name="com.appucino.service.AppucinoConnectionService" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation"  />
    <activity android:name="com.appucino.FriendsActivity" android:label="FriendsActivity" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.FriendConversation" android:label="FriendsActivity" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.NeighbourActivity" android:label="NeighbourActivity" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.InboxActivity" android:label="InboxActivity" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.DummyActivity" android:label="DummyActivity" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation" />
    <activity android:name="com.appucino.ChallengeReceiver" android:label="InboxActivity" android:theme="@android:style/Theme.NoTitleBar" android:configChanges="keyboard|keyboardHidden|orientation">
                <intent-filter>
                    <action android:name="com.appucino.intent.action.CHALLENGE_RECEIVER" />
                </intent-filter></activity>
     
    <!--  *** appucino ***  -->

    Also, copy paste these in the permissions section:

    Copy to clipboard
     
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
     
    <permission android:name="YOUR_PACKAGE_NAME.permission.C2D_MESSAGE"
            android:protectionLevel="signature" />
        <uses-permission
            android:name="YOUR_PACKAGE_NAME.permission.C2D_MESSAGE" />
     
        <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

    Remember to change YOUR_PACKAGE_NAME above to your project's Package Name.


    And add the following Receiver to obtain Google's C2DM Alerts to your application:

    Copy to clipboard
     
    <receiver android:name="com.appucino.receivers.C2DMReceiver" android:permission="com.google.android.c2dm.permission.SEND">
              <!-- Receive the actual message -->
              <intent-filter>
                  <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                  <category android:name="PACKAGE_NAME" />
              </intent-filter>
              <!-- Receive the registration id -->
              <intent-filter>
                  <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                  <category android:name="PACKAGE_NAME" />
              </intent-filter>
          </receiver>

    Remember to change YOUR_PACKAGE_NAME above to your project's Package Name.


  7. Do a Clean Build and ensure that your application builds fine.
  • featured web games

    Ultimate Cricket
    on Web

  • featured web games

    Turbo Cricket Pro
    on Web

  • featured web games

    Heavy Duty Truck Parking
    on Web

  • featured web games

    School Bus Driver
    on Web

  • featured web games

    Race.One
    on Web

  • featured apps

    Turbo Cricket Pro
    on Android

  • featured apps

    Parking Frenzy
    on Android