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 < Getting the logs from target application >

Received: by 10.224.33.76 with SMTP id g12mr8639893qad.21.1311147840198;
        Wed, 20 Jul 2011 00:44:00 -0700 (PDT)
X-BeenThere: robotium-developers@googlegroups.com
Received: by 10.224.174.3 with SMTP id r3ls36171qaz.1.gmail; Wed, 20 Jul 2011
 00:43:59 -0700 (PDT)
Received: by 10.224.194.5 with SMTP id dw5mr8667174qab.5.1311147839435;
        Wed, 20 Jul 2011 00:43:59 -0700 (PDT)
Received: by 10.224.176.139 with SMTP id be11msqab;
        Tue, 19 Jul 2011 22:53:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.117.68 with SMTP id p4mr1182223vcq.10.1311141238744; Tue,
 19 Jul 2011 22:53:58 -0700 (PDT)
Received: by v12g2000vby.googlegroups.com with HTTP; Tue, 19 Jul 2011 22:53:58
 -0700 (PDT)
Date: Tue, 19 Jul 2011 22:53:58 -0700 (PDT)
In-Reply-To: <8a78a8bb-ee11-4116-8925-b4f93e1da454@a2g2000prf.googlegroups.com>
References: <7b3718af-1892-4dd5-b630-ba1bd81896f7@t38g2000prj.googlegroups.com>
 <4ae2d59a-d871-44f6-b72c-16caadb935e5@h12g2000vbx.googlegroups.com> <8a78a8bb-ee11-4116-8925-b4f93e1da454@a2g2000prf.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML,
 like Gecko) Ubuntu/11.04 Chromium/12.0.742.112 Chrome/12.0.742.112 Safari/534.30,gzip(gfe)
Message-ID: <d3e210aa-60b6-44bc-9832-5ebb2c895221@v12g2000vby.googlegroups.com>
Subject: Re: < Getting the logs from target application >
From: marekdef <marek...@gmail.com>
To: Robotium Developers <robotium-developers@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

What is in the intent ?

Did you specified intent filter in your service ?
Is it in the manifest of your service ?

On 19 Lip, 00:38, garry <grv...@gmail.com> wrote:
> I had same problem. I wrote the service but It never binds, following
> lines always give returns false:
>
> boolean ret =3D getInstrumentation().getContext().bindService(intent,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 mServiceConnection, Context.BIND_AUT=
O_CREATE);
>
> Am I doing something wrong to bind the service.
>
> On Jul 12, 12:59=C2=A0pm, marekdef <marek...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I think that test takes permissionsfrom target app.
> > The only way of saving logs is to create a service that has the
> > permi=C5=9Bions and bind to it from test.
> > On Jul 12, 8:39=C2=A0pm, "Dev.SachiAndroid" <sachid...@gmail.com> wrote=
:
>
> > > Hi Everybody [Robotium Developer]
>
> > > i want to get the logs from the target application and save it to the
> > > storage system by including =C2=A0following permission in my robotium=
 test
> > > application's manifest:
>
> > > <uses-permission android:name=3D"android.permission.READ_LOGS"" />
> > > <uses-permission
> > > android:name=3D"android.permission.WRITE_EXTERNAL_STORAGE" />
>
> > > I only have apk of the target application (source code not
> > > accessible).
> > > I tried to run robotium test application with above permissions but
> > > those doesn't work. How to achieve it?=C2=A0
>
> > > Thanks,