che4ter / platypus-android Goto Github PK
View Code? Open in Web Editor NEWAndroid App for Project Platypus
License: GNU General Public License v3.0
Android App for Project Platypus
License: GNU General Public License v3.0
When I rotated the screen, the whole app crashes
05-22 14:43:17.792 8071-8071/ch.stair.platypus E/AndroidRuntime: FATAL EXCEPTION: main
Process: ch.stair.platypus, PID: 8071
java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.stair.platypus/ch.stair.platypus.presentation.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void ch.stair.platypus.di.components.FeedbackComponent.inject(ch.stair.platypus.presentation.card.CardContentFragment)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4519)
at android.app.ActivityThread.-wrap19(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1483)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
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)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void ch.stair.platypus.di.components.FeedbackComponent.inject(ch.stair.platypus.presentation.card.CardContentFragment)' on a null object reference
at ch.stair.platypus.presentation.card.CardContentFragment.onCreate(CardContentFragment.java:61)
at android.support.v4.app.Fragment.performCreate(Fragment.java:2180)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1244)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1528)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1595)
at android.support.v4.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:2893)
at android.support.v4.app.FragmentController.dispatchCreate(FragmentController.java:190)
at android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:353)
at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:85)
at ch.stair.platypus.presentation.BaseActivity.onCreate(BaseActivity.java:17)
at ch.stair.platypus.presentation.MainActivity.onCreate(MainActivity.java:39)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4519)
at android.app.ActivityThread.-wrap19(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1483)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
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 app crashes when the context is changed, for example when rotating to landscape mode
use correct seggregation for core & outer layers (REST etc)
add a new tab where you can filter feedbacks
add notifications
for example: when someone comment or voted on your feedback
maybe as a second list
Designing the screen of the login page.
get new votes or comments in background
maybe use refresh tokens or reauthenticate
create a view where the user can view his own feedbacks, activites...
it would trigger the same action you can trigger with a swipe down to refresh
disable voting buttons when already voted
define how to migrate to new db version with objectbox
add things like host to a setting(preferences?)
or:
via playstore, plain apk, stair website?
for example with the MaterialTapTargetPromt library
Swipe to refresh not really working. It's also in the wrong layout.
Build different String-Files to translate Strings in other languages.
port LoginActivity to correct dagger concept
place to be defined, maybe after registration or on first vote
Deciding the colors of the App - especially the comments color and the frame.
It should be easy to implement a swipe to refresh function. https://developer.android.com/training/swipe/add-swipe-interface.html
Here I found a tutorial, how to implement it on tabs.
on answer 1:
http://stackoverflow.com/questions/32683513/sliding-tabs-with-recycleview-fragments-and-swipe-to-refresh
Design of the Feedback-Bubble.
Login to online REST failed.
I don't know if android or the server has a problem
Some cards are rendered to large. This bug appears after the creation of a new feedback
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.