Download "EasyAccess for Android" Implementation

Transcript
@Override
public Fragment getItem(int position) {
return this.fragments.get(position);
}
}
3.6 Home Screen Activity
The home screen activity displays the six options:
 Phone Dialer
 Call Log
 Text Messages
 Contacts
 Status
 Settings
startNewActivity method takes as parameter the activity that should be launched.
void startNewActivity(Class className) {
Intent intent = new Intent(getActivity().getApplicationContext(), className);
startActivity(intent);
}
3.7 Splash Activity
Splash activity is the first activity displayed on the screen. When this activity is created, the
CallStateService is initiated.
Intent bootIntent = new Intent(getApplicationContext(), CallStateService.class);
bootIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startService(bootIntent);
The presence of a TTS engine is checked and the object in TTS class is set accordingly.
Intent checkIntent = new Intent();
checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
startActivityForResult(checkIntent, 0);
IDEAL Group, Inc.
”EasyAccess for Android” Developer Documentation
Page 22 of 118