x


Using Android JAR library (Smaad SDK) with Unity

I have to integrate a Japanese Ad-Service (similar like AdMob) to a Unity Android game and have problems getting this to work. It's pretty easy to get it to work in an Android project but I just can't get it working in the Unity Android game.

To integrate it in an Android project all I need to do is adding this code:

    import jp.gmotech.MoreApps.MoreAppsActivity;
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;

    public class MySmaadActivity extends Activity {

        @Override
       public void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);

           Intent i = new Intent(getApplication(), MoreAppsActivity.class);
           i.putExtra("MoreAppsZoneId", "MY_USER_ID");
           startActivity(i);
        }

    }

What I need to do now is to have the exact same functionality in the Unity Android game. So by pressing a button a window should open displaying the content of MoreAppsActivity.class.

I already integrated TapJoy to Unity which works great. So I think the namespace with a second Android plugin might be a problem?

I've followed a lot "creating an Android plugin for Unity" tutorials already but so far I had no luck getting this to work. If someone could help me with a step-by-step tutorial that would be great. Especially the namespace part and how to actually call the MoreAppsActivity.cass (Android view) is a bit confusing to me.

Thanks a lot for any help.

more ▼

asked May 28 '12 at 05:53 AM

taar1 gravatar image

taar1
36 5 5 6

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Okay, I figured out how to implement Smaad SDK into a Unity Android project. I've written a detailed tutorial on how to integrate this.

Here is the link: Tutorial on how to integrate Smaad SDK in a Unity Android game

more ▼

answered Jun 05 '12 at 02:13 PM

taar1 gravatar image

taar1
36 5 5 6

(comments are locked)
10|3000 characters needed characters left

Thanks for your valuable sharing.

more ▼

answered Dec 21 '12 at 08:59 AM

cenk5355 gravatar image

cenk5355
16

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2476
x15
x11

asked: May 28 '12 at 05:53 AM

Seen: 1475 times

Last Updated: Dec 21 '12 at 08:59 AM