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

  • SEARCH
  • Home
  • 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 9141191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:36:47+00:00 2026-06-17T09:36:47+00:00

How open (switch, set) softkeyboard from my service? My application is not consist any

  • 0

How open (switch, set) softkeyboard from my service?

My application is not consist any activity. But i try open softkeyboard on trigger in my service, when alient application is onscreen.
I find in InputMethodManager‘s method setInputMethod. Second argument is id of keyboard. I know it. But first argument is IBinder. What is IBinder argument in my application?

Add detail:

My application consist of Service and InputMethodService.

In Service – Analyzing starting application in system. In InputMethodService – my softkeyboard (IME). If in my Service i determine what is start right application (I dont own this application), I need to switch current softkeyboard to my InputMethodService’s IME. Only switch, but not open keyboard. And when user tap on editabled view in client application, system open my soft keyboard.

  • 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-17T09:36:47+00:00Added an answer on June 17, 2026 at 9:36 am

    My solution code in Service:

        ((InputMethodManager) contextService.getSystemService( Context.INPUT_METHOD_SERVICE)).setInputMethod( null, myInputMethodId);
        ((InputMethodManager) contextService.getSystemService( Context.INPUT_METHOD_SERVICE)).toggleSoftInputFromWindow( null, 1, 0);
    

    p.s. This work only if my application is a system (null in first argument in setInputMethod available only when my application is system).
    I programmatically get system privilegies for my app with mv /data/app/myapp.apk /system/app/myapp.apk (basis on https://stackoverflow.com/a/14257161/1665964).

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

Sidebar

Related Questions

I open my sq3d fine, but when I try to do a SELECT on
In a MVVM WPF application. How do you set a second windows parent from
I want to analyze networks traffic but not by connecting it Just switch on
In Ubuntu 10.04 (as a Virtual Machine), I open gVim from command line but
Basically, I am trying to use data from one model to trigger a switch
here is my website: http://kidscare.edu.vn When open it in IE9, the homepage switch to
window.open() why window.open always pop up with IE , I set firefox is the
I am writing a wxPython application that remains open after closing all of its
I recently switch from windows 7. I am a (very) debutant in applescript. To
i have created a button and set onClicklistener on it as well but i

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.