application to call /system/bin/ts_calibrate

76 views
Skip to first unread message

Peter

unread,
Sep 27, 2011, 3:35:13 AM9/27/11
to android-platform
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

tommy.hong

unread,
Sep 27, 2011, 4:40:40 AM9/27/11
to android-...@googlegroups.com
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 <mano...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@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 
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.

Peter

unread,
Sep 27, 2011, 6:38:37 AM9/27/11
to android-platform
Hi tommy,

is tslibandroid an application ??

i am using android-tslib, it creates a ts_calibrate file in /system/
bin/ so it is not an apk, although i can run it on console.
but that is not my requirement i need an application which can run /
system/bin/ts_calibrate

On Sep 27, 4:40 pm, "tommy.hong" <hongjiuj...@gmail.com> wrote:
> 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 <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/runtime-exec-reboot-in-and...
> > 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-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@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 <talk%3Ahongjiuj...@gmail.com>

Peter

unread,
Sep 27, 2011, 7:20:20 AM9/27/11
to android-platform
Hi tommy,

is tslibandroid an application ??

i am using android-tslib, it creates a ts_calibrate file in /system/
bin/ so it is not an apk, although i can run it on console.
but that is not my requirement i need an application which can run /
system/bin/ts_calibrate

On Sep 27, 4:40 pm, "tommy.hong" <hongjiuj...@gmail.com> wrote:
> 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 <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/runtime-exec-reboot-in-and...
> > 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-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@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 <talk%3Ahongjiuj...@gmail.com>

tommy.hong

unread,
Sep 28, 2011, 4:23:27 AM9/28/11
to android-...@googlegroups.com

for tslibcalibrate apk,you need to write android application.

I have writtten.

B.R
Tommy
2011/9/27 Peter <mano...@gmail.com>
Reply all
Reply to author
Forward
0 new messages