Новости из мира Android, программы, игры. Программирование под Android.

INOUT - Mobile bank feature

download INOUT On MARKET

Experimental feature. Use it as is.

INOUT 1.0.0 supports mobile bank. It means that you can configure INOUT to parse incoming SMS from your mobile bank to save you expense.

We can support mobile bank by two ways:

  • To store to Data Base (DB) all possible SMS from bank;
  • To save Regular Expressions (regexp) for incoming SMS from bank;

The first item much more comfortable for user but it’s difficult to collect all possible SMS from bank. I decide to implement the second idea. If you don’t know regexp then you can use “request regexp” button to ask me for it and I’ll send regexp to you.

Adding sms sender

At the first time INOUT knows nothing about your mobile bank, you have to say about it to INOUT. To do it - go on “SMS” tab then perform the next steps:

  1. Press “Add sms sender” button;
  2. Image

  3. Select from the list an SMS which you want to monitoring;
  4. Image

  5. Then config selected SMS;
  6. Image

Config selected SMS

Save sms

If you want INOUT to save your expense from incoming SMS from sender pointed in “From” section you need to set TAG for expense (tag section) and also need to add regexp in “regexp” section and press “Save” button. To check your regexp press "Test" button. If you see the message resembles the picture below, then your regexp is true:

Image

"SEVENTH CONT: Food = 1117.90"
Where: "SEVENTH CONT" is the mark which is used by INOUT to detect incoming SMS (it contains "SEVENTH CONT") and it needs to be parsed by pointed regexp.
Where: "Food" - The tag, and 1117.90 - expense.

Ignore sms

If you want INOUT to ignore SMS from this sender just input the first one or more word from SMS in “regexp” section and press “Ignore” button:

Image

This regexp can be apply to the most SMS:
(?:SMS_MARKER)|(?:(?<=EXPENSE_MARKER)[0-9]+.?[0-9]+)

Example: Imagine that you got SMS like this "5*2804; Pokupka; Uspeshno; Summa: 386.80 RUR; Ostatok: 9562.83 RUR; LU/4029357733/PAYPAL *MIKETAO2008; 27.01.2011 09:27" from Alfa-Bank then regexp will be (?:MIKETAO2008)|(?:(?<=Summa: )[0-9]+.?[0-9]+)
remember to leave whitespace with "Summa: ".

You can check your regexp with http://myregexp.com or to past it to INOUT and to press "Test".