Monday, December 19, 2011

Re: [android-developers] Pls send me android souce code....

On Tue, Dec 20, 2011 at 09:30:13AM +0530, android developer wrote:

> Pls send me android source code files(Sample Projects)
> or else send the souce code links...

I already answered this question from you in a different thread. But,
apparently, you're just looking for someone to send you sample code.
So, here's some sample code for you (a simple digital clock):

--------------------------- CUT HERE ---------------------------
#!/usr/local/bin/wish8.4

wm withdraw .
set format "%a %d %h %Y %H:%M:%S"
pack [label .time -textvariable date_time -font {Times 18} \
-background black -foreground #00FFFF] -side top -expand n
pack [button .exit -text "Exit" -command {exit 0}] -side top \
-expand y -fill x
set date_time [clock format [clock seconds] -format $format]
wm geometry . -0+0 ; update ; wm deiconify .
while {1} {
set date_time [clock format [clock seconds] -format $format]
update
after 333 ;
}
--------------------------- CUT HERE ---------------------------

:-)

There. You have your sample code. You'll need to convert that to
java/xml before you can use it for an Android app, but then, if you
don't know how to do that.....

Later,
--jim

--
THE SCORE: ME: 2 CANCER: 0
73 DE N5IAL (/4) MiSTie #49997 < Running FreeBSD 7.0 >
spooky130u@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

"'Wrong' is one of those concepts that depends on witnesses."
--Catbert: Evil Director of Human Resources (Dilbert, 05Nov09)

Android Apps Listing at http://www.jstrack.org/barcodes.html

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment