Advancement Utils for Android Developer written in Kotlin

Related tags

Kotlin RichUtilsKt
Overview

RichUtils codebeat badge

Kotlin GitHub license Android Arsenal Awesome Kotlin Badge Mentioned in Awesome Kotlin API

RichUtils logo

About

Version: 2.0.0 :: Dreaming Bird (夢魅鳥, Yumemidori) ::

RichUtils is Advancement Utils for Android, written in Kotlin. Everything you need is Here! RichUtils work for you for solve necessary things, bother things in development process. I assure you that RichUtils will help you.

It provides...

Important changes 2.0.0 -> 2.1.5

  • minSdkVersion will increase 16 (Android 4.1) from 14 (Android 4.0)
  • targetSdkVersion will increase 27 (Android 8.1) from 26 (Android 8.0)
  • Having 'appcompat-v7:27.1.1' as Dependency
  • Important changes on RInAppBilling, see #53

Usages

rootProject/build.gradle

allprojects {
    repositories {
	    maven { url 'https://jitpack.io' }
    }
}

app/build.gradle

dependencies {
    implementation 'com.github.WindSekirun:RichUtilsKt:2.4.0'
}

Contents

Full Method List in RichUtils.class

Go to WIKI

Utils

Widget

Service

Module

License

Copyright 2017-2018 WindSekirun (DongGil, Seo)

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.
Comments
  • IllegalStateException when RPickMedia.pickFromCamera called.

    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.

    아몰랑 고쳐줘요

    Bug 
    opened by zeallat 2
  • Optimize code

    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 --

    Improvement 
    opened by WindSekirun 2
  • toNumFormat improvement

    toNumFormat improvement

    public static String getFormattedNum(String num) { DecimalFormat decimalFormat = new DecimalFormat("#,###.##"); return decimalFormat.format(new BigDecimal(num)); }

    opened by WindSekirun 1
  • Improvement: Apply Alpha Percentage to Color

    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
    
    Improvement 
    opened by WindSekirun 1
  • Oreo 8.0: ResultFragment must be a public static class

    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) 
    
    Bug 
    opened by WindSekirun 1
  • Improvement: new Sample / Code Index

    Improvement: new Sample / Code Index

    TODO

    • [x] RAlert
    • [x] RAssets
    • [x] RBitmap
    • [x] RClipboard
    • [x] RContactProvider
    • [x] RDate
    • [x] RDeviceId
    • [x] RDimen
    • [x] RDrawable
    • [x] RFile
    • [x] RFont
    • [x] RInflater
    • [x] RIntent
    • [x] RJson
    • [x] RKeyboard
    • [x] RKeyHash
    • [x] RNetwork
    • [x] RPermission
    • [x] RPhoto
    • [x] RPickMedia
    • [x] RPreference
    • [x] RProcess
    • [x] RReboot
    • [x] RStatusBar
    • [x] RStream
    • [x] RText
    • [x] RThread
    • [x] RVersion
    • [x] RVibrate
    • [x] RView
    • [ ] RHintSpinner
    • [ ] RLocationService
    • [ ] RThumbnail
    • [ ] RUnReadCount
    • [ ] CenterIconButton
    • [ ] CombinedTextView
    • [ ] HTMLTextView
    • [ ] RSystemService
    • [ ] CrashHandler
    • [ ] InAppBilling
    Improvement 
    opened by WindSekirun 1
  • New Feature - Crash Collector

    New Feature - Crash Collector

    Re-write RichCrashCollector

    • [x] Re-write RichCrashCollector into Kotlin
    • [x] Optimize
    • [ ] Create activity for watch data
    • [ ] some test
    • [ ] enable more document form (HTML, JSON.. etc)
    Improvement 
    opened by WindSekirun 1
  • generate Thumbnail image when thumbnail image isn't available

    generate Thumbnail image when thumbnail image isn't available

    code:

    MediaStore.Video.Thumbnails.getThumbnail(getApplication().getContentResolver(), Long.valueOf(videoId), MediaStore.Video.Thumbnails.MINI_KIND, null);
    
    Bug 
    opened by WindSekirun 0
  • Suggestion for improvement

    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!
    opened by ZaydelEduard 1
Releases(2.4.0-exclude-inapp)
Owner
WindSekirun (wind.seo)
Android Developer, Kotlin Lover.
WindSekirun (wind.seo)
👋 A common toolkit (utils) ⚒️ built to help you further reduce Kotlin boilerplate code and improve development efficiency. Do you think 'kotlin-stdlib' or 'android-ktx' is not sweet enough? You need this! 🍭

Toolkit [ ?? Work in progress ⛏ ?? ??️ ?? ] Snapshot version: repositories { maven("https://s01.oss.sonatype.org/content/repositories/snapshots") }

