GithubHelp home page GithubHelp logo

philm's Introduction

Philm

License

Copyright 2014 Chris Banes

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

philm's People

Contributors

chrisbanes avatar dzakus avatar penkzhou avatar yelinaung 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  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  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  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

philm's Issues

Rendering problem with custom views

With the last SDK update custom views render is broken:

The following classes could not be instantiated:
- app.philm.in.view.FontTextView (Open Class, Show Exception)
- app.philm.in.view.BackdropImageView (Open Class, Show Exception)
Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in
the IDE Exception Details java.lang.ClassCastException:
com.android.layoutlib.bridge.android.BridgeContext cannot be cast to app.philm.in.PhilmApplication  at app.philm.in.PhilmApplication.from(PhilmApplication.java:39)   at app.philm.in.view.FontTextView.(FontTextView.java:53)   at app.philm.in.view.FontTextView.(FontTextView.java:47)   at java.lang.reflect.Constructor.newInstance(Constructor.java:408)   at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:755)   at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)   at android.view.LayoutInflater.rInflate(LayoutInflater.java:727)   at android.view.LayoutInflater_Delegate.parseInclude(LayoutInflater_Delegate.java:116)   at android.view.LayoutInflater.parseInclude(LayoutInflater.java:782)   at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:745)   at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)   at android.view.LayoutInflater.rInflate(LayoutInflater.java:727)   at android.view.LayoutInflater.inflate(LayoutInflater.java:492)   at android.view.LayoutInflater.inflate(LayoutInflater.java:373)

How to fix it?

v21 transparent statusbar

Due to styling in values-21 theme set to transparent for statusbar, activities such as Settings and About screen are not themed properly

fail to run

Error:(96, 8) 错误: 'injects' list contains duplicate entries: [app.philm.in.tasks.FetchTmdbRelatedMoviesRunnable]

public class TaskProvider {
}

Native Crash "android.os.DeadObjectException"

Hi Chris,

just got this crash while testing master branch

