forked from KomodoOpenLab/TeclaAccess
-
Notifications
You must be signed in to change notification settings - Fork 0
Tecla Framework
jorgesilva edited this page Jan 5, 2013
·
5 revisions
The Tecla Framework is a modular library created to contain all the Tecla related code (bluetooth, switch event, highlighting management). The goal of the framework is to provide re-usable code that can be easily added to any input method to make the Android platform switch accessible.
BootReceiver: Starts TeclaService on boot. This is the only role of this class and should be left as is.
- Declare a custom Application class if not already declared
<application
android:name="package.name.MyApp"
...
- Extend ca.idi.tecla.sdk.TeclaApp in your app's Application class (create it if not already defined)
public class TeclaApp extends ca.idi.tecla.sdk.TeclaApp {
- Add the following to AndroidManifest.xml to start the TeclaService on boot
<service android:name="ca.idi.tecla.sdk.TeclaService" >
<intent-filter>
<action android:name="ca.idi.tecla.sdk.TECLA_SERVICE" />
</intent-filter>
</service>
<receiver android:name="ca.idi.tecla.sdk.TeclaReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>