| 1 | package net.mandaria.tippytipper.activities; |
| 2 | |
| 3 | import com.flurry.android.FlurryAgent; |
| 4 | |
| 5 | import net.mandaria.tippytipper.R; |
| 6 | import android.app.Activity; |
| 7 | import android.os.Bundle; |
| 8 | |
| 9 | public class About extends Activity { |
| 10 | |
| 11 | /** Called when the activity is first created. */ |
| 12 | @Override |
| 13 | public void onCreate(Bundle savedInstanceState) { |
| 14 | super.onCreate(savedInstanceState); |
| 15 | setContentView(R.layout.about); |
| 16 | } |
| 17 | |
| 18 | @Override |
| 19 | public void onStart() |
| 20 | { |
| 21 | super.onStart(); |
| 22 | boolean enableErrorLogging = Settings.getEnableErrorLogging(getBaseContext()); |
| 23 | String API = getString(R.string.flurrykey); |
| 24 | if(!API.equals("") && enableErrorLogging == true) |
| 25 | { |
| 26 | FlurryAgent.setContinueSessionMillis(30000); |
| 27 | FlurryAgent.onStartSession(this, API); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | @Override |
| 32 | public void onStop() |
| 33 | { |
| 34 | super.onStop(); |
| 35 | FlurryAgent.onEndSession(this); |
| 36 | } |
| 37 | } |