MaterialUp Android App.
jariz / materialup Goto Github PK
View Code? Open in Web Editor NEWMaterialUp Android App
MaterialUp Android App
java.lang.NullPointerException
at io.jari.materialup.utils.ParseUtils.parseItems(ParseUtils.java:44)
at io.jari.materialup.connection.UpRequests$1.onResponse(UpRequests.java:47)
at io.jari.materialup.connection.UpRequests$1.onResponse(UpRequests.java:44)
I am seeing the code and i see that have so many dependencies, proguard is not enabled and the main method of the api is using Jsoup, that is good if the site dont provide one api, take a look: http://www.materialup.com/posts.json , materialup is build over Rails, then by default adding '.json' to the end return the result in json.
I am writting to know if have one cause to it, if don't have, i would change.
The app crashed with this errror when i was testing it inside a genymotion nexus 4 vm running on android 5.1.0. This was the logcat error:
09-19 04:47:26.020 4092-4092/io.jari.materialup E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: io.jari.materialup, PID: 4092
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.jsoup.nodes.Element.attr(java.lang.String)' on a null object reference
at io.jari.materialup.utils.ParseUtils.parseItems(ParseUtils.java:44)
at io.jari.materialup.connection.UpRequests$1.onResponse(UpRequests.java:47)
at io.jari.materialup.connection.UpRequests$1.onResponse(UpRequests.java:44)
at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:60)
at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:30)
at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)
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)
09-19 04:47:27.131 4092-4119/io.jari.materialup I/Fabric﹕ Crashlytics report upload complete: 55FD211B0169-0002-0FFC-923E341B91ED.cls
Using the library created by https://github.com/Pkmmte/CircularImageView
is leading to out of memory errors due to inefficient implementation of the library.
Asus Zenphone 2 Android v5.0.1
Not sure if it's due to android:fitsSystemWindows="true"
in the layout files. Same problem found (and maybe fix found) at chrisbanes/cheesesquare#12.
My apologies if this doesn't fit the contributing rules..
I catch an OutOfMemory crash today. So please consider to have some crash analytic support. I personally recommend Fabric.io
app try to get url:
https://material.uplabs.com/posts/c/resources?page=2
but site return full HTML page
can you fix this for demo? or tell me please answer format
and app crash
for this you need to write:
private void getRandomCover(List items) {
if (items.size() >0) {
Item item = items.get(new Random().nextInt(items.size()));
UpRequests.getItemImage(item.getId(), this);
}
}
I personally prefer 2 space indent for my projects (please refer Google coding style for more information, I'm following them). So I configured my IDE to do so. Since you repo use default 4 space indent, it will be helpful if you could include a checkstyle.xml for this project so all of contributors can easily share the coding style without merging problem :D. Cheers!
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.