Code Monkey home page Code Monkey logo

richutilskt's Introduction

WindSekirun (wind.seo)

Android Developer, Kotlin Lover. Current working on @kakaobank from 2019.06

WindSekirun's github stats

Contact Me

Interest

  • Language: Kotlin, Java, TypeScript, Python
  • Platform: Android, Backend (Spring, Node, Flask), Frontend (React, Vue.js)

richutilskt's People

Contributors

windsekirun 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

richutilskt's Issues

Suggestion for improvement

Few useful additions for your library, which will be great to have:

  1. RPickMedia.kt: Add ability to pick File (not photo, not video) with optional to filter by mime type
  2. RPickMedia.kt: Add optional properties to pick video from camera(during of video, size of video, etc)
  3. RIntent.kt: Add ability to send sms with body text
  4. RStatusBar.kt: Add ability to change status bar theme(dark or light) -
    https://stackoverflow.com/a/43662054
  5. RActivity.kt (new): add ability to change activity with ext, optional request code to start for result, optional clear flag(to clear backstack), etc.
    ... Will be populate issue with new ideas. Thanks for your library, very helpfully!

Oreo 8.0: ResultFragment must be a public static class

  Caused by: java.lang.IllegalStateException: Fragment pyxis.uzuki.live.richutilskt.utils.RPickMedia.ResultFragment must be a public static class to be  properly recreated from instance state.
                      at android.app.BackStackRecord.doAddOp(BackStackRecord.java:429)
                      at android.app.BackStackRecord.add(BackStackRecord.java:409)
                      at pyxis.uzuki.live.richutilskt.utils.RPickMedia.requestPhotoPick(RPickMedia.kt:119)
                      at pyxis.uzuki.live.richutilskt.utils.RPickMedia.pickFromGallery(RPickMedia.kt:80)
                      at android.app.Activity.performCreate(Activity.java:7173)
                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2889)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3011) 
                      at android.app.ActivityThread.-wrap11(Unknown Source:0) 
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1682) 
                      at android.os.Handler.dispatchMessage(Handler.java:105) 
                      at android.os.Looper.loop(Looper.java:164) 
                      at android.app.ActivityThread.main(ActivityThread.java:6888) 
                      at java.lang.reflect.Method.invoke(Native Method) 
                      at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) 
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1370) 

Improvement: Apply Alpha Percentage to Color

... for who working with non-developer designer.

to Prevent this situation

Designer: Hey,  i would like to apply this alpha into color
Developer: OK... what is the value?
Designer: maybe 80%?
Developer: ...OK

Add Feature: Base Context (Application)

  • RichUtilsGlobal 객체 생성
  • ApplicationContext를 넘길 수 있는 모든 Context 확장 메서드를 클론, 새 메소드 생성
  • 주어지지 않았을 경우에 대한 예외 처리

IllegalStateException when RPickMedia.pickFromCamera called.

07-21 18:32:02.659 22345-22458/com.appg.navion W/ExifInterface: Skip the tag entry since tag number is not defined: 2 07-21 18:32:03.395 22345-22345/com.appg.navion D/AndroidRuntime: Shutting down VM 07-21 18:32:03.402 22345-22345/com.appg.navion E/AndroidRuntime: FATAL EXCEPTION: main Process: com.appg.navion, PID: 22345 java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1434) at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1452) at android.app.BackStackRecord.commitInternal(BackStackRecord.java:708) at android.app.BackStackRecord.commit(BackStackRecord.java:672) at pyxis.uzuki.live.richutilskt.utils.RPickMedia.requestPhotoPick(RPickMedia.kt:78) at pyxis.uzuki.live.richutilskt.utils.RPickMedia.pickFromGallery(RPickMedia.kt:51) at com.appg.navion.myhome.photo.edit.MyHomePhotoEditActivity.onTakePhotoClicked(MyHomePhotoEditActivity.java:67) at com.appg.navion.myhome.photo.edit.MyHomePhotoEditActivity_ViewBinding$1.doClick(MyHomePhotoEditActivity_ViewBinding.java:37) at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22) at android.view.View.performClick(View.java:5637) at android.view.View$PerformClick.run(View.java:22429) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6121) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

