Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Jusenr/androidtools

Repository files navigation

AndroidTools

Android Some of the tools used in development.


Bintray Jitpack API License

To get a Git project into your build:


Step 1. Dependent Manner

The First: Add the JitPack repository to your build file

(1) Add it in your root build.gradle at the end of repositories:

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

(2) Add the dependency

 dependencies {
 ...
 compile 'com.github.Jusenr:androidtools:1.3.9'
 }

The Second: Add the dependency

 dependencies {
 ...
 compile 'com.jusenr.android.library:androidtools:1.3.9'
 }

Step 2. Add required permissions

<manifest
 ...
 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
 <application
 ...
 <!--Log view page-->
 <activity
 android:name="com.jusenr.toolslibrary.log.PTLogActivity"
 android:screenOrientation="portrait"/>
 </application>
</manifest>

Step 3. Initialization configuration

App extends Application{
 @Override
 public void onCreate() {
 super.onCreate();
 //AndroidTools initialise.
 AndroidTools.init(getApplicationContext(), "LogTag");
 }
}

It was smashing! Setup Complete!!!


Express one's thanks

Thanks to Guchenkai, Trinea, Riven_chris, Zengshengwen, Leo, Sunnybear, Liuwan, Wangxiaopeng, Orhanobut provides the resources.


Possible solutions to the problem

  1. Support packet conflict problem

Add Build.gradle to the project: The version is the current version of your project.

 subprojects {
 configurations.all {
 resolutionStrategy {
 force 'com.android.support:support-xx:xx.x.x'
 }
 }
 }

License

Apache License Version 2.0

Copyright 2017 Jusenr
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.

About

Android Some of the tools used in development.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /