internal MotionActivityNotification(Looper looper, Smotion motion)
		{
			// TODO Auto-generated constructor stub
			mActivityNotification = new SmotionActivityNotification(looper, motion);
			mFilter = null;
			initialize();
		}
Ejemplo n.º 2
0
 internal MotionActivityNotification(Looper looper, Smotion motion)
 {
     // TODO Auto-generated constructor stub
     mActivityNotification = new SmotionActivityNotification(looper, motion);
     mFilter = null;
     initialize();
 }
Ejemplo n.º 3
0
		internal MotionActivity(Looper looper, Smotion motion)
		{
			mActivity = new SmotionActivity(looper, motion);
			initialize();
		}
Ejemplo n.º 4
0
		internal MotionCall(Looper looper, Smotion motion)
		{
			mCall = new SmotionCall(looper, motion);
		}
Ejemplo n.º 5
0
		internal MotionPedometer(Looper looper, Smotion motion, bool isUpDownAvailable)
		{
			mPedometer = new SmotionPedometer(looper, motion);
			mIsUpDownAvailable = isUpDownAvailable;
			initialize();
		}
Ejemplo n.º 6
0
        public virtual bool initialize()
        {
            mTv_timestamp   = (TextView)findViewById(R.id.res_timestamp);
            mTv_result1     = (TextView)findViewById(R.id.res_result1);
            mTv_result2     = (TextView)findViewById(R.id.res_result2);
            mRelativeLayout = (RelativeLayout)findViewById(R.id.res_layout);

            // Smotion iniialize
            mMotion = new Smotion();

            try
            {
                mMotion.initialize(this);
            }
            catch (System.ArgumentException e)
            {
                // TODO Auto-generated catch block
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
                return(false);
            }
            catch (SsdkUnsupportedException e)
            {
                // TODO Auto-generated catch block
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
                return(false);
            }

            // SoundPool
            this.VolumeControlStream = AudioManager.STREAM_MUSIC;
            mSoundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);
            mSoundId   = mSoundPool.load(ApplicationContext, R.raw.dingdong, 0);

            // RadioGroup
            mRadioGroup_activity_mode = (RadioGroup)findViewById(R.id.radioGroup_activity_mode);
            mRadioGroup_activity_mode.OnCheckedChangeListener = new OnCheckedChangeListenerAnonymousInnerClassHelper(this);

            // RadioButton
            mRadio_acitivity_realtime = (RadioButton)findViewById(R.id.radio_realtime);
            mRadio_acitivity_batch    = (RadioButton)findViewById(R.id.radio_batch);
            mRadio_acitivity_all      = (RadioButton)findViewById(R.id.radio_all);

            // ToggleButton Start/Stop
            mBtn_start = (ToggleButton)findViewById(R.id.toggle_start);
            mBtn_start.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this);
            // CheckBox Group
            mCheckBox_Group                          = (LinearLayout)findViewById(R.id.checkbox_group);
            mCheckBox_Group2                         = (LinearLayout)findViewById(R.id.checkbox_group2);
            mCheckBox_Stationary                     = (CheckBox)findViewById(R.id.cb_stationary);
            mCheckBox_Walk                           = (CheckBox)findViewById(R.id.cb_walk);
            mCheckBox_Run                            = (CheckBox)findViewById(R.id.cb_run);
            mCheckBox_Vehicle                        = (CheckBox)findViewById(R.id.cb_vehicle);
            mCheckBox_Activity_Periodic              = (CheckBox)findViewById(R.id.cb_activity_realtime_periodic);
            mEditText_Activity_Periodic_input        = (EditText)findViewById(R.id.et_activity_realtime_periodic_input);
            mLinearLayout_Activity_Periodic_interval = (LinearLayout)findViewById(R.id.interval_group);

            // Spinner
            mSpin = (Spinner)findViewById(R.id.spinner_mode);
            mSpin.OnItemSelectedListener = new OnItemSelectedListenerAnonymousInnerClassHelper(this);

            mCheckBox_Activity_Periodic.OnCheckedChangeListener = new OnCheckedChangeListenerAnonymousInnerClassHelper(this);

            mBtn_updateInfo = (Button)findViewById(R.id.btn_activity_batch_updateinfo);
            mBtn_updateInfo.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this);

            return(true);
        }
 internal MotionActivity(Looper looper, Smotion motion)
 {
     mActivity = new SmotionActivity(looper, motion);
     initialize();
 }
Ejemplo n.º 8
0
 internal MotionCall(Looper looper, Smotion motion)
 {
     mCall = new SmotionCall(looper, motion);
 }
 internal MotionPedometer(Looper looper, Smotion motion, bool isUpDownAvailable)
 {
     mPedometer         = new SmotionPedometer(looper, motion);
     mIsUpDownAvailable = isUpDownAvailable;
     initialize();
 }