D/Retrofit( 1719): nal_title":"The Last Dinosaur","poster_path":"/m9D9ovEaCVnHNS1vXQcf3Rjdwfs.jpg","release_date":"1977-02-11","title":"The Last Dinosaur"}]}}
D/Retrofit( 1719): <--- END HTTP (12140-byte body)
D/MovieController( 1719): populateUi: PersonDetailFragment
D/PersonDetailFragment( 1719): bindView. Item: TITLE
D/PersonDetailFragment( 1719): bindTitle
D/PersonDetailFragment( 1719): bindView. Item: BIOGRAPHY
D/PersonDetailFragment( 1719): bindView. Item: CREDITS_CAST
D/PersonDetailFragment( 1719): bindCast
D/PersonDetailFragment( 1719): bindView. Item: CREDITS_CREW
D/PersonDetailFragment( 1719): bindCrew
D/PhilmImageView( 1719): Loading http://image.tmdb.org/t/p/w342/tvASbBz0BD9HCK0Sm8aqAdCCim0.jpg
D/PhilmImageView( 1719): Loading http://image.tmdb.org/t/p/w342/fekLhZLhMUyEjG2mAnsxCXBoVAo.jpg
D/PhilmImageView( 1719): Loading http://image.tmdb.org/t/p/w342/pjCirY76DcZqaVFSzdRQAxLcyOG.jpg
F/libc    ( 1719): Fatal signal 11 (SIGSEGV) at 0x96f193a8 (code=2), thread 1719 (app.philm.in)
I/DEBUG   (  121): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  121): Build fingerprint: 'generic/vbox86p/vbox86p:4.3/JLS36G/eng.buildbot.20131127.102418:userdebug/test-keys'
I/DEBUG   (  121): Revision: '0'
I/DEBUG   (  121): pid: 1719, tid: 1719, name: app.philm.in  >>> app.philm.in <<<
I/DEBUG   (  121): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 96f193a8
I/DEBUG   (  121):     eax 00000000  ebx b75ec6b6  ecx 00000014  edx 96f193bc
I/DEBUG   (  121):     esi 00000014  edi 00000001
I/DEBUG   (  121):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
I/DEBUG   (  121):     eip b75ec6b6  ebp b8fee910  esp bf99f648  flags 00210282
E/Corkscrew(  121): unrecognized DW_CFA_* instruction: 0x10
I/DEBUG   (  121): 
I/DEBUG   (  121): backtrace:
I/DEBUG   (  121):     #00  pc 0002f6b6  /system/lib/libc.so (memset+70)
I/DEBUG   (  121):     #01  pc 00015c6f  /system/lib/libhwui.so (android::uirenderer::FontRenderer::cacheBitmap(SkGlyph const&, android::uirenderer::CachedGlyphInfo*, unsigned int*, unsigned int*, bool)+511)
I/DEBUG   (  121):     #02  pc 00011aea  /system/lib/libhwui.so (android::uirenderer::Font::precache(SkPaint*, char const*, int)+922)
I/DEBUG   (  121):     #03  pc 0001414e  /system/lib/libhwui.so (android::uirenderer::FontRenderer::precache(SkPaint*, char const*, int, android::uirenderer::Matrix4 const&)+78)
I/DEBUG   (  121):     #04  pc 00024aa6  /system/lib/libhwui.so (android::uirenderer::DrawTextOp::onDefer(android::uirenderer::OpenGLRenderer&, int*, void**)+486)
I/DEBUG   (  121): 
I/DEBUG   (  121): stack:
I/DEBUG   (  121):          bf99f608  00000000  
I/DEBUG   (  121):          bf99f60c  00000000  
I/DEBUG   (  121):          bf99f610  00000000  
I/DEBUG   (  121):          bf99f614  00000000  
I/DEBUG   (  121):          bf99f618  00000000  
I/DEBUG   (  121):          bf99f61c  00000000  
I/DEBUG   (  121):          bf99f620  00000000  
I/DEBUG   (  121):          bf99f624  00000000  
I/DEBUG   (  121):          bf99f628  00000000  
I/DEBUG   (  121):          bf99f62c  00000000  
I/DEBUG   (  121):          bf99f630  00000000  
I/DEBUG   (  121):          bf99f634  00000000  
I/DEBUG   (  121):          bf99f638  00000000  
I/DEBUG   (  121):          bf99f63c  00000000  
I/DEBUG   (  121):          bf99f640  00000000  
I/DEBUG   (  121):          bf99f644  00000000  
I/DEBUG   (  121):     #00  bf99f648  b5c47aac  /system/lib/libhwui.so
I/DEBUG   (  121):          bf99f64c  b5be0c70  /system/lib/libhwui.so (android::uirenderer::FontRenderer::cacheBitmap(SkGlyph const&, android::uirenderer::CachedGlyphInfo*, unsigned int*, unsigned int*, bool)+512)
I/DEBUG   (  121):     #01  bf99f650  96f193a8  
I/DEBUG   (  121):          bf99f654  00000000  
I/DEBUG   (  121):          bf99f658  00000014  
I/DEBUG   (  121):          bf99f65c  bf99f6bc  [stack]
I/DEBUG   (  121):          bf99f660  b94df29c  [heap]
I/DEBUG   (  121):          bf99f664  00000000  
I/DEBUG   (  121):          bf99f668  b8e433a8  [heap]
I/DEBUG   (  121):          bf99f66c  b6ca1210  /system/lib/libskia.so (SkGlyphCache::findImage(SkGlyph const&)+144)
I/DEBUG   (  121):          bf99f670  b9145470  [heap]
I/DEBUG   (  121):          bf99f674  b8e425f0  [heap]
I/DEBUG   (  121):          bf99f678  00000000  
I/DEBUG   (  121):          bf99f67c  0000005e  
I/DEBUG   (  121):          bf99f680  bf99f6c0  [stack]
I/DEBUG   (  121):          bf99f684  bf99f6bc  [stack]
I/DEBUG   (  121):          bf99f688  96f19008  
I/DEBUG   (  121):          bf99f68c  b6f5ad48  /system/lib/libskia.so
I/DEBUG   (  121):          ........  ........
I/DEBUG   (  121):     #02  bf99f6e0  b8fee910  [heap]
I/DEBUG   (  121):          bf99f6e4  b94df29c  [heap]
I/DEBUG   (  121):          bf99f6e8  b9316bb8  [heap]
I/DEBUG   (  121):          bf99f6ec  bf99f720  [stack]
I/DEBUG   (  121):          bf99f6f0  bf99f724  [stack]
I/DEBUG   (  121):          bf99f6f4  00000001  
I/DEBUG   (  121):          bf99f6f8  00000000  
I/DEBUG   (  121):          bf99f6fc  00000000  
I/DEBUG   (  121):          bf99f700  3f800000  
I/DEBUG   (  121):          bf99f704  00000010  
I/DEBUG   (  121):          bf99f708  b9316bb8  [heap]
I/DEBUG   (  121):          bf99f70c  b94f6534  [heap]
I/DEBUG   (  121):          bf99f710  b90f0fdc  [heap]
I/DEBUG   (  121):          bf99f714  b94f653a  [heap]
I/DEBUG   (  121):          bf99f718  3f800052  
I/DEBUG   (  121):          bf99f71c  00000000  
I/DEBUG   (  121):          ........  ........
I/DEBUG   (  121): 
I/DEBUG   (  121): memory map around fault addr 96f193a8:
I/DEBUG   (  121):     96e99000-96f19000 r-x /dev/ashmem/dalvik-jit-code-cache (deleted)
I/DEBUG   (  121):     96f19000-96f1a000 r-x 
I/DEBUG   (  121):     96f1a000-96f9a000 rw- 
I/BootReceiver(  476): Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
W/InputDispatcher(  476): channel '528c92ac app.philm.in/app.philm.in.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher(  476): channel '528c92ac app.philm.in/app.philm.in.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
W/InputDispatcher(  476): channel '52b5a4b8 app.philm.in/app.philm.in.MovieActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher(  476): channel '52b5a4b8 app.philm.in/app.philm.in.MovieActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
W/InputDispatcher(  476): channel '52a1fcb8 app.philm.in/app.philm.in.PersonActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher(  476): channel '52a1fcb8 app.philm.in/app.philm.in.PersonActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
W/InputDispatcher(  476): channel '5292f0c8 app.philm.in/app.philm.in.MovieActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher(  476): channel '5292f0c8 app.philm.in/app.philm.in.MovieActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
D/dalvikvm(  476): GC_FOR_ALLOC freed 1252K, 35% free 10991K/16720K, paused 12ms, total 14ms
W/InputDispatcher(  476): Attempted to unregister already unregistered input channel '52b5a4b8 app.philm.in/app.philm.in.MovieActivity (server)'
I/WindowState(  476): WIN DEATH: Window{52b5a4b8 u0 app.philm.in/app.philm.in.MovieActivity}
D/Zygote  (  144): Process 1719 terminated by signal (11)
W/InputDispatcher(  476): Attempted to unregister already unregistered input channel '528c92ac app.philm.in/app.philm.in.MainActivity (server)'
W/InputDispatcher(  476): Attempted to unregister already unregistered input channel '5292f0c8 app.philm.in/app.philm.in.MovieActivity (server)'
I/WindowState(  476): WIN DEATH: Window{528c92ac u0 app.philm.in/app.philm.in.MainActivity}
I/WindowState(  476): WIN DEATH: Window{5292f0c8 u0 app.philm.in/app.philm.in.MovieActivity}
W/InputDispatcher(  476): Attempted to unregister already unregistered input channel '52a1fcb8 app.philm.in/app.philm.in.PersonActivity (server)'
I/WindowState(  476): WIN DEATH: Window{52a1fcb8 u0 app.philm.in/app.philm.in.PersonActivity}
W/ActivityManager(  476):   Force finishing activity app.philm.in/.PersonActivity
W/ActivityManager(  476): Exception thrown during pause
W/ActivityManager(  476): android.os.DeadObjectException
W/ActivityManager(  476):   at android.os.BinderProxy.transact(Native Method)
W/ActivityManager(  476):   at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:635)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:990)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3834)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3766)
W/ActivityManager(  476):   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:8344)
W/ActivityManager(  476):   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:8221)
W/ActivityManager(  476):   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:8900)
W/ActivityManager(  476):   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:8455)
W/ActivityManager(  476):   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
I/ActivityManager(  476): Restarting because process died: ActivityRecord{52a10dc0 u0 app.philm.in/.MovieActivity}
W/ActivityManager(  476): Exception when starting activity app.philm.in/.MovieActivity
W/ActivityManager(  476): android.os.DeadObjectException
W/ActivityManager(  476):   at android.os.BinderProxy.transact(Native Method)
W/ActivityManager(  476):   at android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:723)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.realStartActivityLocked(ActivityStack.java:716)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.startSpecificActivityLocked(ActivityStack.java:823)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1773)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1432)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1041)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3834)
W/ActivityManager(  476):   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3766)
W/ActivityManager(  476):   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:8344)
W/ActivityManager(  476):   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:8221)
W/ActivityManager(  476):   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:8900)
W/ActivityManager(  476):   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:8455)
W/ActivityManager(  476):   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
W/ActivityManager(  476): Force removing ActivityRecord{52a10dc0 u0 app.philm.in/.MovieActivity}: app died, no saved state
D/dalvikvm( 2011): Late-enabling CheckJNI
I/ActivityManager(  476): Start proc app.philm.in for activity app.philm.in/.MovieActivity: pid=2011 uid=10061 gids={50061, 3003, 1028}
I/ActivityManager(  476): Process app.philm.in (pid 1719) has died and restarted (pid 2011).
E/NativeCrashListener(  476): Unable to report native crash
E/NativeCrashListener(  476): java.lang.IndexOutOfBoundsException: Invalid index 4, size is 4
E/NativeCrashListener(  476):   at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
E/NativeCrashListener(  476):   at java.util.ArrayList.get(ArrayList.java:308)
E/NativeCrashListener(  476):   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:8351)
E/NativeCrashListener(  476):   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:8221)
E/NativeCrashListener(  476):   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:8900)
E/NativeCrashListener(  476):   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:8455)
E/NativeCrashListener(  476):   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
W/WindowManager(  476): Token{528f6df4 ActivityRecord{52a10dc0 u0 app.philm.in/.MovieActivity}} already running, starting window not displayed
W/WindowManager(  476): view not successfully added to wm, removing view
W/WindowManager(  476): Attempted to add application window with unknown token Token{528f6df4 ActivityRecord{52a10dc0 u0 app.philm.in/.MovieActivity}}.  Aborting.
W/WindowManager(  476): Exception when adding starting window
W/WindowManager(  476): java.lang.IllegalArgumentException: View not attached to window manager
W/WindowManager(  476):     at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:406)
W/WindowManager(  476):     at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:308)
W/WindowManager(  476):     at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:84)
W/WindowManager(  476):     at com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:1651)
W/WindowManager(  476):     at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:6930)
W/WindowManager(  476):     at android.os.Handler.dispatchMessage(Handler.java:99)
W/WindowManager(  476):     at android.os.Looper.loop(Looper.java:137)
W/WindowManager(  476):     at android.os.HandlerThread.run(HandlerThread.java:61)
E/jdwp    ( 2011): Failed sending reply to debugger: Broken pipe

About Task(Runnable)

1.this task cannot canceled?
2.about this code :

At BaseMovieRunnable ...{
// ...
@OverRide
public void onPreTraktCall() {
getEventBus().post(createLoadingProgressEvent(true));
}

// ...
@OverRide
public void onFinished() {
getEventBus().post(createLoadingProgressEvent(false));
}
// ...
}
If I have more than one request in multiple pages, use same Event at same time, it's really work?

login failed

trakt-java api is return error, can not login.

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.