Android :: Software Keyboard Shown?
Jan 27, 2010I need to do a very simple thing - find out if the software keyboard is shown. Is this possible in Android?
View 2 RepliesI need to do a very simple thing - find out if the software keyboard is shown. Is this possible in Android?
View 2 RepliesI have a few elements in a RelativeView with the align bottom attribute set, when the soft keyboard comes up the elements are hidden by the soft keyboard. I would like them to move up so that if there is enough screen space they are shown above the keyboard, or to make the section above the keyboard scrollable so the user can still see the elements.
View 1 Replies View RelatedI have an application that renders content into a SurfaceView. When the longPress event is received the application requests that the soft keyboard be displayed so the user can interact with what is being displayed on the SurfaceView. The problem that I have is that the size of the SurfaceView is not changed when the soft keyboard is displayed. I have read the article titled: "Updating applications for on-screen input methods" and I've modified my application manifest so that the following is specified for the activity in question:
<activity android:name="AndroidSurfaceViewActivity" android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="adjustResize"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity>
So you can see that I've specified the "android:windowSoftInputMode" tag to be resize........................
I have a simple user interface: an EditText should be located below a SurfaceView. I use a RelativeLayout to arrange these two views. Now, when I tap on the EditText to open the virtual keyboard the SurfaceView slides up but the EditText is hidden and does not show the typed string. To reproduce, use the following layout XML code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayout01"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<SurfaceView...............................
Is it possible to catch the event that Soft Keyboard was shown or hidden for EditText?
View 2 Replies View RelatedFor those of you that are familiar with better keyboard. I was wondering about an easy way to switch from the t9 keyboard to the regular qwerty keyboard. I was under the impression that swiping left would toggle between the 2 but all that does is bring me to the numbers and symbols keyboard. I've been changing back and forth to the android keyboard because its faster than going into the better keyboard settings.
View 13 Replies View RelatedI tried it and it works so far.
Dev = ne0fhyk from XDA.
From the XDA forum: Link to app page = [APP][ROOT/Keyboard] Keyboard Manager - Dual keyboard: Portrait/landscape switch - xda-developers
Verbage:
Keyboard Manager allows you to customize what keyboard (input method) appear on input based on your phone orientation.
It displays the keyboards you have enabled on your android device, and let you select one per orientation (landscape/portrait).
As your phone switch orientation, the app automatically switch the keyboard.
Requirements:
- Rooted android device (app was tested on Samsung captivate 2.1)
- Root Explorer app, or similar app that allows you to edit the permissions of a file.
To install:
1- Download the app (KeyboardManager.apk) on your device sdcard.
2- Using Root Explorer, move the apk file to /system/app
3- Using Root Explorer, edit the file permissions like below:
-- User: 'Read/Write' checked
--Group: 'Read' checked
--Others: 'Read' checked
4- Exit Root Explorer
The app should be visible in your launcher as 'Keyboard Manager'
Update:
- Added option to disable notification icon
-' start on boot' feature is disabled because it's not yet complete and tested... Sorry for the confusion
Bugs:
-On certain applications (i.e: Messaging on Samsung Captivate), the input window occasionally freeze on orientation switch. Exiting the app, and resuming should fix it.
The app is still in development.
For any Android project that I create using Eclipse, I cannot see the preview of the XML layout that I define. It gives a message saying "Eclipse is loading framework information and Layout library from the SDK folder. XXX.xml will refresh automatically once the process is finished."
View 2 Replies View RelatedI followed the instructions from the google hellomapview tutorial. I get a working mapview etc. But the two items that are added to the map are not shown. It seems they are there somewhere because tapping at the specified location shows the message that was added to the items.
Here is my source code. It should be very close to the google tutorial source code.
CODE:.............
1/I don't want to notify user if this one is already running my app in foreground,is it possible before create nofification to check if my app is not in front? 2/if app is in background, is it possible to bring last state in front? I know that Os can destroy some Activity, but is it possible to restore last state, don't start a new Intent? because if i start a new Intent and i push back, old Intent appear it's not very beautiful to have 2 identical intent launch...............
View 2 Replies View RelatedI published several free and paid app in the Market. I recently get several complains from customers about not finding my app in the 2.1 Market. Even if they have bought them before, they can't find it in the market or their download list after updating to 2.1.
View 3 Replies View RelatedHow can i get all the system notifications that are shown now?i want to write a program that can intercept the notifications that other apps notified.
View 2 Replies View RelatedWe have uploaded a new version of our app where we added the following to the manifest: <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="true" /> However, we are receiving complaints that users cannot find the app on the market using their HTC Tattoo and HTC Dragon phones. Any ideas what we are doing wrong, and is there a way for the developers to test if the app is visible on the market?
View 1 Replies View RelatedI want to check if the vertical scrollbar is shown or not. I read the document and could not figure it out.
View 2 Replies View RelatedIs there any widget to quickly toggle on/off sending the own number when calling somebody?
View 6 Replies View RelatedWhen i go to my security on Facebook and check the current sessions, sometimes it shows a device called safari on Android 4. Could this possibly be my nexus 7 tablet? But that usually is called Android for Android 4 as the device. Is there an impostor?
View 2 Replies View RelatedIf the BACK button is pressed when the soft keyboard is being displayed, no Back keycode event is generated (when it's not shown, and Back is pressed, then my View's onKeyDown()/onKeyUp() methods get called back).
Is this expected behaviour? I'm trying to catch when the IME is hidden upon BACK being pressed. I'm currently working around this in the endBatchEdit() method (I'm implementing BaseInputConnection).
The application I have uploaded into my cellular device is shown without the pictures I have insert to it. While the APK runs without problems on emulator when installed on Motorola milestone picture and icon doesn't shown as they were on emulator.
Steps I have done in order to install:
- I have inserted the xxx.apk file into the device via usb
- I downloaded an apps installer via the Market
- I opened the app using the installer and instead of picture an white background appeared
when I opened the xxx.apk file using file system I found the pictures.
Note: even an application icon weren't appearing. Apparently the res library having problem to be bined to application.
- I might need to add something to my appliction manifest?
- I might need to change something on my device ? (I already made a change and enabled user's not Market application).
I also tried an example as shown in hello android book the same example worked perfectly on the emulator where on my android device (Motorola milestone) the picture and icon weren't shown. Please tell me what I might be doing wrong guys I need to apply my project back at uni (I was the only one in uni who did it on android and in my country most of pep don't even know what android is so getting help outside of forum's like this is not an option).
I've seen this posted before however I'd really like to revisit it. In dealing with a small res device I would like to hide the status bar, my current solution has been to make it transparent and 'make a mess' of the framework and xml so that certain icons are no longer shown, for example the battery icon only shows a png when it's low, the ticker font is transparent etc. I'd much rather do this the proper way, via the source in android 2.1 So who has ideas for; Making the status bar hide when the launcher is open? not having the notification ticker at all? Disabling the status bar completely?
View 2 Replies View RelatedIt is perfectly legal for a URL to contain an embedded space in certain situations, such as in this example:
http://maps.google.com/maps?q=37.265632,+-122.2468(10:33 PM)&iwloc=A&hl=en.
But when this URL is pasted into the body of an email from Android code, it breaks at the space, rendering it useless as a clickable link. Is this a bug or a feature?
I feel silly asking this but can't figure it out. I use my gmail account specifically to get messages from a google groups boating forum. I have a work account w outlook and I use k-9 on my phone for that. I know that google doesn't have folders, but labels. I created a label 'xyz' for all email coming from that google group. My question is, how do I not have all these items show in my inbox?
In outlook, I can set up a rule that all email coming from abc@xyz.com goes into the xyz folder, and doesn't clutter my inbox. How do I do this in gmail. I have all my email messages showing that they belong to xyz label, so my rule is working, but I want them not showing in my inbox.
I'm playing some MediaPlayer instances at the same time (4 or 5) but sometimes when I try to start a new media player it doesn't work and an error is shown on the log:
E/AudioFlinger( 1073): no more track names availlable E/AudioTrack( 1073): AudioFlinger could not create track, status: -12 E/AudioSink( 1073): Unable to create audio track E/VorbisPlayer( 1073): mAudioSink open failed
It also happens when there're only 3 or 2 MediaPlayer playing at the same time. What does it mean this error? How can I workaround with it? Actually checking the isPlaying() after the start() call does not seem very helpful as every call returns true. I've to say that every MediaPlayer is created once via MediaPlayer.create.
Has anyone seen a a onItemSelected not being called when using a spinner inside a listviewActivity. I have the code below Inside a listViewActivity. The spinner is shown on screen by pressing a button (not the spinner) which in turn calls performClick() on the spinner. When I select an item from the spinner the onItemSelected function is not called. Does anyone know why this might be? Code...
View 5 Replies View RelatedIn my app i am using edit text. i am specifying hint as well as aligning the text of the edit text using the gravity tag. if i align the text then hint is not shown but if i remove the gravity tag for aligning text then it shows.
please help as to how i can align text as well as show hint..
Anyone knows how to build errors like that shown in Androffice screenshots on AppBrain (http://www.appbrain.com/app/android.androffice)?
I think that I saw errors like that before. Is that built in Android SDK?
I have a problem when trying to see use the Android for development on Ubuntu. The device is shown as offline. Although it detects the device.
when I type % adb devices List of devices attached HT845GZ50600 offline
I am using: Ubuntu 9.04 (Jaunty)
Few things I tried:
1. I have changed the 50-android.rules file and reloaded the udev. [ as suggested by docs] 2. 51-android.rules ( if there was another 50 then this would have worked) and it worked for some users [ diff thread in the forum] .
2. I also killed adb server and restarted it.
3. It works on Windows, but I want to develop on Ubuntu ( and curious why it doesnt work).
As you can see in this screenshoot ListView doesn't show all item separator, seems that the problem is setting textSize for textView, if i remove textSize all work fine.
View 2 Replies View RelatedHow can I know which childview is shown on the current device screen, in a scrollview?
I want to make an infinite Ruler App, so I need to dynamically add and remove view when the view is flipping, but how and where can I find out which childview is shown on the current device screen, so I can add or remove the correct view when I get that childview changed notify?
Or, can anyone who can give me some other idea to realize this function?
I've just changed screen language on by G1. There was no support/bad support for typing polish letters on softkeyboard so I modified LatinIME by adding strings.xml and kbd_qwerty.xml for my lanuage. In android is also support for typing national letters using hardkeyboard. After pressing the key for about second small dialog with available alternative letters pop up. How can i change list of letters shown in this dialog?
View 2 Replies View RelatedI'm totally new to this, been tinkering around for a week.
Came up with a simple image viewer app for 2 images.
Feature:
Left and right swipes will switch the images. Dead simple.
What i'd like to do:
Have up to 100 images.
note:
All my images are in my res/drawable folder.
They're named image1.png to image100.png
I obviously don't want to do:
ImageView i = new ImageView(this);
i.setImageResource(R.drawable.image1);
viewFlipper.addView(i);
ImageView i2 = new ImageView(this);
i2.setImageResource(R.drawable.image2);
viewFlipper.addView(i2);
ImageView i3 = new ImageView(this);
i3.setImageResource(R.drawable.image3);
viewFlipper.addView(i3);
all the way to i100. how do I make this into a loop, which is flexible and reads everything from the drawable folder ( and not be limited to 100 images)?
source: Code...