Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Executing my own Python scripts in Android using Eclipse

Received: by 10.42.81.74 with SMTP id y10mr146617ick.8.1348662839086;
        Wed, 26 Sep 2012 05:33:59 -0700 (PDT)
X-BeenThere: python-for-android@googlegroups.com
Received: by 10.50.208.37 with SMTP id mb5ls826947igc.2.gmail; Wed, 26 Sep
 2012 05:33:58 -0700 (PDT)
Received: by 10.50.42.225 with SMTP id r1mr6368071igl.1.1348662838103;
        Wed, 26 Sep 2012 05:33:58 -0700 (PDT)
Received: by 10.50.42.225 with SMTP id r1mr6368070igl.1.1348662838083;
        Wed, 26 Sep 2012 05:33:58 -0700 (PDT)
Return-Path: <ramalingam.arch...@gmail.com>
Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174])
        by gmr-mx.google.com with ESMTPS id ba5si1701581igb.3.2012.09.26.05.33.58
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 26 Sep 2012 05:33:58 -0700 (PDT)
Received-SPF: pass (google.com: domain of ramalingam.arch...@gmail.com designates 209.85.223.174 as permitted sender) client-ip=209.85.223.174;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ramalingam.arch...@gmail.com designates 209.85.223.174 as permitted sender) smtp.mail=ramalingam.arch...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-ie0-f174.google.com with SMTP id k13so1199882iea.19
        for <python-for-android@googlegroups.com>; Wed, 26 Sep 2012 05:33:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=zwXavD+e6R1TIzPPpslwYjYpQFMwE3xIYi/tm1kN2LU=;
        b=UZH1hbFrQOuUyxoBYErLODtWYiB+EaDFystOQmeBTXh5hfj+Z5oGo0ee7ijslBzzkX
         Os5d2voCjNwtmliYZ9lrELCjKse+cbV2P5j60PjBmFiN7rDaYBuTyVfPR8pyLrtZ2gDJ
         dHAHRIIII3EBkToIykvrYkrAY5kcTYF3iQv84jL6gvErwUinWsddmn1SIkme2wW9n2wM
         MTdBEZMfJOv4oP6Po+w2vf72I4H2IKNmU4izhYSNUdqKdjRKM5ZHScIme1r40tF21qKH
         ciUpcJ1h4Y0/KTApsiupx+YnSvWyFnxPOS1ATKHz4PeFn1xARxENdUDGF0u+WRdDqaaJ
         kDwQ==
MIME-Version: 1.0
Received: by 10.42.43.1 with SMTP id v1mr273609ice.23.1348662837754; Wed, 26
 Sep 2012 05:33:57 -0700 (PDT)
Received: by 10.42.22.203 with HTTP; Wed, 26 Sep 2012 05:33:57 -0700 (PDT)
In-Reply-To: <CAHEBZ9FWHYJqbxVOgQ2DxydYyMf00YNaxLtZQfbSmHoQOHN...@mail.gmail.com>
References: <01b2f854-2b62-4172-84a5-551ba7f9ddff@googlegroups.com>
	<f15446cc-c76c-4279-8e91-7f4ca62552ac@googlegroups.com>
	<865df0ad-7809-4a2b-80d0-5cf58651bd7f@googlegroups.com>
	<CAHEBZ9H7eAn3QDckjbLtF40=dPS-y=dpoESGuL8K-eRX-kL...@mail.gmail.com>
	<b3e5b62d-71b7-46ed-bf28-a05f1fc9d764@googlegroups.com>
	<CAHEBZ9H9ajqiU10yUnOQxMwKTZThDQ76nN_rWv3+hCTh+8Z...@mail.gmail.com>
	<CAOUmUKX3V+75rn65ppeVEVEmNC8NUbpF_4hEccs+nZqV1MX...@mail.gmail.com>
	<CAHEBZ9Hk7b6G6sxMKRQP6f5vubQLTWKKe=nGDr_qWgbg5Ux...@mail.gmail.com>
	<CAOUmUKVWdt1WqDbDJ10pbwe51pQQcuqgeGhnmv9PKGc+Hgk...@mail.gmail.com>
	<CAHEBZ9FWHYJqbxVOgQ2DxydYyMf00YNaxLtZQfbSmHoQOHN...@mail.gmail.com>
