Is there any way to put an EditText/input field into a homescreen widget?

I want my user to input something on the homescreen, but every time I add an Edittext to the widget it breaks. I did a little google searching to find that they apparently are not supported in widgets. There is a Google Search widget with an input field on every android phone though, so I am wondering if there is any way to have one in my widget.

Thanks in advance

  • Why to use Handlers while runOnUiThread does the same?
  • VideoView black flash before and after playing
  • how to disable an item in my ListView
  • Set OnClickListener off and then on
  • Add pre-built .so files in project using Android Gradle plugin 0.7.3
  • Retrolambda: Lint crashes when using lambda expressions with retrolambda
  • EDIT: I noticed that the Google search bar doesn’t actually have an input, instead it just opens an activity on touch. But there are still other apps like FriendStream which have input parts of their widgets.

    Related posts:

    Remove all table rows from SQLite database table
    Why doesn't Google use Golang or python as the language for android?
    Cache.Entry not getting json data
    how to indentify finger is on the camera lens or not in android?
    how we can add menu item dynamically
    App UI operations (setting alpha, setting margins, etc.) very slow on 4.4.4 compared to 4.0.3
  • How to deal with missing src/test/java source folder in Android/Maven project?
  • View.OnClickListener, method or class?
  • Can I set an attached device as default launch target?
  • How to avoid “Activity not started, its current task has been brought to the front ” warning?
  • How to clear focus of all selectable elements in a View?
  • Android fragment - findViewById returns null
  • 3 Solutions collect form web for “Is there any way to put an EditText/input field into a homescreen widget?”

    FriendStream can do it because it uses the modified Sense homescreens. It also enables scrolling that is only possible on “stock” Android since 3.0 (Honeycomb) and above.

    To resume:

    • Sense: Enables since 1.5 at least (and i think before) input and scroll on any Android version homescreens

    • Android 3.0: Started supporting some of the Sense features, for example scroll on home screen but still not input

    So, you can probably add input via edittext on homescrens (or somethink like it) but ONLY on HTC Sense phones.

    I don’t think that’s a good ideia though, but that’s already your choice 🙂

    You cannot use EditText into the Homescreen widget. The Google search widget is merely a drawable (selector drawable – pressed, focused and normal state) which launches an Activity.

    when tap on homescreen widget start transparent activity with EditText

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.