android


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.

Related Links

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
using android.net.rtp
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

Categories

HOME
android
twitter-bootstrap-3
phpmyadmin
powerpoint
knitr
grafana
ms-access-2016
access
static-site
vxml
tail
square
ado.net
zip
banner
opengl-3
nfs
qpython
32bit-64bit
cmdb
selenium-ide
do-while
altera
screen-readers
azure-iot-hub
scsi
intershop
wolframalpha
google-container-registry
connector
boost-icl
jquery-ias
href
ios10.2
string-concatenation
hta
nstimer
linked-data
genexus-sd
testcomplete
alm
scatter3d
record
erb
hard-drive
yowsup
timing
tex
projects-and-solutions
metaprogramming
spring-mvc-test
visa
attributeerror
microsoft-metro
congestion-control
avcapturedevice
android-checkbox
stylecop
stdmap
semantic-logging
subnet
backbone-collections
monkey
template-toolkit
structuremap4
filenet
restore
donations
cvxpy
x-tag
shopping
http-status-code-401
bizagi
project-organization
ikiwiki
uiactionsheet
libav
halcon
invoke-sqlcmd
inf
java-money
rpart
mod-proxy
mirror
node-serialport
broadband
gamekit
mass-assignment
nodelist
teaspoon
rickshaw
nsmenu
kissfft
personalization
live555
renderer
extjs2
vbe
cfcache
koala
accesscontrolexception
kendo-dataviz
mongohq
route-provider
android-icons
wimax
idn
fragmenttransaction
httponly
jsr286
apache-commons-dbutils
workflow-services
update-statement
webdev.webserver
lr
cgbitmapcontextcreate
cdonts
nhprof
isapi-extension
openfaces
zen
pos-for-.net
visualj#
wspbuilder

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App