Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 231

Yash Kumar
buzztouch Evangelist
Profile
Posts: 66
Reg: Jan 29, 2012
Jharkhand
660
04/06/12 01:16 AM (13 years ago)

Air-Push , Push Ads Integration eCPM above $10 ?

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
 
naguchennai
Android Fan
Profile
Posts: 28
Reg: Jun 26, 2011
india chennai
280
like
04/06/12 03:04 AM (13 years ago)
Simply i uninstall application who used Air-Push or this kind of ads in app.. may be ur client also.. i am not rcmand to use this.. any way thanks
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/06/12 03:59 AM (13 years ago)
Nice app you've been building there Yash - "hackfacebookaccounts" ?!?!?!?!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
04/06/12 04:37 AM (13 years ago)
Hilarious.
 
Yash Kumar
buzztouch Evangelist
Profile
Posts: 66
Reg: Jan 29, 2012
Jharkhand
660
like
04/06/12 05:06 AM (13 years ago)
@raveyd Ya . . . My More Apps related to hacking is made through buzztouch, which is :- Hackers Home https://play.google.com/store/apps/details?id=com.hackershome2&feature=more_from_developer#?t=W251bGwsMSwxLDEwMiwiY29tLmhhY2tlcnNob21lMiJd
 
Yash Kumar
buzztouch Evangelist
Profile
Posts: 66
Reg: Jan 29, 2012
Jharkhand
660
like
04/06/12 05:12 AM (13 years ago)
@raveyd Can we Integrate Paypal Mobile Library In Our buzztouch Apps ? If Yes Then Please Tell the way .. .
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/06/12 05:36 AM (13 years ago)
A friend of mine built a complete end to end paypal solution via a secure server for one of his apps (non-bt). Bearing in mind he's a professional high end programming nerd with nearly 30 years experience, it took him over a month to make it rock solid! It's not something I'd even want to think about thinking about! Personally, I'm waiting for the BT plugin :-)
 
Yash Kumar
buzztouch Evangelist
Profile
Posts: 66
Reg: Jan 29, 2012
Jharkhand
660
like
04/06/12 08:15 AM (13 years ago)
Ok Thanks for the reply :)
 

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.