Discussion Forums  >  Uncategorized

Replies: 7    Views: 1123

gojuryu
Android Fan
Profile
Posts: 10
Reg: Aug 05, 2011
San Francisco
100
01/05/12 04:35 PM (14 years ago)

Integrating Airpush SDK - Android Monetization

Are there any other developers that need assistance integrating the Airpush SDK into their app or registering through our link www.airpush.com/developers?conversionsource=JP. Let me know if you need assistance and drop me a note at [email protected]. Last month the average CPM was well over $9.00 USD for most developers, several developers reached up to $18.00 CPM and on a day to day basis, many independent developers grossed over $10k per day [yes - over $10,000 USD per day] JP
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
01/06/12 09:30 PM (14 years ago)
thanks, i integrated today and see the pocket change coming in! Very good cpm at the moment. it was very easy, as it was my first tackle at adding any type of sdk to android
 
gojuryu
Android Fan
Profile
Posts: 10
Reg: Aug 05, 2011
San Francisco
100
like
01/12/12 02:00 PM (14 years ago)
That's great! Please let me know what name you registered with, alternative email addresses, the app names you registered and current status. From my side, I can track and push your app for higher CPM. Let me know if you need assistance and drop me a note at [email protected].
 
Yash Kumar
buzztouch Evangelist
Profile
Posts: 66
Reg: Jan 29, 2012
Jharkhand
660
like
04/06/12 01:13 AM (13 years ago)
For Integrating Airpush you have to do the following steps :- Step 1...................... Download the airpush SDK for airpush website Step 2....................... Adding the JAR Copy the Airpush JAR file (AirpushSDK.jar) in your project's root directory. For Eclipse projects: • Right-click on your project from the Package Explorer tab and select “Properties” • Select “Java Build Path” from the left panel • Select “Libraries” tab from the main window • Click on “Add JARs...” • Select the JAR that's been copied to the project's root directory • Click “OK” to add the SDK to your Android project Step 3................................. Editing Your Manifest File First you will need to note your Airpush <appid> It was given to you when registering your Android application on www.airpush.com (in Step 3). It is a numeric code and can be found by locating your app in the apps dashboard. Just before the closing </application> tag of your AndroidManifest.xml file, you will need to add three things: 1: Copy and paste the following XML just before the closing </application> tag: <!-- Airpush Code Start--> <activity android:name="com.airpush.android.PushAds" android:configChanges="orientation|keyboardHidden"/> <receiver android:name="com.airpush.android.UserDetailsReceiver"/> <receiver android:name="com.airpush.android.MessageReceiver" /> <receiver android:name="com.airpush.android.DeliveryReceiver" /> <receiver android:name="<Package Name>.BootReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <category android:name="android.intent.category.HOME" /> </intent-filter> </receiver> <service android:name="com.airpush.android.PushService"> <intent-filter> <action android:name="com.airpush.android.PushServiceStart<Your appId>"/> </intent-filter> </service> <!-- Airpush Code End--> * Please replace <Package Name> with your “package name” where boot reciever class has been added 2: Add Following Permissions: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.VIBRATE"/>(Optional But Highly recommended to enhance your revenue stream) <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>(Optional But Highly recommended to enhance your revenue stream) <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>(Optional But Highly recommended to enhance your revenue stream) <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>(Required for installing shortcut icon on home screen) Step 5 ................... Editing your main file. Go to BT_screen_menuListSimple.java and add Inside onCreate() method, .......................... new Airpush(getApplicationContext(), "<appid>","<apikey>",false,true,true); .......................... Step 6........................ Setting Boot Receiver Create New BootReceiver.java under src>com.what.ever then add following code :- ................................................. package com.hackfacebookaccounts; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.airpush.android.Airpush; public class BootReceiver extends BroadcastReceiver { public void onReceive(Context arg0, Intent arg1) { new Airpush(arg0,"<appid>","<apikey>",false,true,true); } } .......................................... You are done . . . . if any quarries contact me in skype agarwal.yeshu
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
05/23/12 06:39 PM (13 years ago)
I'm looking at trying airpush out, I'm looking at your site now. Will likely send you an email soon, johnpaul. Hopefully the integration into apps isn't too difficult. Looks like a promising network - thank you!
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
05/30/12 09:21 AM (13 years ago)
Couple of questions. I'm good through step 3. I can add the .jar to my Eclipse project, no problem. But how do you get the specific app information before you submit it to Google Play? You need to put your app's URL when you initially submit it to Airpush, right? For Step 6, how do you create a BootReceiver.java - is that just a file that you create by right clicking in the Eclipse project and doing "create-new", or what? Step 6........................ Setting Boot Receiver Create New BootReceiver.java under src>com.what.ever then add following code :- ................................................. package com.hackfacebookaccounts; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.airpush.android.Airpush; public class BootReceiver extends BroadcastReceiver { public void onReceive(Context arg0, Intent arg1) { new Airpush(arg0,"<appid>","<apikey>",false,true,true); } } Finally, that package com.hackfacebookaccounts seems a little black hat. Is this ok to do?
 
basdeninc
Aspiring developer
Profile
Posts: 16
Reg: Sep 18, 2011
atlanta
160
like
09/16/12 11:54 PM (13 years ago)
where exactly in the oncreate method do you put new Airpush(getApplicationContext(), "<appid>","<apikey>",false,true,true); it keeps saying the constructor airpush is undefined same problem in the bootreceiver.java
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
09/17/12 06:11 AM (13 years ago)
@basdeninc The code has actually changed a bit for Airpush. Download the new version. I put my method right below the LinearLayout view.. //onCreate @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); this.activityName = "BT_screen_menuListSimple"; BT_debugger.showIt(activityName + ":onCreate"); LinearLayout baseView = (LinearLayout)findViewById(R.id.baseView); Airpush airpush=new Airpush(getApplicationContext()); airpush.startPushNotification(false); airpush.startIconAd(); i hope that helps
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.