Discussion Forums  >  Suggestions, Ideas, Wish List

Replies: 38    Views: 390

AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
03/22/12 11:08 AM (13 years ago)

Pushwoosh

When implementing pushwoosh into my Android project there are 9 total steps, the first 3 deal with the manifest and those are all fine, the last step is step 9 and I have that figured out, the problem I'm having is steps 4-8 involving my main activity and onCreate sections. I can't find the code that they are telling me needs put into the app in their sample code therefore don't know where to input it? Has anyone used pushwoosh and if so, any places you can point me for help? Thanks!
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
03/22/12 11:24 AM (13 years ago)
I haven't implemented it, but reading the Phone Gap instructions helped me understand it a bit better. Fred
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/22/12 11:48 AM (13 years ago)
I think that may have confused me even more, from what you are seeing is there anything I am supposed to do other than copy and paste the code from pushwoosh into my eclipse project? I added the sdk files to the project folder, followed each step line by line, don't have any errors, it just won't work. I guess my biggest confusion is when it says "add to main activity", where is that? In the manifest? Same question for the onCreate section, I'm not a programmer so I know this is just a case of me not knowing where to add the code.
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/22/12 01:21 PM (13 years ago)
I think that may have confused me even more, from what you are seeing is there anything I am supposed to do other than copy and paste the code from pushwoosh into my eclipse project? I added the sdk files to the project folder, followed each step line by line, don't have any errors, it just won't work. I guess my biggest confusion is when it says "add to main activity", where is that? In the manifest? Same question for the onCreate section, I'm not a programmer so I know this is just a case of me not knowing where to add the code.
 
Zackamo
Aspiring developer
Profile
Posts: 175
Reg: Oct 25, 2011
Bryan TX
3,400
like
03/22/12 01:38 PM (13 years ago)
Unfortunately some threads from the old site aren't showing up on new site.. Luckily google cache can help us out for a limited time. http://webcache.googleusercontent.com/search?q=cache:OF-6fkQ4b60J:www.buzztouch.com/forum/thread.php%3Ftid%3DE20770D6B6C7AC7391ADBD7%26status%3D%26searchInput%3Dsearch...%26sortColumn%3DFT.id%26sortUpDown%3DDESC%26currentPage%3D2%26doViews%3D1+&cd=1&hl=en&ct=clnk&gl=us Should help you a bit, and has a sample android project to poke around in. I was able to get it to work following these steps.
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 07:57 AM (13 years ago)
Thanks so much for everything everybody! Getting much closer, still having a hard time finding the code in the sample project that the instructions are saying to add to my project to implement Pushwoosh, There are the 9 steps and after that I think I'm good, I know where the manifest stuff goes and the c2dm info on step 9, it's just all the remaining steps that I cannot seem to locate in the sample. Any help is greatly appreciated!
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 08:35 AM (13 years ago)
Thanks so much for everything everybody! Getting much closer, still having a hard time finding the code in the sample project that the instructions are saying to add to my project to implement Pushwoosh, There are the 9 steps and after that I think I'm good, I know where the manifest stuff goes and the c2dm info on step 9, it's just all the remaining steps that I cannot seem to locate in the sample. Any help is greatly appreciated!
 
Annonymous
Profile
03/23/12 08:55 AM (13 years ago)
Also with Pushwoosh, do I have to replace every single instance of com.arellomobile with my app name? Or just where it states in the instructions to replace the "YOUR APPLICATION NAME HERE?"
 
Zackamo
Aspiring developer
Profile
Posts: 175
Reg: Oct 25, 2011
Bryan TX
3,400
like
03/23/12 09:16 AM (13 years ago)
If I get a chance, I'll write up everything you need to do... My be a few days, but its not too tough.
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 09:47 AM (13 years ago)
Thanks alot Zackamo, even if you can just tell me where the code Pushwoosh is saying needs added is located in your sample project, that way I can go step by step and add everything. I seem to be making it to step 4 and then after begin to have errors pop up everythere! I've dragged the sdk files into my src folder as instructed and those immediately pop up errors as well when added. Thanks again for the help!
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 09:48 AM (13 years ago)
even the pushwoosh sample code has errors as well.
 
