Record a New Financial Transaction
com.funkyandroid.action.NEW_TRANSACTION
This intent reports a financial transaction to be recorded in an expenses or banking application.
This is used, for example, by BistroMath to report the amount it has calculated for a persons tip to Funky Expenses for recording in the persons expenses account.
It is recommended that the intent brings up a page which allows the user to confirm the transaction before it is recorded in order to prevent malicious applications filling an expenses/banking application with junk entries and to allow the user to fill in any missing information.
Use
public void startRecordANewFinancialTransaction(String category, long date, String amount, String payee) {
Intent intent = new Intent("com.funkyandroid.action.NEW_TRANSACTION");
intent.putExtra("com.funkyandroid.CATEGORY", category); // String
intent.putExtra("com.funkyandroid.DATE", date); // long
intent.putExtra("com.funkyandroid.AMOUNT", amount); // String
intent.putExtra("com.funkyandroid.PAYEE", payee); // String
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);
}
}Example intent filter
<activity ...>
<intent-filter>
<action android:name="com.funkyandroid.action.NEW_TRANSACTION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Apps Providing an Implementation
Search on Google Play, AppBrain, Amazon App store or similar (not yet available - please make this happen!)