Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by dannyskim · May 15, 2012 at 06:57 PM · androidmanifestopenfeint

OpenFeint Facade integration Unity Android

Does anybody have experience with integrating OpenFeint into their existing Android project. I've tested OpenFeint with their test project successfully on a variety of Android devices, but for the life of me can't figure out how to get it working in an existing project.

It comes down to editing the Manifest file properly, which is where I'm stuck. Can anybody show a working example of a Manifest file that has integrated OpenFeint's activities, permissions, and application tag changes? Using the new Unity 3.5 Manifest base file if possible would be appreciated.

EDIT: Still not understanding what is going wrong with my particular situation, so I'm going to post the two manifest files to see if someone can spot what needs to be changed.

OpenFeint included Manifest File:

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.gree.giraffe" android:versionCode="1" android:versionName="1.0">
     <uses-sdk android:minSdkVersion="7" />

 <uses-permission android:name="android.permission.INTERNET" />
 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
 <uses-permission android:name="android.permission.GET_ACCOUNTS" />
 
 
 <application>
     <activity android:name="com.gree.giraffe.BaseActivity">
         <intent-filter>
             <action android:name="android.intent.action.MAIN" />
             <category android:name="android.intent.category.LAUNCHER" />
         </intent-filter>
     </activity>
     
     <activity android:name="com.gree.giraffe.DialogActivity" android:theme="@android:style/Theme.Dialog"/>
     
     <!-- OpenFeint Activities -->
     <activity android:name="com.openfeint.internal.ui.IntroFlow"
               android:label="IntroFlow"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@style/OFNestedWindow" />
     <activity android:name="com.openfeint.api.ui.Dashboard"
               android:label="Dashboard"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@style/OFNestedWindow"/>
     <activity android:name="com.openfeint.internal.ui.Settings"
               android:label="Settings"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@style/OFNestedWindow"/>
     <activity android:name="com.openfeint.internal.ui.NativeBrowser"
               android:label="NativeBrowser"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@style/OFNestedWindow"/>
     
 </application>

My Manifest file merged with Unity3d:

 <?xml version="1.0" encoding="utf-8"?>
 <manifest
     xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.unity3d.player"
     android:installLocation="preferExternal"
     android:versionCode="1"
     android:versionName="1.0">
     <supports-screens
         android:smallScreens="true"
         android:normalScreens="true"
         android:largeScreens="true"
         android:xlargeScreens="true"
         android:anyDensity="true"/>

 <application
     android:icon="@drawable/app_icon"
     android:label="@string/app_name"
     android:debuggable="true">
     <activity android:name="com.unity3d.player.UnityPlayerProxyActivity"
               android:label="@string/app_name"
               android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
         <intent-filter>
             <action android:name="android.intent.action.MAIN" />
             <category android:name="android.intent.category.LAUNCHER" />
         </intent-filter>
     </activity>
     <activity android:name="com.unity3d.player.UnityPlayerActivity"
               android:label="@string/app_name"
               android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
     </activity>
     <activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
               android:label="@string/app_name"
               android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
         <meta-data android:name="android.app.lib_name" android:value="unity" />
         <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
     </activity>
     <activity android:name="com.unity3d.player.VideoPlayer"
               android:label="@string/app_name"
               android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
     </activity>
     
     <!-- OpenFeint Activities -->
             
     <activity android:name="com.openfeint.internal.ui.IntroFlow"
               android:label="IntroFlow"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@style/OFNestedWindow" />
     <activity android:name="com.openfeint.api.ui.Dashboard"
               android:label="Dashboard"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@style/OFNestedWindow"/>
     <activity android:name="com.openfeint.internal.ui.Settings"
               android:label="Settings"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@style/OFNestedWindow"/>
     <activity android:name="com.openfeint.internal.ui.NativeBrowser"
               android:label="NativeBrowser"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@style/OFNestedWindow"/>
     
     <!-- META-DATA -->
     
     <service android:name="com.prime31.billing.BillingService" />
     <receiver android:name="com.prime31.billing.BillingReceiver">
         <intent-filter>
             <action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
             <action android:name="com.android.vending.billing.RESPONSE_CODE" />
             <action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
         </intent-filter>
     </receiver>
 </application>
 

 <!-- PERMISSIONS -->
     <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="com.android.vending.BILLING" />
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
 

I followed the directions per OpenFeint's directions on editing the Manifest file, and it still doesn't work. The OpenFeint included Manifest file, when used with my existing projects, allows full use of OpenFeint in a built scene inside my own project, but when I try to insert the activity tags as they suggest on their website into the Unity Generated Manifest file, nothing works.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image HazeTI · May 16, 2012 at 01:15 PM 0
Share

I'm not sure how much use showing you my $$anonymous$$anifest file would be as I have a whole bunch of other stuff in there but the OF related activities I have that should be placed between your application tags:

     <activity android:name="com.openfeint.internal.ui.IntroFlow"
               android:label="IntroFlow"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@android:style/Theme.NoTitleBar"
               android:screenOrientation="landscape">
     </activity>
 
     <activity android:name="com.openfeint.api.ui.Dashboard"
               android:label="Dashboard"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@android:style/Theme.NoTitleBar"
               android:screenOrientation="landscape">
     </activity>
 
     <activity android:name="com.openfeint.internal.ui.Settings"
               android:label="Settings"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@android:style/Theme.NoTitleBar"
               android:screenOrientation="landscape">
     </activity>
 
     <activity android:name="com.openfeint.internal.ui.NativeBrowser"
               android:label="NativeBrowser"
               android:configChanges="orientation|keyboardHidden"
               android:theme="@android:style/Theme.NoTitleBar"
               android:screenOrientation="landscape">
     </activity>
avatar image dannyskim · May 16, 2012 at 07:52 PM 0
Share

Well, I added all the required activities to the $$anonymous$$anifest file in the Application tag space, and OF simply wont' work in my application. Do I have to change other things inside of the Unity generated $$anonymous$$anifest file? Such as the package name?

avatar image dannyskim · May 17, 2012 at 10:29 PM 0
Share

By researching and narrowing down the possibilities, it seems that the BaseActivity needs to be launched within my project, but I'm not quite sure how to do that. I would have to have some kind of intent I would assume in order to launch it so it's waiting for code calls from Unity.

I simply don't understand how anybody can get OpenFeint working integrated into their project without knowing how to manually edit the manifest file.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

google market filter by screen 1 Answer

Parse push notification doesn't show 0 Answers

I use Unity 5.2.2. Android Manifest It gives error. What can I do ? 0 Answers

How force the app to landscape in Android with a Manifest.xml? 1 Answer

XML Manifest: Unity and Android 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges