Giter Site home page Giter Site logo

expense-tracker-app's Introduction

Expense-Tracker-App

Open source Application to keep track of your expenses with a material design style.

Find it on Play Store : https://play.google.com/store/apps/details?id=com.pedrocarrillo.expensetracker

Contact:

Application Summary

Libraries used in this application:

Features in this project:

  • Widget implementation and update.
  • Recycler View swipe to delete
  • Creation of Alarms and notifications
  • Use of material support library

License

The MIT License (MIT)

Copyright (c) 2015 Pedro Pablo Carrillo Chero

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

expense-tracker-app's People

Contributors

eknoes avatar pedrocarrillo avatar vickijin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

expense-tracker-app's Issues

Expense tracker

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Expense {
private String category;
private double amount;

public Expense(String category, double amount) {
    this.category = category;
    this.amount = amount;
}

public String getCategory() {
    return category;
}

public double getAmount() {
    return amount;
}

}

class ExpenseTracker {
private List expenses;

public ExpenseTracker() {
    expenses = new ArrayList<>();
}

public void addExpense(String category, double amount) {
    Expense expense = new Expense(category, amount);
    expenses.add(expense);
}

public double getTotalExpenses() {
    double total = 0;
    for (Expense expense : expenses) {
        total += expense.getAmount();
    }
    return total;
}

public void printExpenses() {
    for (Expense expense : expenses) {
        System.out.println("Category: " + expense.getCategory() + ", Amount: " + expense.getAmount());
    }
}

}

public class Main {
public static void main(String[] args) {
ExpenseTracker expenseTracker = new ExpenseTracker();
Scanner scanner = new Scanner(System.in);

    boolean isRunning = true;
    while (isRunning) {
        System.out.println("Enter category (or 'q' to quit):");
        String category = scanner.nextLine();
        if (category.equalsIgnoreCase("q")) {
            isRunning = false;
            break;
        }

        System.out.println("Enter amount:");
        double amount = scanner.nextDouble();
        scanner.nextLine(); // Consume the newline character

        expenseTracker.addExpense(category, amount);
    }

    System.out.println("Total expenses: " + expenseTracker.getTotalExpenses());
    System.out.println("Expense breakdown:");
    expenseTracker.printExpenses();

    scanner.close();
}

}

Export data from statistics and history to spreadshet

So far we have export to CSV. I will be expanding the exporting and do the following:

  • Test new ways to make exporting easier to see
  • Add export to spreadshet google drive
  • Add this options available to statistics and history

Button Text not visible

When I try to export data, the button text for the permission description is white on white background, therefore not visible.

Steps to reproduce:
Go to History -> Export
Alert Dialog has no visible buttons

Screenshot example

I think this is because of the line in styles.xml:

        <item name="android:dialogTheme">@style/DialogTheme</item>

So it uses the DialogTheme which has a white text, but it somehow does not apply the blue padding for this alert dialog.

Kotlin ftw

what about a progressive codebase update to Kotlin ๐Ÿค”

Editing expense in detail mode leads to exception

When I try to edit an expense in the expense detail view, I get the following exception:

01-08 12:32:57.335 16432-16432/com.pedrocarrillo.expensetracker E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                  Process: com.pedrocarrillo.expensetracker, PID: 16432
                                                                                  java.lang.IllegalStateException: Fragment NewExpenseFragment{a0b3326 #0 EDIT_EXPENSE} declared target fragment ExpenseDetailFragment{5be8b67 #0 id=0x7f0f0090 ExpenseDetailFragment} that does not belong to this FragmentManager!
                                                                                      at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1352)
                                                                                      at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1740)
                                                                                      at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1809)
                                                                                      at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:799)
                                                                                      at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2580)
                                                                                      at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2367)
                                                                                      at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2322)
                                                                                      at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2229)
                                                                                      at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:700)
                                                                                      at android.os.Handler.handleCallback(Handler.java:751)
                                                                                      at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                      at android.os.Looper.loop(Looper.java:241)
                                                                                      at android.app.ActivityThread.main(ActivityThread.java:6274)
                                                                                      at java.lang.reflect.Method.invoke(Native Method)
                                                                                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                                                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

The error is in the onEditExpense method of ExpenseDetailFragment.

Publish on F-Droid

As its an open source app, it would be cool to publish it on F-Droid, a short introduction is here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.