凛 35 Jul 23, 2022
app conversor de moedas/cambio com Kotlin, no Bootcamp Carrefour Android Developer na plataforma da Digital Innovation One

Status do Projeto: ✔️ concluído a proposta de criação um app conversor de moedas/cambio com Kotlin, no Bootcamp Carrefour Android Developer na plataforma da Digital Innovation One

Luiz Correa 5 Dec 23, 2022
Kstr is a set of helpful methods library for Kotlin intended for make the developer life easier.

Kstr is a set of helpful methods library for Kotlin intended for make the developer life easier. Kstr uses the powerful feature of extension func

Rafael Acioly 0 Nov 3, 2021
Filmesflix - Project made during the NTT DATA Android Developer bootcamp. Developing knowledge in MVVM and Clear Architecture

FilmesFlix Projeto criado para o módulo de MVVM e Clean Architecture no Bootcamp

Italo Bruno 0 Feb 12, 2022
Quick route to developer options page easily

QuickRoute Using Quick Settings Tile to navigate to Developer options page without click a lot of buttons. Preview Install Can install from Google Pla

Jintin 18 Oct 1, 2021
An tool to help developer to use Retrofit elegantly while using kotlinx.coroutines.

one An tool to help developer to use Retrofit elegantly while using kotlinx.coroutines. Feature Transform different data structs to one. {errorCode, d

ChengTao 30 Dec 27, 2022
RoomJetpackCompose is an app written in Kotlin and shows a simple solution to perform CRUD operations in the Room database using Kotlin Flow in clean architecture.

RoomJetpackCompose is an app written in Kotlin and shows a simple solution to perform CRUD operations in the Room database using Kotlin Flow in clean architecture.

Alex 27 Jan 1, 2023
Android To-Do MVVM Architecture App written in Kotlin.(ViewModel, ROOM, Livedata, Coroutines)

MVVM-To-Do-App A To-Do application written in kotlin using Android Architectural components What's new? Room + Coroutines - Upgraded Room to v2.1. Roo

Naveen T P 77 Dec 8, 2022
🍼Debug Bottle is an Android runtime debug / develop tools written using kotlin language.

???? 中文 / ???? 日本語 / ???? English ?? Debug Bottle An Android debug / develop tools written using Kotlin language. All the features in Debug bottle are

Yuriel Arlencloyn 846 Nov 14, 2022
Android AsyncTask wrapper library, written in Kotlin

KillerTask This is a Kotlin Android library to create async background tasks. Inspired by TinyTask, but more beautiful and easy to use for Kotlin Andr

Inaka 26 Oct 3, 2022
A simple 'Slide to Unlock' Material widget for Android, written in Kotlin 📱🎨🦄

Slide To Act A simple Slide to Unlock Material widget for Android, written in Kotlin ??. Getting Started Example Features Attributes area_margin inner

Nicola Corti 984 Jan 2, 2023
📚 Sample Android Components Architecture on a modular word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack.

Android Components Architecture in a Modular Word Android Components Architecture in a Modular Word is a sample project that presents modern, 2020 app

Madalin Valceleanu 2.3k Jan 4, 2023
GBooks - A simple android app written in Kotlin to read books from the Google Book Api

G-Books A simple android app written in Kotlin to read books from the Google Boo

Google Developer Student Clubs - Baba Banda Singh Bahadur Engineering College 10 Nov 7, 2022
🚀 Sample Android Clean Architecture on JetRorty App focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack with Compose.

Android Clean Architecture in Rorty is a sample project that presents modern, approach to Android application development using Kotlin and latest tech-stack.

Mr.Sanchez 114 Dec 26, 2022
Sample Android Clean Architecture on App focused on written in Kotlin, following best practices using Jetpack with Compose.

Rick And Morty Jetpack Compose Sample App Table of Contents About the Project Architecture Features Environment Setup Contact About The Project This S

Mert Toptas 132 Jan 2, 2023
An extension of EditText with pin style written in Kotlin

pin-edittext An extension of EditText with pin style Usage Include PinCodeEditText in your layout XML <com.oakkub.android.PinEditText android:layo

Metas Kerdwat 15 May 28, 2021
A lightweight cache library written in Kotlin

[NEW] Released to Maven Central: 'com.github.yundom:kache:1.x.x' Kache A runtime in-memory cache. Installation Put this in your build.gradle implemen

Dennis 22 Nov 19, 2022
Mobile client for official Nextcloud News App written as Kotlin Multiplatform Project

Newsout Android and iOS mobile client for Nextcloud news App. The Android client is already available to download in the Play Store. F-Droid and Apple

Simon Schubert 118 Oct 3, 2022
Spigot-Plugin message providing system written in Kotlin

teller Spigot-Plugin message providing system written in Kotlin Usage Create an instance of PropertiesMessageProvider using the Constructor with an in

Luca Zieserl 2 Jan 16, 2022