How to get App VersionCode and VersionName in Android This is very simple task, you can use the
android:versionCode and android:versionName attributes in the
AndroidManifest.xml. That way, as long as the package name is the same it won't
overlap and you can get that info like this to see if there is a newer version
Here is my simple example which show how to genrate pdf file from android including text and images.
Here I keep this example simple, So you can understand easily.
But following are requirement for this project
Adding droidText to your project
There are two possibilities to add droidText to your project.
Android library project (recommended)
Check out droidText from svn and import it into your eclipse workspace (see here for checkout instructions and here for import instructions)
Add a reference to the droidText library project in your project as described in the Android Developer reference.