Android Open Source - AppSearchWidget Letter Intent






From Project

Back to project page AppSearchWidget.

License

The source code is released under:

Apache License

If you think the Android project AppSearchWidget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.testwidget;
/*from  w w  w  . j  av  a 2 s .  c  om*/
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class LetterIntent extends Intent {
  private boolean mDebug = false;
  private static final String TAG = "LetterIntent"; 
  
  public LetterIntent(Context packageContext, Class<?> cls) {
    super(packageContext, cls);
    
    if (mDebug) {
      Log.i(TAG, "Creating letterintent");
    }
  }

  @Override
  public boolean filterEquals(Intent other) {
    if (mDebug) {
      Log.i(TAG, "Comparing probable LetterIntents");
    }
    
    if (other instanceof LetterIntent) {
      LetterIntent otherLetterIntent = (LetterIntent)other;
      String letterIntentExtra =
          this.getStringExtra(KeyInputHandler.KEY_CHARACTER_EXTRA);
      String otherLetterIntentExtra =
          otherLetterIntent.getStringExtra(KeyInputHandler.KEY_CHARACTER_EXTRA);
      
      
      if (letterIntentExtra != null && otherLetterIntentExtra != null) {
        return letterIntentExtra.equals(otherLetterIntentExtra);
      }
    }
    
    return super.filterEquals(other);
  }

}




Java Source Code List

com.example.testwidget.AppLaunchCountComparator.java
com.example.testwidget.AppLaunchIntentService.java
com.example.testwidget.AppLaunchTimeComparator.java
com.example.testwidget.AppListRemoteViewsService.java
com.example.testwidget.AppListViewFactory.java
com.example.testwidget.AppSearchService.java
com.example.testwidget.ApplicationListItem.java
com.example.testwidget.Constants.java
com.example.testwidget.InputHandlerService.java
com.example.testwidget.KeyImageButton.java
com.example.testwidget.KeyInputHandler.java
com.example.testwidget.KeyboardMode.java
com.example.testwidget.LaunchCountBookKeeper.java
com.example.testwidget.LaunchStats.java
com.example.testwidget.LetterIntent.java
com.example.testwidget.LettersWidgetProvider.java
com.example.testwidget.MainActivity.java
com.example.testwidget.NewsWidgetProvider.java
com.example.testwidget.ResourceAlphabetMapEnglish.java