Quantcast
Channel: Adobe Community : Popular Discussions - AIR Development
Viewing all articles
Browse latest Browse all 24121

Hide/dismiss Android soft keyboard?

$
0
0

By adding this code to an AIR app's xml you can set it as the "home" or launcher:


<activityandroid:name=".AppEntry">
  
<intent-filter>
  
<actionandroid:name="android.intent.action.MAIN"/>
  
<categoryandroid:name="android.intent.category.HOME"/>
  
<categoryandroid:name="android.intent.category.DEFAULT"/>
  
</intent-filter>
</activity>

 

Unfortunately, this causes the soft keyboard to display on launch, and doesn't go away until the user interacts with the app. Not only does this look strange and unprofessional, but for an unattended application (like digital signage) it's a deal breaker.

I've Googled until my fingers hurt, but I haven't found a solution. Help!

PS. I should note, I tried this, with no luck: stage.focus = null;@@


Viewing all articles
Browse latest Browse all 24121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>