IllegalStateException when RPickMedia.pickFromCamera called in activity that has cropImageView.

아몰랑 고쳐줘요

1.2.5.2 Minor fix

remove some dependencies cause it will make method count over 65535!

Optimize code

I already optimzie duplicate and dirty code by this method

  • Write 'RichUtilsInternal.kt' to do work with try-catch resources
  • Make some field into lateinit to give field not-nullable.
    • Before some field such as LocationManager, SensorManager is null-able due to compiler error

but there are some usable methods to optimize.
main goal of this issue is reduce LOC of this library.

-- Tracking issue --

Important changes on RInAppBilling

Important changes on RInAppBilling

  1. Implemented getPurchase(type, token, QueryPurchaseResult)

it will return purchase item which not consumed with List and continuationToken.

  1. remove OnInAppConsumeCallback

instead, pass ConsumePurchaseResult in consumePurchase.

  1. change OnInAppBillingCallback into PurchaseResult

Add Feature: get state of network

I know there is some methods of checking network state, but i want simple way

  • isWifiConnected() -> true
  • isMobileConnected() -> true
  • isNotConnected() -> true

Native fragment will deprecated in Android P

two days ago, JakeWharton says,

The next version of Android will deprecate the version of fragments that are part of the platform. Thus, we aren't going to add any extensions to support them in this project.

see in android/android-ktx#161 (comment)

so i need change all native fragment to support library's fragment.

Here is Target

  • RPickMedia
  • RPermission

Improvement: new Sample / Code Index

TODO

  • RAlert
  • RAssets
  • RBitmap
  • RClipboard
  • RContactProvider
  • RDate
  • RDeviceId
  • RDimen
  • RDrawable
  • RFile
  • RFont
  • RInflater
  • RIntent
  • RJson
  • RKeyboard
  • RKeyHash
  • RNetwork
  • RPermission
  • RPhoto
  • RPickMedia
  • RPreference
  • RProcess
  • RReboot
  • RStatusBar
  • RStream
  • RText
  • RThread
  • RVersion
  • RVibrate
  • RView
  • RHintSpinner
  • RLocationService
  • RThumbnail
  • RUnReadCount
  • CenterIconButton
  • CombinedTextView
  • HTMLTextView
  • RSystemService
  • CrashHandler
  • InAppBilling

RPickMedia - IllegalStateException: Activity has been destroyed

                                                                 java.lang.IllegalStateException: Activity has been destroyed
                                                                     at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1456)
                                                                     at android.app.BackStackRecord.commitInternal(BackStackRecord.java:707)
                                                                     at android.app.BackStackRecord.commitAllowingStateLoss(BackStackRecord.java:675)
                                                                     at pyxis.uzuki.live.richutilskt.utils.RPickMedia.requestPhotoPick(RPickMedia.kt:77)
                                                                     at pyxis.uzuki.live.richutilskt.utils.RPickMedia.pickFromGallery(RPickMedia.kt:50)
                                                                     at android.support.v7.app.AlertController$AlertParams$3.onItemClick(AlertController.java:1045)
                                                                     at android.widget.AdapterView.performItemClick(AdapterView.java:310)
                                                                     at android.widget.AbsListView.performItemClick(AbsListView.java:1199)
                                                                     at android.widget.AbsListView$PerformClick.run(AbsListView.java:3171)
                                                                     at android.widget.AbsListView$3.run(AbsListView.java:4225)
                                                                     at android.os.Handler.handleCallback(Handler.java:751)
                                                                     at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                     at android.os.Looper.loop(Looper.java:154)
                                                                     at android.app.ActivityThread.main(ActivityThread.java:6247)
                                                                     at java.lang.reflect.Method.invoke(Native Method)
                                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
                                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)

Change JVM Classname Utils -> RichUtils

Since Java doesn't have import class within alias,

The class name 'Utils' is too common name to use, (most of my project have separated Utils class)

so I decide change JVM class name Utils -> RichUtils.

This change occur many changes.

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.