Thursday 3 October 2013

How to implement appnext in android?


Step 1 :- Signup Appnext account :- http://appnext.com/

Download Sdk And Add in lib folder of your account.

Step 2 :- Add Your application and get code for interstitial and button.

Example :-
App launch :- 2b52f025-c87b-4146-9ef9-335475c3bcd7 and
More Games : - 97ce79d2-5fed-42e5-a8e8-b9ea89f8b298

Step 3 :- Create Demo application.

Step 4 :- Open android manifest.xml file.

 <uses-permission android:name="android.permission.INTERNET" />

  <receiver android:name="com.appnext.appnextsdk.ReferralReceiver" android:exported="true" >
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>

Step 5 :- Open java file and add this code.

 package com.example.appnext;

import com.appnext.appnextsdk.Appnext;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {
    Appnext appnext;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
       
        appnext = new Appnext(this);
       
        appnext.setAppID("2b52f025-c87b-4146-9ef9-335475c3bcd7");
       
       
        appnext.addMoreGamesLeft(" 97ce79d2-5fed-42e5-a8e8-b9ea89f8b298");
       
        appnext.addMoreGamesRight(" 97ce79d2-5fed-42e5-a8e8-b9ea89f8b298");
       
        appnext.showBubble();
    }
@Override
protected void onDestroy() {
    // TODO Auto-generated method stub
    appnext.hideBubble();
    super.onDestroy();
}
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

}


Step 6 :- Run Project.

Opt/Put :-




Download Demo Code :- https://dl.dropboxusercontent.com/u/109954727/Appnext.zip
 

2 comments:

  1. Can You Explain Please
    i dont understand how to Put Code

    ReplyDelete
  2. Can You Explain Please
    i dont understand how to Put Code

    ReplyDelete