From: Archana r <ramalingam.arch...@gmail.com>
Date: Fri, 28 Sep 2012 12:45:31 +0300
Local: Fri, Sep 28 2012 5:45 am
Subject: Re: [Py4A] Re: Executing my own Python scripts in Android using Eclipse
Hi,
In case1, where the file will be stored? How will I be able to access the
Thank you!
On Thu, Sep 27, 2012 at 2:29 PM, Anthony Prieur <anthony.pri...@gmail.com>wrote:
> f = open("myfile", "wb")
> You can use also pickle module to dump more complex data structure:
> 2) You can dump the result in a database:
> 3) you can post the result to the SL4A server, using you own facade to
> I would use 3)
> On Thu, Sep 27, 2012 at 1:12 PM, Archana <ramalingam.arch...@gmail.com>
> > import android
> > droid = android.Android()
> > score1 = 10
> > score2 = 20
> > average = (score1 + score2)/2
> > droid.makeToast('Result is: ' +str(average))
> > Can I get the value of average and store it in a file(in internal
> > On Thursday, September 27, 2012 12:29:55 PM UTC+3, Archana wrote:
> >> Hi Anthony,
> >> Can I write the output of my script to a new file(in phone's internal
> >> Thank you!
> >> On Wednesday, September 26, 2012 3:33:59 PM UTC+3, Archana wrote:
> >>> Ya am able to see the print statements. Thanks for the clarification.
> >>> On Wed, Sep 26, 2012 at 3:13 PM, Anthony Prieur
> >>>> ScriptLauncher.launchScript last arguments is a callback called when
> >>>> ScriptLauncher.launchScript(script, mInterpreterConfiguration,
> >>>> So do whatever you need in run(), add some print in the Java code to
> >>>> On Wed, Sep 26, 2012 at 1:58 PM, Archana r
> >>>> > On Wed, Sep 26, 2012 at 2:53 PM, Anthony Prieur
> >>>> >> Add some printf and check the exec path.
> >>>> >> On Wed, Sep 26, 2012 at 1:51 PM, Archana r
> >>>> >> > 09-26 09:41:11.881: D/dalvikvm(6427): mprotect(RO) failed (13),
> >>>> >> > 09-26 09:41:11.891: D/dalvikvm(6427): mprotect(RO) failed (13),
> >>>> >> > 09-26 09:41:11.891: D/dalvikvm(6427): mprotect(RO) failed (13),
> >>>> >> > 09-26 09:41:11.891: D/dalvikvm(6427): mprotect(RO) failed (13),
> >>>> >> > 09-26 09:41:11.901: D/dalvikvm(6427): mprotect(RO) failed (13),
> >>>> >> > 09-26 09:41:11.901: D/dalvikvm(6427): mprotect(RO) failed (13),
> >>>> >> > 09-26 09:41:11.911: D/dalvikvm(6427): mprotect(RO) failed (13),
> >>>> >> > 09-26 09:41:12.071: D/dalvikvm(6427): mprotect(RO) failed (13),
> >>>> >> > 09-26 09:41:12.461: D/dalvikvm(6427): No JNI_OnLoad found in
> >>>> >> > 09-26 09:41:14.111:
> >>>> >> > 09-26 09:41:14.571: D/dalvikvm(6411): GC_CONCURRENT freed 509K,
> >>>> >> > 09-26 09:41:15.011: D/dalvikvm(6411): GC_CONCURRENT freed 478K,
> >>>> >> > 09-26 09:41:15.161: D/dalvikvm(6411): GC_FOR_MALLOC freed 189K,
> >>>> >> > 09-26 09:41:15.161: I/dalvikvm-heap(6411): Grow heap (frag case)
> >>>> >> > 09-26 09:41:15.251: D/dalvikvm(6411): GC_FOR_MALLOC freed 4K, 55%
> >>>> >> > 09-26 09:41:15.251: V/sl4a.JsonRpcServer:74(6411): Received:
> {"id":1,"method":"_authenticate","params":["c7b9507b-6249-4ea9-9776-87fd801 c9932"]}
> >>>> >> > 09-26 09:41:15.281: V/sl4a.JsonRpcServer:117(6411): Sent:
> >>>> >> > 09-26 09:41:15.301: V/sl4a.JsonRpcServer:74(6411): Received:
> >>>> >> > 09-26 09:41:15.351: V/sl4a.JsonRpcServer:117(6411): Sent:
> >>>> >> > 09-26 09:41:15.401: V/sl4a.JsonRpcServer:74(6411): Received:
> >>>> >> > 09-26 09:41:15.451: V/sl4a.JsonRpcServer:117(6411): Sent:
> >>>> >> > 09-26 09:41:15.561: D/dalvikvm(6427): GC_EXPLICIT freed 707K, 55%
> >>>> >> > 09-26 09:41:15.611: D/dalvikvm(6427): GC_CONCURRENT freed 15K,
> >>>> >> > 09-26 09:41:15.811:
> >>>> >> > 09-26 09:41:15.822: V/sl4a.Process$1:135(6411): Process 6427
> >>>> >> > Thank you!!
> >>>> >> > On Wed, Sep 26, 2012 at 2:46 PM, Anthony Prieur
> >>>> >> >> When your script ends:
> >>>> >> >> @Override
> >>>> >> >> Is executed, see line 195 of
> https://code.google.com/p/android-python27/source/browse/apk/src/com/...
> >>>> >> >> On Wed, Sep 26, 2012 at 12:36 PM, Archu
> >>>> >> >> > I am parsing a JSON(for my Python scripts) and able to see the
> >>>> >> >> > Regards,
> >>>> >> >> > On Tuesday, September 25, 2012 3:59:42 PM UTC+3, anthony
> >>>> >> >> >> Alternatively you can just put your scripts in a .zip, put
> https://code.google.com/p/android-python27/source/browse/apk/src/com/...
> >>>> >> >> >> "Run as -> Android Application", and you're done.
> >>>> >> >> >> On Tue, Sep 25, 2012 at 2:49 PM, Archu <
> >>>> >> >> >> > On Tuesday, September 25, 2012 4:56:59 AM UTC+3, Prat
> >>>> >> >> >> >> Hi Archu,
> >>>> >> >> >> >> I am working on a similar issue. Did you have any luck
> >>>> >> >> >> >> Regards,
> >>>> >> >> >> >> Prat
> >>>> >> >> >> >> On Wednesday, September 12, 2012 6:01:55 AM UTC-5, Archu
> >>>> >> >> >> >>> Hi, I m new to Android. I used the link
> http://jokar-johnk.blogspot.fi/2011/02/how-to-make-android-app-with-s...
> >>>> >> > --
> >>>> > --
> >>> --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||