Find Battle Protocol implementation

- Added find battle protocol implementation
- Modified the formatListView programmatical selection in order to make it trigger onitemclick
- Fixing a problem with setDisplayTeam
- Dirty fixing a problem with hiddenpower move (|request| message from server 'hiddenpower'+type+'60' ->non existing move)

- TODOS:
      - Handle popup message correctly (when a team is incorrect)
      - Have some waiting dialog while the search is running


Im not sure either!
On 7 Dec 2014 05:04, "Nam Thai" <notifications@github.com> wrote:

> In app/src/main/java/com/pokemonshowdown/data/BattleMessage.java:
>
> > @@ -4255,6 +4259,10 @@ private static PokemonInfo parsePokemonInfo(BattleFragment battleFragment, JSONO
> >          HashMap<String, Integer> moves = new HashMap<>();
> >          for (int i = 0; i < movesArray.length(); i++) {
> >              String move = movesArray.getString(i);
> > +            if(move.startsWith("hiddenpower")) {
> > +                move = move.toLowerCase().replaceAll("[^a-z]", "");
>
> Hm Im curious as of why he includes that 60 at the end
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/NamTThai/PokemonShowdownAndroidClient/pull/50/files#r21421698>
> .
>