Git Product home page Git Product logo

pacts's People

Contributors

potray avatar

Watchers

 avatar  avatar

pacts's Issues

Fragment already active in doInBackground

This happens in the production version (REMEMBER TO FORK DARNIT!). Fragment arguments are set after fragments are attached. A way to solve this might be to create the fragments in the OnPostExecute method of the Asynctask.

Exception when managing several friend requests.

java.lang.IllegalStateException: Cannot execute task: the task has already been executed (a task can be executed only once)
at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:583)
at android.os.AsyncTask.execute(AsyncTask.java:539)
at es.potrayarrick.pacts.MainActivity.onFriendRequestInteraction(MainActivity.java:320)
at es.potrayarrick.pacts.FriendRequestFragment.onFriendRequestInteraction(FriendRequestFragment.java:179)
at es.potrayarrick.pacts.FriendRequestFragment.access$100(FriendRequestFragment.java:26)
at es.potrayarrick.pacts.FriendRequestFragment$FriendRequestsArrayAdapter$1.onClick(FriendRequestFragment.java:227)
at android.view.View.performClick(View.java:4780)
at android.view.View$PerformClick.run(View.java:19866)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Create a pact

From the friend profile fragment, a user proposes a pact to that friend. We need:

  • A button on Friend fragment.
  • A create pact fragment.
  • Backend functionality.

Drawer

A drawer is needed to navigate between profile, friends and pacts.

Use cookies

If a user logs in there should be a cookie used in future requests to the server.

Manage a pact request

It's similar to accepting a friend request. We need to add this functionality:

  • When an user has received a pact request a notification icon shows on the pacts activity.
  • Create a pending pact requests fragment.
  • Backend functionality.

Pacts model

Define the model for a pact:

  • Name
  • Description
  • Type (A type of pact or a promise)
  • Fullfilled
  • Canceled
  • Friends

Pact types

A user must be able to create and retreive pact types.

Pacts fragment

The pacts fragment should show the pacts of the user. We need to:

  • Create a list with a custom adapter for showing a pact info.
  • Backend functionality.

Password security

  • Right now passwords are sent to backend as they are. Encryption is required! And also look at Oauth2 and stuff like that.
  • Fix the email and password check.

Null pointer exception in friend request

java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator java.util.ArrayList.iterator()' on a null object reference
at es.potrayarrick.pacts.FriendRequestFragment.onCreateView(FriendRequestFragment.java:121)
at android.app.Fragment.performCreateView(Fragment.java:2053)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.app.BackStackRecord.run(BackStackRecord.java:834)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:447)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Pact fragment

We need a fragment that shows a pact information and lets users do some actions. We need this fragment to:

  • Show the pact information.
  • Let a user to send a fullfill request (both users bust agree when a pact is fullfilled!)
  • Cancel a pact. This won't delete it.
  • Backend functionality.

Manage pact fulfillment request

An user can send a fulfill request to the other user of a pact. We need this functionality:

  • Show a notification menu in the pacts fragment (probably with a different icon) that shows the pact fragment.
  • In the pact fragment, show two buttons: one for accepting and one for rejecting the request.
  • Backend functionality

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.