Received: by 10.43.44.198 with SMTP id uh6mr186914icb.4.1317112861813; Tue, 27 Sep 2011 01:41:01 -0700 (PDT) X-BeenThere: android-platform@googlegroups.com Received: by 10.231.19.197 with SMTP id c5ls1586084ibb.0.gmail; Tue, 27 Sep 2011 01:40:40 -0700 (PDT) Received: by 10.42.144.71 with SMTP id a7mr3194978icv.25.1317112840445; Tue, 27 Sep 2011 01:40:40 -0700 (PDT) Received: by 10.42.144.71 with SMTP id a7mr3194977icv.25.1317112840432; Tue, 27 Sep 2011 01:40:40 -0700 (PDT) Return-Path: Received: from mail-iy0-f193.google.com (mail-iy0-f193.google.com [209.85.210.193]) by gmr-mx.google.com with ESMTPS id z10si4018498icv.7.2011.09.27.01.40.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Sep 2011 01:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of hongjiuj...@gmail.com designates 209.85.210.193 as permitted sender) client-ip=209.85.210.193; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of hongjiuj...@gmail.com designates 209.85.210.193 as permitted sender) smtp.mail=hongjiuj...@gmail.com; dkim=pass (test mode) header...@gmail.com Received: by iaen33 with SMTP id n33so1487092iae.8 for ; Tue, 27 Sep 2011 01:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=c/CfmjLp9sieVkMplXiuXcRMphdf9d6Z3rJOOOyrzts=; b=viT/YTJl55RBKXEGV3g1rpaLVqxMMruRBQe5NWw4f++cRVR/aQEkaw213VbxRvAc0F eYEyv1kVnMfm3WKmd+3U25gK9eHdO3qM+sTOLFltXCkP+bN0+fw6jreIW9akF5Hq/zDq KViT+G+AvusPwPlIiVXNQMrfWzm4kKdD8LdoE= MIME-Version: 1.0 Received: by 10.231.50.202 with SMTP id a10mr10839547ibg.39.1317112840265; Tue, 27 Sep 2011 01:40:40 -0700 (PDT) Received: by 10.231.33.203 with HTTP; Tue, 27 Sep 2011 01:40:40 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Sep 2011 16:40:40 +0800 Message-ID: Subject: Re: application to call /system/bin/ts_calibrate From: "tommy.hong" To: android-platform@googlegroups.com Content-Type: multipart/alternative; boundary=00151773e0fef91fc804ade83ae5 --00151773e0fef91fc804ade83ae5 Content-Type: text/plain; charset=ISO-8859-1 i use the same s3c6410 android2.1 to develop products,i think we can communicate. BTW,for your question,you can take tslibandroid to use. 2011/9/27 Peter > Hey, > > I am working on android 2.1 version for my SMDK6410 board. > > I wanted to do touch calibration on my device so i used "android- > tslib" code available online and made the necessary changes. > I am able to create the "ts_calibrate" file in /system/bin and it is > working fine. > > Now my requirement is to give user a option to run that ts_calibrate > directly from device. In short i want to make an apk file which calls > the ts_calibrate directly. (currently i am running it from adb shell) > I am not that familiar with java coding so can anyone please share > some code snippet (to make an apk) which shows how to run /system/bin/ > ts_calibrate. > > I tried something like this > http://stackoverflow.com/questions/5484535/runtime-exec-reboot-in-android > but it is not working, (may be because i don't have "/system/bin/su" > in my system) > > > thanks a lot > Peter > > -- > You received this message because you are subscribed to the Google Groups > "android-platform" group. > To post to this group, send email to android-platform@googlegroups.com. > To unsubscribe from this group, send email to > android-platform+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/android-platform?hl=en. > > -- Chinese Name:Hong jiu jin Android,Internet of Things,Embedded System Design and Develop English Name:Tommy Tel: +86 1367514 8249 Skype ID:hongjiujing Gtalk ID:: hongjiuj...@gmail.com Blog: http://internetofthings.blogbus.com/ Country:China There are three types of people in this world: those who make things happen, those who watch things happen and those who wonder what happened. --00151773e0fef91fc804ade83ae5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable i use the same s3c6410 android2.1 to develop products,i think we can commun= icate.

BTW,for your question,you can take tslibandroid to use.
2011/9/27 Peter <manoj...@gmail.com>
Hey,

I am working on android 2.1 version for my SMDK6410 board.

I wanted to do touch calibration on my device so i used "android-
tslib" code available online and made the necessary changes.
I am able to create the "ts_calibrate" file in /system/bin and it= is
working fine.

Now my requirement is to give user a option to run that ts_calibrate
directly from device. In short i want to make an apk file which calls
the ts_calibrate directly. (currently i am running it from adb shell)
I am not that familiar with java coding so can anyone please share
some code snippet (to make an apk) which shows how to run /system/bin/
ts_calibrate.

I tried something like this
http://stackoverflow.com/questions/5484535/run= time-exec-reboot-in-android
but it is not working, (may be because i don't have "/system/bin/s= u"
in my system)


thanks a lot
Peter

--
You received this message because you are subscribed to the Google Groups &= quot;android-platform" group.
To post to this group, send email to android-platform@googlegroups.com.
To unsubscribe from this group, send email to android-platform+unsubscribe@googlegr= oups.com.
For more options, visit this group at http://groups.google.com/g= roup/android-platform?hl=3Den.




--
Chinese Name:Hong jiu jin
Android,Internet of Things,Em= bedded System Design and Develop
English Name:Tommy
Tel: +86 1367514 8249
Skype ID:hongji= ujing=A0
Gtalk ID:: hongjiuj...@gmail.com<= /div>Blog: http://internetofthings.blogbus.com/
Country:China
There are three types of people in this world: those who make things happen, those who watch things happen and those who=20 wonder what happened.
--00151773e0fef91fc804ade83ae5--