Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

testing android application using perl

by Anonymous Monk
on Jun 04, 2012 at 10:13 UTC ( #974257=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi friends i am new to android can u please help me how can we check the status of mobile (Airplain mode on or off ,Wifi on or off) .... any modules in perl which help us to check these settings?????

Comment on testing android application using perl
Re: testing android application using perl
by Anonymous Monk on Jun 04, 2012 at 10:16 UTC

    What I know of android is that you can't run perl on it, so there is no checking to be done

      To run perl on android check out SL4A, either in the Android Market (Google Play) or at http://code.google.com/p/android-scripting

      The SL4A perl distribution has a limited number of XS perl modules, but there is an included Android.pm module to do many thins in perl that you can do with a java .apk written using the Android SDK.

Re: testing android application using perl
by marto (Chancellor) on Jun 04, 2012 at 10:32 UTC
      Thanks for the links ... if possible pls do suggest me how can i proceed with writing perl scripts which uses adb commands ? is that possible or any module which helps to write few test scripts ?

        You can issue adb commands using system, and you can also connect to the qemu console/Android emulator using TCP. I haven't used either method, but I seem to remember that you can also send inputs using the TCP console to simulate user input.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://974257]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2014-07-10 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (207 votes), past polls