Is it possible to make android library contains readme.txt?
I am new in Gradle. I've been made android library and I will upload this into maven repository. But is it possible to add "Readme.txt" into my library? for example, When someone add my library into dependencies section in build.gradle and sync. then Gradle creates(or copy) "Readme.txt" into target project(probably $projectDir or $projectDir/app) and user can read it(Like NuGet) (Important things of this library, how to use example or something like that.) I think it is really annoying visit project web-site and read "How to use" every using single library. I want my library contains how to use text file. Thank you.
I don't think this is possible, you don't know how the calling use is referencing your project. They are likely only referencing the compiled source code and never running your gradle file. This is not a good idea, you don't know their exact folder structure, and even if you did you can not be sure that your readme.txt would have a unique name that did not conflict with their project file.s
When using a .jar file you cannot include this as resources cannot be compiled into it. But you can export your library as an *.aar file which can contain resource files. You get this by using "com.android.library" as your plugin type and can then find the aar-file in your build folder after you have built it. This can then be included in your other project e.g. as a file reference.
Run Geolocation on DalvikVM
2D Rectangle Collision detection in Android
urimatcher in android content provider
ListAdapter from MySQL Database Arrays
How do you make it so that at the end of a process, the ongoing notification vibrates and plays sound?
Android: Looping through views
Launch Preinstalled App from activity (Google Voice Search) Android
How do I parse a very long String in xml?
searching contacts in android by voice recognition
How to set locale to TTS engine dynamically?
how to apply random function into button array in android
Not able to Login after connect Android client with local XMPP server
Mo Pub add doesnot load
Finding the point on the progressbar where the surface was clicked
Android Autocomplete textview onitemclicklistener not working