EditView: Done button not working after text entered

by MH » Thu, 06 Aug 2009 08:16:09 GMT


Sponsored Links
 Hi Folks,

I have a EditView that takes input from user - but once I enter text
using the soft keypad, the "Done" button doesn't seem to be working. I
want it to take me back to my view and exit from the keypad entry
since I'm done entering the text.
Here is how my layout is defined - what am I missing?
Thanks in advance!
-MH

<AbsoluteLayout
android:id="@+id/widget1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android=" http://schemas.android.com/apk/res/android" ;
android:background="@android:color/black">

    <EditText android:id="@+id/search_str"
        android:maxLines="1"
        android:ems="25"
        android:scrollHorizontally="true"
        android:layout_width="440px"
        android:layout_height="70px"
        android:layout_x="20px"
        android:layout_y="100px"
        android:maxEms="25"/>

    <Button android:id="@+id/button_search"
        android:text="@string/button_search_str"
        android:layout_width="100px"
        android:layout_height="50px"
        android:layout_x="80px"
        android:layout_y="200px"/>

    <Button android:id="@+id/button_search_cancel"
        android:text="@string/button_search_cancel_str"
        android:layout_height="50px"
        android:layout_width="100px"
        android:layout_y="200px"
        android:layout_x="280px"/>

    <TextView android:id="@+id/search_window_prompt"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:text="@string/search_window_prompt_str"
        android:layout_y="50px"
        android:editable="false"
        android:layout_x="180px"/>

</AbsoluteLayout>


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Feature - What does everyone think of this!

Hi Xavier,

I have an idea for an Android feature, which should be very quick to
develop and implement.  I currently use an iPhone, and absolutely love
the Google App.  I thought it would be an amazing idea, to implement
the Voice search function (which by the way is very very fast
returning results, along with it's amazing accuracy) into the SMS
application.

This would give users the ability to speak a sentence; then have that
data sent to Google's Servers (or locally) to have it converted into
text; then having that text just insert into the SMS field.  This
would come into some amazing use especially because of it's accuracy
and recent texting while driving laws coming into effect.

Settings such as...
Auto sending after transcription
Bringing the phone to your ear to speak
Text-To-Speech for reading SMS' aloud.

I'd like to know what you think and if you happen to think this is
something that could 1) be easily implemented and 2) if it would be
taken into consideration for development as an enhancement request.  I
work in CM myself and I understand the process but I definitely
thought that this one simple feature alone would make users really
embrace Android.

I personally would leave my iPhone for Droid or an alternate Android
2.0 device.

Hi Xavier,

I know you get countless emails a day, so I hope this one attracts
your attention.  I will try to make it quick.
I have an idea for an Android feature, which should be very quick to
develop and implement.  I currently use an iPhone, and absolutely love
the Google App.  I thought it would be an amazing idea, to implement
the Voice search function (which by the way is very very fast
returning results, along with it's amazing accuracy) into the SMS
application.

This would give users the ability to speak a sentence; then have that
data sent to Google's Servers (or locally) to have it converted into
text; then having that text just insert into the SMS field.  This
would come into some amazing use especially because of it's accuracy
and recent texting while driving laws coming into effect.

Settings such as...
Auto sending after transcription
Bringing the phone to your ear to speak
Text-To-Speech for reading SMS' aloud.

I'd like to know what you think and if you happen to think this is
something that could 1) be easily implemented and 2) if it would be
taken into consideration for development as an enhancement request.  I
work in CM myself and I understand the process but I definitely
thought that this one simple feature alone would make users really
embrace Android.

I personally would leave my iPhone for Droid or an alternate Android
2.0 device.  Thanks for your time!

Steven Berry
410-505-8880 (Google Voice)
stevenberr...@gmail.com

-- 

2. NullPointerException android executable (Ubuntu)

I am attempting to run under an Ubuntu system on a virtual machine.
When I run the android executable, I can get the GUI but when I
connect and try to obtain a list of available packages, the connect
bar will complete but when I move the mouse it will crash.  The error
message is down a few lines.
I am working off of the executable compiled using the open source code
using the instructions found here
http://source.android.com/download
I would much appreciate any help.  Thanks.

Output + Error:

No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.
Error: null
java.lang.NullPointerException
        at com.android.sdklib.internal.repository.LocalSdkParser.scanTools
(LocalSdkParser.java:173)
        at com.android.sdklib.internal.repository.LocalSdkParser.parseSdk
(LocalSdkParser.java:88)
        at
com.android.sdkuilib.internal.repository.UpdaterData.getInstalledPackage
(UpdaterData.java:241)
        at
com.android.sdkuilib.internal.repository.RepoSourcesAdapter.filteredPackages
(RepoSourcesAdapter.java:278)
        at com.android.sdkuilib.internal.repository.RepoSourcesAdapter.access
$300(RepoSourcesAdapter.java:42)
        at com.android.sdkuilib.internal.repository.RepoSourcesAdapter
$TreeContentProvider.getRepoSourceChildren(RepoSourcesAdapter.java:
205)
        at com.android.sdkuilib.internal.repository.RepoSourcesAdapter
$TreeContentProvider.getChildren(RepoSourcesAdapter.java:172)
        at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren
(AbstractTreeViewer.java:1352)
        at org.eclipse.jface.viewers.TreeViewer.getRawChildren
(TreeViewer.java:385)
        at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren
(AbstractTreeViewer.java:636)
        at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren
(AbstractTreeViewer.java:602)
        at org.eclipse.jface.viewers.AbstractTreeViewer$1.run
(AbstractTreeViewer.java:799)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
        at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren
(AbstractTreeViewer.java:776)
        at org.eclipse.jface.viewers.TreeViewer.createChildren
(TreeViewer.java:634)
        at org.eclipse.jface.viewers.AbstractTreeViewer.handleTreeExpand
(AbstractTreeViewer.java:1442)
        at org.eclipse.jface.viewers.TreeViewer.handleTreeExpand
(TreeViewer.java:927)
        at org.eclipse.jface.viewers.AbstractTreeViewer$4.treeExpanded
(AbstractTreeViewer.java:1453)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
        at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Tree.gtk_test_expand_row(Unknown Source)
        at org.eclipse.swt.widgets.Widget.windowProc(Unknown Source)
        at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(Unknown Source)
        at org.eclipse.swt.widgets.Display.eventProc(Unknown Source)
        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
Method)
        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(Unknown
Source)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
        at com.android.sdkuilib.internal.repository.UpdaterWindowImpl.open
(UpdaterWindowImpl.java:100)
        at com.android.sdkuilib.repository.UpdaterWindow.open
(UpdaterWindow.java:91)
        at com.android.sdkmanager.Main.showMainWindow(Main.java:252)
        at com.android.sdkmanager.Main.doAction(Main.java:226)
        at com.android.sdkmanager.Main.run(Main.java:79)
        at com.android.sdkmanager.Main.main(Main.java:68)

-- 

3. SQLite with ANT

4. Roadmap for localisation / new languages and locales

5. How to change avd path.

6. Digest for android-beginners - 13 messages in 11 topics

7. Headphone widget