This library will help you to reach out to best possible answer for your bug/error available on stackoverflow and will show it in your Android Studio Console only.
- SolveWithStack is available in the Maven. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Start using by simply adding it as a dependency
implementation 'com.github.yashishdua:SolveWithStack:v1.0.3'
- Create a class MyApplication.java extending Application
pubic class MyApplication extends Application {
@Override
public void onCreate(){
super.onCreate();
}
}
- Make sure you refer MyApplication class context
- Add Internet permission in Manifest
- Include Service in Manifest
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:name=".MyApplication"
...>
<activity...>
<service
android:name="com.yashish.library.solvewithstack.services.StackAPIBackgroundService">
</service>
</application>
- To initialize SolveWithStack, do this under your onCreate() of MyApplication.java
pubic class MyApplication extends Application {
@Override
public void onCreate(){
super.onCreate();
SolveWithStack.apply(getApplicationContext());
}
}
If you found this library useful and want to thank me, show some ❤️ and star the project!
- SolveWithStack uses Retrofit to connect with StackOverFlow API.
- To create this README.md, I reffered to Nishant's Library, Sensey.
Copyright 2017 Yashish Dua
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.