Date: Wed, 26 Sep 2012 15:33:57 +0300
Message-ID: <CAOUmUKUGJJKczVqxhh_p2d4ouc0a-eGccrAJXchav0rBq57...@mail.gmail.com>
Subject: Re: [Py4A] Re: Executing my own Python scripts in Android using Eclipse
From: Archana r <ramalingam.arch...@gmail.com>
To: python-for-android@googlegroups.com
Content-Type: multipart/alternative; boundary=bcaec517cc1c5db9e304ca9a097a

--bcaec517cc1c5db9e304ca9a097a
Content-Type: text/plain; charset=ISO-8859-1

Ya am able to see the print statements. Thanks for the clarification.  I
want to post the updated JSON(after script execution) to a server. Now I m
calling ScriptActivity from my ownActivity using startActivityForResult().
Can I define post method in onActivityResult() in my own activity?

On Wed, Sep 26, 2012 at 3:13 PM, Anthony Prieur <anthony.pri...@gmail.com>wrote:

> ScriptLauncher.launchScript last arguments is a callback called when
> the script ended:
>
>         ScriptLauncher.launchScript(script, mInterpreterConfiguration,
>                 mProxy, new Runnable() {
>                     @Override
>                     public void run() {
>                         // here your script ended
>                     }
>                 });
>
> So do whatever you need in run(), add some print in the Java code to see
> better.
>
>
> On Wed, Sep 26, 2012 at 1:58 PM, Archana r <ramalingam.arch...@gmail.com>
> wrote:
> > Can u pls explain? I m not getting what you are saying
> >
> >
> > On Wed, Sep 26, 2012 at 2:53 PM, Anthony Prieur <
> anthony.pri...@gmail.com>
> > wrote:
> >>
> >> Add some printf and check the exec path.
> >>
> >>
> >> On Wed, Sep 26, 2012 at 1:51 PM, Archana r <
> ramalingam.arch...@gmail.com>
> >> wrote:
> >> > Hi,
> >> > Actually I want to know, after ScriptLauncher.launchScript(),
> where(from
> >> > which class) does the following get printed?
> >> >
> >> >
> >> > 09-26 09:41:11.881: D/dalvikvm(6427): mprotect(RO) failed (13), file
> >> > will
> >> > remain read-write
> >> >
> >> > 09-26 09:41:11.891: D/dalvikvm(6427): mprotect(RO) failed (13), file
> >> > will
> >> > remain read-write
> >> >
> >> > 09-26 09:41:11.891: D/dalvikvm(6427): mprotect(RO) failed (13), file
> >> > will
> >> > remain read-write
> >> >
> >> > 09-26 09:41:11.891: D/dalvikvm(6427): mprotect(RO) failed (13), file
> >> > will
> >> > remain read-write
> >> >
> >> > 09-26 09:41:11.901: D/dalvikvm(6427): mprotect(RO) failed (13), file
> >> > will
> >> > remain read-write
> >> >
> >> > 09-26 09:41:11.901: D/dalvikvm(6427): mprotect(RO) failed (13), file
> >> > will
> >> > remain read-write
> >> >
> >> > 09-26 09:41:11.911: D/dalvikvm(6427): mprotect(RO) failed (13), file
> >> > will
> >> > remain read-write
> >> >
> >> > 09-26 09:41:12.071: D/dalvikvm(6427): mprotect(RO) failed (13), file
> >> > will
> >> > remain read-write
> >> >
> >> > 09-26 09:41:12.461: D/dalvikvm(6427): No JNI_OnLoad found in
> >> > /system/lib/libandroid_runtime.so 0x0, skipping init
> >> >
> >> > 09-26 09:41:14.111: V/sl4a.SimpleServer$ConnectionThread:89(6411):
> >> > Server
> >> > thread 15 started.
> >> >
> >> > 09-26 09:41:14.571: D/dalvikvm(6411): GC_CONCURRENT freed 509K, 55%
> free
> >> > 2862K/6279K, external 410K/517K, paused 5ms+5ms
> >> >
> >> > 09-26 09:41:15.011: D/dalvikvm(6411): GC_CONCURRENT freed 478K, 54%
> free
> >> > 2893K/6279K, external 410K/517K, paused 5ms+6ms
> >> >
> >> > 09-26 09:41:15.161: D/dalvikvm(6411): GC_FOR_MALLOC freed 189K, 54%
> free
> >> > 2892K/6279K, external 410K/517K, paused 38ms
> >> >
> >> > 09-26 09:41:15.161: I/dalvikvm-heap(6411): Grow heap (frag case) to
> >> > 5.777MB
> >> > for 8208-byte allocation
> >> >
> >> > 09-26 09:41:15.251: D/dalvikvm(6411): GC_FOR_MALLOC freed 4K, 55% free
> >> > 2895K/6343K, external 410K/517K, paused 75ms
> >> >
> >> > 09-26 09:41:15.251: V/sl4a.JsonRpcServer:74(6411): Received:
> >> >
> >> >
> {"id":1,"method":"_authenticate","params":["c7b9507b-6249-4ea9-9776-87fd801c9932"]}
> >> >
> >> > 09-26 09:41:15.281: V/sl4a.JsonRpcServer:117(6411): Sent:
> >> > {"error":null,"id":1,"result":true}
> >> >
> >> > 09-26 09:41:15.301: V/sl4a.JsonRpcServer:74(6411): Received:
> >> > {"id":2,"method":"makeToast","params":["hello javascript15"]}
> >> >
> >> > 09-26 09:41:15.351: V/sl4a.JsonRpcServer:117(6411): Sent:
> >> > {"error":null,"id":2,"result":null}
> >> >
> >> > 09-26 09:41:15.401: V/sl4a.JsonRpcServer:74(6411): Received:
> >> > {"id":3,"method":"notify","params":["javaScript","Success"]}
> >> >
> >> > 09-26 09:41:15.451: V/sl4a.JsonRpcServer:117(6411): Sent:
> >> > {"error":null,"id":3,"result":null}
> >> >
> >> > 09-26 09:41:15.561: D/dalvikvm(6427): GC_EXPLICIT freed 707K, 55% free
> >> > 648K/1411K, external 0K/0K, paused 106ms
> >> >
> >> > 09-26 09:41:15.611: D/dalvikvm(6427): GC_CONCURRENT freed 15K, 56%
> free
> >> > 633K/1411K, external 0K/0K, paused 1ms+2ms
> >> >
> >> > 09-26 09:41:15.811: V/sl4a.SimpleServer$ConnectionThread:100(6411):
> >> > Server
> >> > thread 15 died.
> >> >
> >> > 09-26 09:41:15.822: V/sl4a.Process$1:135(6411): Process 6427 exited
> with
> >> > result code 0.
> >> >
> >> >
> >> >
> >> > Thank you!!
> >> >
> >> >
> >> >
> >> >
> >> > On Wed, Sep 26, 2012 at 2:46 PM, Anthony Prieur
> >> > <anthony.pri...@gmail.com>
> >> > wrote:
> >> >>
> >> >> When your script ends:
> >> >>
> >> >> @Override
> >> >>  public void run() {
> >> >>
> >> >> Is executed, see line 195 of
> >> >>
> >> >>
> >> >>
> https://code.google.com/p/android-python27/source/browse/apk/src/com/android/python27/ScriptService.java
> >> >>
> >> >>
> >> >> On Wed, Sep 26, 2012 at 12:36 PM, Archu <
> ramalingam.arch...@gmail.com>
> >> >> wrote:
> >> >> > Hi Anthony,
> >> >> >
> >> >> > I am parsing a JSON(for my Python scripts) and able to see the
> output
> >> >> > in
> >> >> > emulator. I want to modify the JSON fields and post it back to the
> >> >> > server. I
> >> >> > used startActivityForResult() while calling the ScriptActivity(so
> >> >> > that I
> >> >> > can
> >> >> > define HTTP Post method in onActivityResult()). But I want to know
> >> >> > when
> >> >> > my
> >> >> > service(Script Service) gets over.?  I can define my HTTP Post only
> >> >> > after
> >> >> > actual execution of my script Is there a means to do the same?
> >> >> >
> >> >> > Regards,
> >> >> > Archana
> >> >> >
> >> >> >
> >> >> > On Tuesday, September 25, 2012 3:59:42 PM UTC+3, anthony wrote:
> >> >> >>
> >> >> >> Alternatively you can just put your scripts in a .zip, put the
> .zip
> >> >> >> in
> >> >> >> res/raw folder, fix variable name:
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> https://code.google.com/p/android-python27/source/browse/apk/src/com/android/python27/config/GlobalConstants.java
> >> >> >>
> >> >> >> "Run as -> Android Application", and you're done.
> >> >> >>
> >> >> >>
> >> >> >> On Tue, Sep 25, 2012 at 2:49 PM, Archu <ramalinga...@gmail.com>
> >> >> >> wrote:
> >> >> >> > Yes i am now able to execute my own scripts. Just I am putting
> in
> >> >> >> > a
> >> >> >> > file
> >> >> >> > and
> >> >> >> > passing the File object to launchScript() method.
> >> >> >> >
> >> >> >> >
> >> >> >> > On Tuesday, September 25, 2012 4:56:59 AM UTC+3, Prat wrote:
> >> >> >> >>
> >> >> >> >> Hi Archu,
> >> >> >> >>
> >> >> >> >> I am working on a similar issue. Did you have any luck with
> >> >> >> >> python
> >> >> >> >> scripts
> >> >> >> >> in eclipse for android app?
> >> >> >> >>
> >> >> >> >> Regards,
> >> >> >> >>
> >> >> >> >> Prat
> >> >> >> >>
> >> >> >> >> On Wednesday, September 12, 2012 6:01:55 AM UTC-5, Archu wrote:
> >> >> >> >>>
> >> >> >> >>> Hi, I m new to Android. I used the link
> >> >> >> >>>
> >> >> >> >>>
> >> >> >> >>>
> >> >> >> >>>
> http://jokar-johnk.blogspot.fi/2011/02/how-to-make-android-app-with-sl4a.html
> >> >> >> >>> to execute Python script in Android. However, I need to run my
> >> >> >> >>> own
> >> >> >> >>> script(after parsing from a JSON file). In my case, I cannot
> >> >> >> >>> place
> >> >> >> >>> the
> >> >> >> >>> script in /res/raw folder. Please let me know the
> modifications
> >> >> >> >>> in
> >> >> >> >>> ScriptService.java. Any help will be appreciated. Thanks in
> >> >> >> >>> advance
> >> >> >> >>> !
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Regards,
> >> > Archana
> >
> >
> >
> >
> > --
> > Regards,
> > Archana
>



-- 
Regards,
Archana

--bcaec517cc1c5db9e304ca9a097a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Ya am able to see the print statements. Thanks for the clarification. =A0I =
want to post the updated JSON(after script execution) to a server.=A0Now I =
m calling ScriptActivity from my ownActivity using startActivityForResult()=
. Can I define post method in onActivityResult() in my own activity?<div>
<div><br><div class=3D"gmail_quote">On Wed, Sep 26, 2012 at 3:13 PM, Anthon=
y Prieur <span dir=3D"ltr">&lt;<a href=3D"mailto:anthony.pri...@gmail.com" =
target=3D"_blank">anthony.pri...@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">ScriptLauncher.launchScript last arguments i=
s a callback called when<br>
the script ended:<br>
<br>
=A0 =A0 =A0 =A0 ScriptLauncher.launchScript(script, mInterpreterConfigurati=
on,<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mProxy, new Runnable() {<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 @Override<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 public void run() {<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 // here your script ended<b=
r>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 });<br>
<br>
So do whatever you need in run(), add some print in the Java code to see be=
tter.<br>
<div><div><br>
<br>
On Wed, Sep 26, 2012 at 1:58 PM, Archana r &lt;<a href=3D"mailto:ramalingam=
.arch...@gmail.com" target=3D"_blank">ramalingam.arch...@gmail.com</a>&gt; =
wrote:<br>
&gt; Can u pls explain? I m not getting what you are saying<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Sep 26, 2012 at 2:53 PM, Anthony Prieur &lt;<a href=3D"mailto:=
anthony.pri...@gmail.com" target=3D"_blank">anthony.pri...@gmail.com</a>&gt=
;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Add some printf and check the exec path.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Sep 26, 2012 at 1:51 PM, Archana r &lt;<a href=3D"mailto:r=
amalingam.arch...@gmail.com" target=3D"_blank">ramalingam.arch...@gmail.com=
</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt; Actually I want to know, after ScriptLauncher.launchScript(),=
 where(from<br>
&gt;&gt; &gt; which class) does the following get printed?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:11.881: D/dalvikvm(6427): mprotect(RO) failed (13=
), file<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; remain read-write<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:11.891: D/dalvikvm(6427): mprotect(RO) failed (13=
), file<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; remain read-write<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:11.891: D/dalvikvm(6427): mprotect(RO) failed (13=
), file<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; remain read-write<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:11.891: D/dalvikvm(6427): mprotect(RO) failed (13=
), file<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; remain read-write<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:11.901: D/dalvikvm(6427): mprotect(RO) failed (13=
), file<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; remain read-write<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:11.901: D/dalvikvm(6427): mprotect(RO) failed (13=
), file<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; remain read-write<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:11.911: D/dalvikvm(6427): mprotect(RO) failed (13=
), file<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; remain read-write<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:12.071: D/dalvikvm(6427): mprotect(RO) failed (13=
), file<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; remain read-write<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:12.461: D/dalvikvm(6427): No JNI_OnLoad found in<=
br>
&gt;&gt; &gt; /system/lib/libandroid_runtime.so 0x0, skipping init<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:14.111: V/sl4a.SimpleServer$ConnectionThread:89(6=
411):<br>
&gt;&gt; &gt; Server<br>
&gt;&gt; &gt; thread 15 started.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:14.571: D/dalvikvm(6411): GC_CONCURRENT freed 509=
K, 55% free<br>
&gt;&gt; &gt; 2862K/6279K, external 410K/517K, paused 5ms+5ms<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.011: D/dalvikvm(6411): GC_CONCURRENT freed 478=
K, 54% free<br>
&gt;&gt; &gt; 2893K/6279K, external 410K/517K, paused 5ms+6ms<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.161: D/dalvikvm(6411): GC_FOR_MALLOC freed 189=
K, 54% free<br>
&gt;&gt; &gt; 2892K/6279K, external 410K/517K, paused 38ms<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.161: I/dalvikvm-heap(6411): Grow heap (frag ca=
se) to<br>
&gt;&gt; &gt; 5.777MB<br>
&gt;&gt; &gt; for 8208-byte allocation<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.251: D/dalvikvm(6411): GC_FOR_MALLOC freed 4K,=
 55% free<br>
&gt;&gt; &gt; 2895K/6343K, external 410K/517K, paused 75ms<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.251: V/sl4a.JsonRpcServer:74(6411): Received:<=
br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; {&quot;id&quot;:1,&quot;method&quot;:&quot;_authenticate&quot=
;,&quot;params&quot;:[&quot;c7b9507b-6249-4ea9-9776-87fd801c9932&quot;]}<br=
>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.281: V/sl4a.JsonRpcServer:117(6411): Sent:<br>
&gt;&gt; &gt; {&quot;error&quot;:null,&quot;id&quot;:1,&quot;result&quot;:t=
rue}<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.301: V/sl4a.JsonRpcServer:74(6411): Received:<=
br>
&gt;&gt; &gt; {&quot;id&quot;:2,&quot;method&quot;:&quot;makeToast&quot;,&q=
uot;params&quot;:[&quot;hello javascript15&quot;]}<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.351: V/sl4a.JsonRpcServer:117(6411): Sent:<br>
&gt;&gt; &gt; {&quot;error&quot;:null,&quot;id&quot;:2,&quot;result&quot;:n=
ull}<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.401: V/sl4a.JsonRpcServer:74(6411): Received:<=
br>
&gt;&gt; &gt; {&quot;id&quot;:3,&quot;method&quot;:&quot;notify&quot;,&quot=
;params&quot;:[&quot;javaScript&quot;,&quot;Success&quot;]}<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.451: V/sl4a.JsonRpcServer:117(6411): Sent:<br>
&gt;&gt; &gt; {&quot;error&quot;:null,&quot;id&quot;:3,&quot;result&quot;:n=
ull}<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.561: D/dalvikvm(6427): GC_EXPLICIT freed 707K,=
 55% free<br>
&gt;&gt; &gt; 648K/1411K, external 0K/0K, paused 106ms<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.611: D/dalvikvm(6427): GC_CONCURRENT freed 15K=
, 56% free<br>
&gt;&gt; &gt; 633K/1411K, external 0K/0K, paused 1ms+2ms<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.811: V/sl4a.SimpleServer$ConnectionThread:100(=
6411):<br>
&gt;&gt; &gt; Server<br>
&gt;&gt; &gt; thread 15 died.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 09-26 09:41:15.822: V/sl4a.Process$1:135(6411): Process 6427 =
exited with<br>
&gt;&gt; &gt; result code 0.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thank you!!<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Wed, Sep 26, 2012 at 2:46 PM, Anthony Prieur<br>
&gt;&gt; &gt; &lt;<a href=3D"mailto:anthony.pri...@gmail.com" target=3D"_bl=
ank">anthony.pri...@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; When your script ends:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; @Override<br>
&gt;&gt; &gt;&gt; =A0public void run() {<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Is executed, see line 195 of<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; <a href=3D"https://code.google.com/p/android-python27/sou=
rce/browse/apk/src/com/android/python27/ScriptService.java" target=3D"_blan=
k">https://code.google.com/p/android-python27/source/browse/apk/src/com/and=
roid/python27/ScriptService.java</a><br>


&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Wed, Sep 26, 2012 at 12:36 PM, Archu &lt;<a href=3D"ma=
ilto:ramalingam.arch...@gmail.com" target=3D"_blank">ramalingam.archana@gma=
il.com</a>&gt;<br>
&gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; Hi Anthony,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I am parsing a JSON(for my Python scripts) and able =
to see the output<br>
&gt;&gt; &gt;&gt; &gt; in<br>
&gt;&gt; &gt;&gt; &gt; emulator. I want to modify the JSON fields and post =
it back to the<br>
&gt;&gt; &gt;&gt; &gt; server. I<br>
&gt;&gt; &gt;&gt; &gt; used startActivityForResult() while calling the Scri=
ptActivity(so<br>
&gt;&gt; &gt;&gt; &gt; that I<br>
&gt;&gt; &gt;&gt; &gt; can<br>
&gt;&gt; &gt;&gt; &gt; define HTTP Post method in onActivityResult()). But =
I want to know<br>
&gt;&gt; &gt;&gt; &gt; when<br>
&gt;&gt; &gt;&gt; &gt; my<br>
&gt;&gt; &gt;&gt; &gt; service(Script Service) gets over.? =A0I can define =
my HTTP Post only<br>
&gt;&gt; &gt;&gt; &gt; after<br>
&gt;&gt; &gt;&gt; &gt; actual execution of my script Is there a means to do=
 the same?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt;&gt; &gt; Archana<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; On Tuesday, September 25, 2012 3:59:42 PM UTC+3, ant=
hony wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Alternatively you can just put your scripts in a=
 .zip, put the .zip<br>
&gt;&gt; &gt;&gt; &gt;&gt; in<br>
&gt;&gt; &gt;&gt; &gt;&gt; res/raw folder, fix variable name:<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href=3D"https://code.google.com/p/android-pyt=
hon27/source/browse/apk/src/com/android/python27/config/GlobalConstants.jav=
a" target=3D"_blank">https://code.google.com/p/android-python27/source/brow=
se/apk/src/com/android/python27/config/GlobalConstants.java</a><br>


&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &quot;Run as -&gt; Android Application&quot;, an=
d you&#39;re done.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; On Tue, Sep 25, 2012 at 2:49 PM, Archu &lt;<a hr=
ef=3D"mailto:ramalinga...@gmail.com" target=3D"_blank">ramalinga...@gmail.c=
om</a>&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; Yes i am now able to execute my own scripts=
. Just I am putting in<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; a<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; file<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; and<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; passing the File object to launchScript() m=
ethod.<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; On Tuesday, September 25, 2012 4:56:59 AM U=
TC+3, Prat wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt; Hi Archu,<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt; I am working on a similar issue. Did yo=
u have any luck with<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt; python<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt; scripts<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt; in eclipse for android app?<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt; Regards,<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt; Prat<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt; On Wednesday, September 12, 2012 6:01:5=
5 AM UTC-5, Archu wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; Hi, I m new to Android. I used the =
link<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; <a href=3D"http://jokar-johnk.blogs=
pot.fi/2011/02/how-to-make-android-app-with-sl4a.html" target=3D"_blank">ht=
tp://jokar-johnk.blogspot.fi/2011/02/how-to-make-android-app-with-sl4a.html=
</a><br>


&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; to execute Python script in Android=
. However, I need to run my<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; own<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; script(after parsing from a JSON fi=
le). In my case, I cannot<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; place<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; the<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; script in /res/raw folder. Please l=
et me know the modifications<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; in<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; ScriptService.java. Any help will b=
e appreciated. Thanks in<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; advance<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; !<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt; Archana<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards,<br>
&gt; Archana<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Regards,<br>Archana<br>
</div>
</div>

--bcaec517cc1c5db9e304ca9a097a--