trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
12/28/12 07:29 PM (13 years ago)

Flurry Setup for Android Eclipse

Flurry looks pretty easy to set up until step 4. Which file do we paste the code in? With this answer I'll make a little tutorial...I'm about 3/4 or the way done with one now. I just need this answer. Thanks b 1. Download the Flurry Android SDK 2. Add the FlurryAgent.jar to your classpath 3. Configure you AndroidManifest.xml to have access to the Internet and optionally location 4. Incorporate the following three lines of Flurry code: import com.flurry.android.FlurryAgent; @Override protected void onStart() { super.onStart(); FlurryAgent.onStartSession(this, "YOUR_API_KEY"); } @Override protected void onStop() { super.onStop(); FlurryAgent.onEndSession(this); }
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
12/28/12 08:17 PM (13 years ago)
You have to put the code in activity_base.java file in following manner: Step number 4: a. Put the import below other imports. (This should be easy). b. You have to put this code- FlurryAgent.onStartSession(this, "YOUR_API_KEY"); in the onStart method which can be found some where in the line number 160. It looks like this before adding those codes.--- //onStart @Override protected void onStart() { super.onStart(); After you add the above code it should look like this:- //onStart @Override protected void onStart() { super.onStart(); FlurryAgent.onStartSession(this, "YOUR_API_KEY"); c. The next code goes in the onStop method which can be found in the line number 233ish. Originally it looks like this;--- //onStop @Override protected void onStop(){ super.onStop(); //BT_debugger.showIt(activityName + ":onStop"); } After putting that code it should look like this- //onStop @Override protected void onStop(){ super.onStop(); FlurryAgent.onEndSession(this); //BT_debugger.showIt(activityName + ":onStop"); } Thats it and you are done. I have not tried flurry myself but the above steps are given from the information you provided in this post. So try this and inform whether it works for you.
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
12/28/12 08:52 PM (13 years ago)
Yeah, that worked! I'll pull the tutorial together with some screen shots and get it to David. Thanks for the help! On to Socialize... Is there a current tutorial or guide for Xtify BT and Eclipse/Android? b
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
12/28/12 09:27 PM (13 years ago)
Cool. Yes, there is a pdf tutorial for xtify for android. You can find it here- https://www.buzztouch.com/files/howtos/Xtify-1-5-directions.pdf
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
02/04/14 06:05 AM (11 years ago)
Hi guys, Thanks for the tutorials. I was wondering, has the activity_base.java file has been renamed on Android V3? I don't seem to be able to find it in my project. Cheers, Farid
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
02/04/14 06:31 AM (11 years ago)
@Farcat it is: activity_host.java
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
02/04/14 06:35 AM (11 years ago)
Perfect, thanks @mysps!
 

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.