Zackamo
Aspiring developer
Profile
Posts: 175
Reg: Oct 25, 2011
Bryan TX
3,400
like
03/23/12 11:24 AM (13 years ago)
in BT_Activity_Root.java Add the import by the imports. import com.arellomobile.android.push.PushManager; import android.content.Intent; After this line public class BT_activity_root extends Activity{ Add PushManager mPushManager; At the end of the oncreate right before }//end onCreate Add this.loadAppData(); mPushManager = new PushManager(this); mPushManager.onStartup(); checkMessage(); So right after your }//end onCreate Add private void checkMessage() { Intent intent = getIntent(); if (null != intent) { if (intent.hasExtra(PushManager.PUSH_RECEIVE_EVENT)) { // if push receive. You can get message now: intent.getExtras().getString(PushManager.PUSH_RECEIVE_EVENT) } else if (intent.hasExtra(PushManager.REGISTER_EVENT)) { // if register. You can get message now: intent.getExtras().getString(PushManager.REGISTER_EVENT) } else if (intent.hasExtra(PushManager.UNREGISTER_EVENT)) { // if unregister. You can get message now: intent.getExtras().getString(PushManager.UNREGISTER_EVENT) } else if (intent.hasExtra(PushManager.REGISTER_ERROR_EVENT)) { // if register error. You can get message now: intent.getExtras().getString(PushManager.REGISTER_ERROR_EVENT) } } } Right after that add @Override protected void onNewIntent(Intent intent) { super.onNewIntent(intent); setIntent(intent); checkMessage(); } Your next lines in code should be //onStart ... just so you know if you are in the right place. I think the rest of their directions should be clear enough.. Let me know if specific parts you want clarification on (manifest, PushManager.java etc).
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 12:08 PM (13 years ago)
Perfect! put everything together with no errors. Have it loaded on my device now, I tried sending a message and nothing happened, does it take some time for the device to establish a connection? Should I wait a bit and try again? Thank you so much for the help!!!
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 12:11 PM (13 years ago)
I stand corrected, I have one error at the... mPushManager = new PushManager(this); mPushManager.onStartup(); checkMessage(); ...section, it's giving me this error when I click on the red x... The method onStartup(Bundle, Context) in the type PushManager is not applicable for the arguments () Look familier?
 
Zackamo
Aspiring developer
Profile
Posts: 175
Reg: Oct 25, 2011
Bryan TX
3,400
like
03/23/12 12:14 PM (13 years ago)
Sorry forgot one line.. this.loadAppData(); mPushManager = new PushManager(this); mPushManager.onStartup(); checkMessage(); Try that.
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 12:15 PM (13 years ago)
I stand corrected, I have one error at the... mPushManager = new PushManager(this); mPushManager.onStartup(); checkMessage(); ...section, it's giving me this error when I click on the red x... The method onStartup(Bundle, Context) in the type PushManager is not applicable for the arguments () Look familier?
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 12:17 PM (13 years ago)
I stand corrected, I have one error at the... mPushManager = new PushManager(this); mPushManager.onStartup(); checkMessage(); ...section, it's giving me this error when I click on the red x... The method onStartup(Bundle, Context) in the type PushManager is not applicable for the arguments () Look familier?
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 12:19 PM (13 years ago)
I stand corrected, I have one error at the... mPushManager = new PushManager(this); mPushManager.onStartup(); checkMessage(); ...section, it's giving me this error when I click on the red x... The method onStartup(Bundle, Context) in the type PushManager is not applicable for the arguments () Look familier?
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 12:26 PM (13 years ago)
That line was already present and did not change the error by adding it again, it is literally the only line that has an error, feel like I'm so close!!!
 
Zackamo
Aspiring developer
Profile
Posts: 175
Reg: Oct 25, 2011
Bryan TX
3,400
like
03/23/12 01:46 PM (13 years ago)
Did you put your Sender_ID and APP_ID in PushManager.java?
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 01:48 PM (13 years ago)
yes I have.
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 01:51 PM (13 years ago)
yes I have.
 
Zackamo
Aspiring developer
Profile
Posts: 175
Reg: Oct 25, 2011
Bryan TX
3,400
like
03/23/12 02:00 PM (13 years ago)
You added the import import com.arellomobile.android.push.PushManager; Yah?
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/23/12 02:05 PM (13 years ago)
yes.
 
