[android-developers] How to write build time stamp into apk in Android.mk makefile

2011-09-30 Thread RainFall
1. Making some changes in Android Contacts  package
2. Using mm (make) command to build this application

Because I have to change and build this app again and again,  so I
want to add a build time stamp in the Contacts.apk  to check the build
time when we runn it in the handset.

As we know, when we run mm command, the Android.mk (makefile) in
Contacts package will be called.

And now, we can get the build time using date macro.

But how we can write this build time stamp into a file that our
application can read at runtime?

Any suggestions? thanks. ^_^

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to write build time stamp into apk in Android.mk makefile

2011-09-30 Thread Mark Murphy
Step #1: Visit http://source.android.com

Step #2: Click on the Community tab

Step #3: Find a Google Group that is relevant to your question

Step #4: Ask there

This list is for application development with the Android SDK.

On Fri, Sep 30, 2011 at 3:50 AM, RainFall sqy...@gmail.com wrote:
 1. Making some changes in Android Contacts  package
 2. Using mm (make) command to build this application

 Because I have to change and build this app again and again,  so I
 want to add a build time stamp in the Contacts.apk  to check the build
 time when we runn it in the handset.

 As we know, when we run mm command, the Android.mk (makefile) in
 Contacts package will be called.

 And now, we can get the build time using date macro.

 But how we can write this build time stamp into a file that our
 application can read at runtime?

 Any suggestions? thanks. ^_^

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en