Log in or register to post comments

QCAR & Mobclix

March 1, 2012 - 8:31am #1

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:

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

    <application android:icon="@drawable/app_icon" android:label="@string/app_name">
        <activity android:name="com.lucius.unity.test.CustomUnityActivity"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
		<activity android:name="com.google.ads.AdActivity" 
              android:configChanges="orientation|keyboard|keyboardHidden"
              />
               
        
	    <!-- Mobclix Required Parameters -->
	    <!-- position posibilities:  1=top-left, 2=top-center, 3=top-right, 4=bottom-left, 5=bottom-center, 6=bottom-right     -->
	    <meta-data android:name="adPosition" android:value="2"/> 
		<meta-data android:name="com.mobclix.APPLICATION_ID" android:value="1C7BB28F-464E-402B-B352-8AA6B1A28F89"/>
		<meta-data android:name="ADMOB_PUBLISHER_ID"  android:value="a14d66abaad4abc"/>
		
		<activity android:name="com.mobclix.android.sdk.MobclixBrowserActivity"
		android:theme="@android:style/Theme.Translucent.NoTitleBar"/>        
        
        <!-- make the following true if you want to override hardware buttons so methods like onCreateOptionsMenu() will have an effect -->
        <meta-data android:name="overrideHardButtons" android:value="false"/>
    </application>
    
    <!--uses-permission android:name="com.android.vending.CHECK_LICENSE" /-->
	<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"/>
</manifest>

and standard QCAR manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.qualcomm.QCARUnityPlayer"
    android:versionCode="1"
    android:versionName="1.0">
    <uses-sdk android:minSdkVersion="8" />
    <uses-feature android:name="android.hardware.camera" />
    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:anyDensity="true" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    
    <application
		android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
        android:debuggable="false">
        <activity android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity"
                  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.qualcomm.QCARUnityPlayer.QCARPlayerActivity"
                  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.qualcomm.QCARUnityPlayer.QCARPlayerNativeActivity"
                  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>
    </application>
</manifest>

<!-- android:installLocation="preferExternal" -->

I know that I can remove package names and manifets work.

Re: QCAR & Mobclix

March 6, 2012 - 12:33am #3

Thanks Kim

Ok. So, I wanna ask for help :)

Is anybody who has experience in using advertising plugins and Qcar together?
Is there any plugin that I can easy use?

Help needed. My app is on Android Market and I use only external advert links.

Re: QCAR & Mobclix

March 1, 2012 - 4:36pm #2

I'm guessing this won't be possible, given that both extensions subclass the main Unity activity. I don't think there is a way to reconcile the two activities.

- Kim

Log in or register to post comments