Zackamo
Aspiring developer
Profile
Posts: 175
Reg: Oct 25, 2011
Bryan TX
3,400
like
03/23/12 02:12 PM (13 years ago)
I can't find anything else that I added.. That should be it... I would go through their tutorial again just to be sure I didn't miss anything, but I am not getting any errors here.
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/24/12 01:24 PM (13 years ago)
It is just weird because that one error is one of the errors that load with the sample code, could it be as simple as updating all sdk's in eclipse? Also, when I copy and paste the two sdk files downloaded from Pushwoosh, it put them in the same folder as app in src, I didn't get any errors when doing that so I assume it has nothing to do with it. I'm updating my sdk's now to see if that fixes the problem, if you can think of anything else please let me know, thanks for everything!
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/24/12 01:28 PM (13 years ago)
It is just weird because that one error is one of the errors that load with the sample code, could it be as simple as updating all sdk's in eclipse? Also, when I copy and paste the two sdk files downloaded from Pushwoosh, it put them in the same folder as app in src, I didn't get any errors when doing that so I assume it has nothing to do with it. I'm updating my sdk's now to see if that fixes the problem, if you can think of anything else please let me know, thanks for everything!
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/25/12 07:18 AM (13 years ago)
It is just weird because that one error is one of the errors that load with the sample code, could it be as simple as updating all sdk's in eclipse? Also, when I copy and paste the two sdk files downloaded from Pushwoosh, it put them in the same folder as app in src, I didn't get any errors when doing that so I assume it has nothing to do with it. I'm updating my sdk's now to see if that fixes the problem, if you can think of anything else please let me know, thanks for everything!
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/25/12 07:54 AM (13 years ago)
ok, started all over, sample code not getting the same error this time around, still having problems with same section, on the sample project that I believe you provided you show... this.loadAppData(); mPushManager = new PushManager(this); mPushManager.onStartup(); checkMessage(); without the m's? On the instructions it has m's in front but not in the sample code? Which way is correct, with or without the m's?
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/25/12 08:16 AM (13 years ago)
ok, started all over, sample code not getting the same error this time around, still having problems with same section, on the sample project that I believe you provided you show... this.loadAppData(); mPushManager = new PushManager(this); mPushManager.onStartup(); checkMessage(); without the m's? On the instructions it has m's in front but not in the sample code? Which way is correct, with or without the m's?
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/25/12 08:26 AM (13 years ago)
ok, started all over, sample code not getting the same error this time around, still having problems with same section, on the sample project that I believe you provided you show... this.loadAppData(); mPushManager = new PushManager(this); mPushManager.onStartup(); checkMessage(); without the m's? On the instructions it has m's in front but not in the sample code? Which way is correct, with or without the m's?
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/26/12 12:29 PM (13 years ago)
Got it figured out with Max at Pushwoosh, thanks for all the assistance!
 
Naes993
Android Fan
Profile
Posts: 49
Reg: Jun 21, 2011
Myrtle beach
490
like
03/26/12 08:21 PM (13 years ago)
Did you have to replace com.arellomobile.android.push with your package?
 
AppBuilderUSA
Aspiring developer
Profile
Posts: 103
Reg: Feb 21, 2011
Columbus Ohio
1,730
like
03/26/12 08:26 PM (13 years ago)
No, just follow the instructions above and contact pushwoosh directly with questions, Max is awesome and is a great help!
 
Naes993
Android Fan
Profile
Posts: 49
Reg: Jun 21, 2011
Myrtle beach
490
like
03/26/12 08:27 PM (13 years ago)
Ok... I went and changed all of mine lol... that would be my errors!
 
Naes993
Android Fan
Profile
Posts: 49
Reg: Jun 21, 2011
Myrtle beach
490
like
03/26/12 08:59 PM (13 years ago)
The ONLY problem I'm having is the packages at the top of every screen. I'm not sure what all I was supposed to copy and paste over SDK wise... never installed one lol
 
Naes993
Android Fan
Profile
Posts: 49
Reg: Jun 21, 2011
Myrtle beach
490
like
03/26/12 09:07 PM (13 years ago)
The ONLY problem I'm having is the packages at the top of every screen. I'm not sure what all I was supposed to copy and paste over SDK wise... never installed one lol
 
Naes993
Android Fan
Profile
Posts: 49
Reg: Jun 21, 2011
Myrtle beach
490
like
03/26/12 09:34 PM (13 years ago)
The ONLY problem I'm having is the packages at the top of every screen. I'm not sure what all I was supposed to copy and paste over SDK wise... never installed one lol
 
zizo83
Code is Art
Profile
Posts: 1
Reg: Feb 09, 2012
location unknow...
10
like
04/10/12 03:20 PM (13 years ago)
@Bluesms :i have the same problem, can you share the pushmanager.java please ?
 

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.