Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

QCAR Mobclix

Discussion in 'Android' started by mRadek, Mar 1, 2012.

  1. mRadek

    mRadek

    Joined:
    Feb 17, 2009
    Posts:
    25
    I have plugin for Mobclix and AdMob.

    My problem is how to make working QCAR Mobclix in one Apk.

    Have I to connect/merge AndroidManifest?
    I try, but no results.

    Could somebody help me?

    Here is the Mobclix plugin manifest:
    Code (csharp):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    3.       package="com.your.android.namespace"
    4.       android:versionCode="1"
    5.       android:versionName="1.0">
    6.     <uses-sdk android:minSdkVersion="7" />
    7.  
    8.     <application android:icon="@drawable/app_icon" android:label="@string/app_name">
    9.         <activity android:name="com.lucius.unity.test.CustomUnityActivity"
    10.                   android:label="@string/app_name">
    11.             <intent-filter>
    12.                 <action android:name="android.intent.action.MAIN" />
    13.                 <category android:name="android.intent.category.LAUNCHER" />
    14.             </intent-filter>
    15.         </activity>
    16.         <activity android:name="com.google.ads.AdActivity"
    17.               android:configChanges="orientation|keyboard|keyboardHidden"
    18.               />
    19.                
    20.        
    21.         <!-- Mobclix Required Parameters -->
    22.         <!-- position posibilities:  1=top-left, 2=top-center, 3=top-right, 4=bottom-left, 5=bottom-center, 6=bottom-right     -->
    23.         <meta-data android:name="adPosition" android:value="2"/>
    24.         <meta-data android:name="com.mobclix.APPLICATION_ID" android:value="1C7BB28F-464E-402B-B352-8AA6B1A28F89"/>
    25.         <meta-data android:name="ADMOB_PUBLISHER_ID"  android:value="a14d66abaad4abc"/>
    26.        
    27.         <activity android:name="com.mobclix.android.sdk.MobclixBrowserActivity"
    28.         android:theme="@android:style/Theme.Translucent.NoTitleBar"/>        
    29.        
    30.         <!-- make the following true if you want to override hardware buttons so methods like onCreateOptionsMenu() will have an effect -->
    31.         <meta-data android:name="overrideHardButtons" android:value="false"/>
    32.     </application>
    33.    
    34.     <!--uses-permission android:name="com.android.vending.CHECK_LICENSE" /-->
    35.     <uses-permission android:name="android.permission.INTERNET"/>
    36.     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    37.     <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    38. </manifest>
    and standard QCAR manifest:
    Code (csharp):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest
    3.     xmlns:android="http://schemas.android.com/apk/res/android"
    4.     package="com.qualcomm.QCARUnityPlayer"
    5.     android:versionCode="1"
    6.     android:versionName="1.0">
    7.     <uses-sdk android:minSdkVersion="8" />
    8.     <uses-feature android:name="android.hardware.camera" />
    9.     <supports-screens
    10.         android:smallScreens="true"
    11.         android:normalScreens="true"
    12.         android:largeScreens="true"
    13.         android:anyDensity="true" />
    14.     <uses-permission android:name="android.permission.WAKE_LOCK" />
    15.     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    16.     <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    17.     <uses-permission android:name="android.permission.INTERNET" />
    18.     <uses-permission android:name="android.permission.CAMERA" />
    19.     <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    20.    
    21.     <application
    22.         android:icon="@drawable/app_icon"
    23.         android:label="@string/app_name"
    24.         android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    25.         android:debuggable="false">
    26.         <activity android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity"
    27.                   android:label="@string/app_name"
    28.                   android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
    29.             <intent-filter>
    30.                 <action android:name="android.intent.action.MAIN" />
    31.                 <category android:name="android.intent.category.LAUNCHER" />
    32.             </intent-filter>
    33.         </activity>
    34.         <activity android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerActivity"
    35.                   android:label="@string/app_name"
    36.                   android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
    37.         </activity>
    38.         <activity android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerNativeActivity"
    39.                   android:label="@string/app_name"
    40.                   android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
    41.             <meta-data android:name="android.app.lib_name" android:value="unity" />
    42.             <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
    43.         </activity>
    44.         <activity android:name="com.unity3d.player.VideoPlayer"
    45.                   android:label="@string/app_name"
    46.                   android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
    47.         </activity>
    48.     </application>
    49. </manifest>
    50.  
    51. <!-- android:installLocation="preferExternal" -->
    I know that I can remove package names and manifets work.
     
  2. mRadek

    mRadek

    Joined:
    Feb 17, 2009
    Posts:
    25
    No body help me? :(
     
  3. mRadek

    mRadek

    Joined:
    Feb 17, 2009
    Posts:
    25
    Sorry, but bump. Help needed :)

    Can somebody help me connect Mobclix and QCAR?
     
  4. Moredice_legacy

    Moredice_legacy

    Joined:
    Jan 31, 2010
    Posts:
    101
    Perhaps this question is better addressed to the companies behind either Mobclix or QCAR?