najam999
Apple Fan
Profile
Posts: 3
Reg: Feb 01, 2013
Lahore
30
03/04/13 05:05 AM (12 years ago)

AirPush SDK Integration in Eclipse

Hi, I read tutorial on integrating Airpush. But I am confused on one step as I am new to Android development. It is Step-3, Where it says Editing your Activity_base.java file. I have located the file and I can see it content in editor but from there I don't know what to do? Where I post those lines in it? Kindly explain it. Thanks NAJ
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
03/04/13 05:28 AM (12 years ago)
in the oncreate function just before it ends.. look for } //onStart @Override protected void onStart() { and replace it with Airpush airpush=new Airpush(getApplicationContext()); airpush.startPushNotification(false); } //onStart @Override protected void onStart() {
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
03/04/13 05:30 AM (12 years ago)
i was posting but rishav just posted @rishav what abut exam lol :P
 
najam999
Apple Fan
Profile
Posts: 3
Reg: Feb 01, 2013
Lahore
30
like
03/04/13 05:51 AM (12 years ago)
Hi Rishav, Thanks for reply. I have pasted the code as you mentioned and it looks something like this: } Airpush airpush=new Airpush(getApplicationContext()); airpush.startPushNotification(true); airpush.startIconAd(); airpush.startSmartWallAd(); } //onStart @Override protected void onStart() { BT_debugger.showIt(activityName + ":onStart (BASE CLASS)"); But I am not receiving any Ads in the Simulator, Is there anything I am doing wrong?
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
03/04/13 06:47 AM (12 years ago)
the code is correct. the ad will automatically start apperaing once the users start using the app.. don't use so many ad codes at once as the app may crash. like for example use the startwall ad in some screen other then the mode screen. to do that edit the specific java file of that screen's plugin and just call the smart wall there in the oncreate method.. Airpush airpush=new Airpush(getApplicationContext()); airpush.startSmartWallAd(); } //onStart @Override
 

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.