http://www.perlmonks.org?node_id=974257

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?????

Replies are listed 'Best First'.
Re: testing android application using perl
by marto (Cardinal) 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.

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.