Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8656879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:23:16+00:00 2026-06-12T15:23:16+00:00

I have written a script in robotium which works just fine, but our application

  • 0

I have written a script in robotium which works just fine, but our application is designed in such a way that it has to interact with the Native android application which cannot be resigned. I have to click a button on the native app which cant be done through robotium. So i wanted to know if i can add a command of monkey runner in my script to click on the app.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:23:18+00:00Added an answer on June 12, 2026 at 3:23 pm
    solo.sendKey(20); // used for move to next object on screen //
    

    Execute above line and stop when you get focus on your desired button

    Then execute bellow line, to click on button

    solo.sendKey(66); // Click On Focused Button //
    

    For example you have 3 Objects On Screen:

    [1] username [ text box ]

    [2] password [ text box ]

    [3] Submit [ Button ]

    If you want to Click on ” Submit ” button using “robotium” then

    solo.sendKey(20);// focus on username textbox
    solo.sendKey(20);// focus on password textbox
    solo.sendKey(20);// focus on Submit button
    solo.sendKey(66);// Click On Submit Button
    

    generally we send keyevents from munkey code, so i suggest you above code.

    Note:

    KEYCODE_DPAD_DOWN [ Constant Value: 20 (0x00000014) ]

    KEYCODE_ENTER [ Constant Value: 66 (0x00000042) ]

    Pasted from http://developer.android.com/reference/android/view/KeyEvent.html

    I tested this on my automation application.

    I hope this will help you, Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a script which works, but I'm guessing isn't the most efficient.
I have written following script in python which works fine: from sys import argv
I have written a script image.php that is quite long, but I've just copied
i have written a script that prints a XML file to the screen but
I have written a script for file download for IE. It works fine if
I have written a script that saves the output in a Perl script, but
I have written a script that gets data from solr for which date is
I have written a script that fires a jQuery POST to retrieve data from
I'm using emacs and I have written a script which uses current-buffer. However the
So I have a strange question. I have written a script that re-formats data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.