Is there a flag I can enable to permanently display the virtual keyboard in my app?

by Dianne Hackborn » Tue, 17 Mar 2009 10:56:47 GMT


Sponsored Links
 If you are going to use new features before these is an SDK, you will want
to read through the source code java docs and the code itself to figure out
what you want to do.  In this case WindowManager.LayoutParams has new
options for controlling the input method, View has new methods, and the
InputMethodManager class has the start of some documentation for how these
things go together.







-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



Is there a flag I can enable to permanently display the virtual keyboard in my app?

by Dianne Hackborn » Thu, 30 Apr 2009 02:51:56 GMT


 Call the method on InputMethodManager to show the soft keyboard.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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


Sponsored Links


Other Threads

1. Strange out of memory issue on Nexus One

Hi, All

I'm now facing a very strange out of memory issue on Nexus One.

I have a user leaves a comment in market said that my app always got force
closed on his Nexus One, then I try to contact that user and ask for the
logcat. Here's the logcat:

E/AndroidRuntime( 4016): FATAL EXCEPTION: main
E/AndroidRuntime( 4016): java.lang.OutOfMemoryError: bitmap size
exceeds VM budget
E/AndroidRuntime( 4016):        at android.graphics.Bitmap.nativeCreate(Native 
Method)
E/AndroidRuntime( 4016):        at
android.graphics.Bitmap.createBitmap(Bitmap.java:468)
E/AndroidRuntime( 4016):        at
android.graphics.Bitmap.createBitmap(Bitmap.java:435)
E/AndroidRuntime( 4016):        at
android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340)
E/AndroidRuntime( 4016):        at
android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:488)
E/AndroidRuntime( 4016):        at
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:462)
E/AndroidRuntime( 4016):        at
android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:323)
E/AndroidRuntime( 4016):        at
android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)
E/AndroidRuntime( 4016):        at
android.content.res.Resources.loadDrawable(Resources.java:1767)
E/AndroidRuntime( 4016):        at
android.content.res.Resources.getDrawable(Resources.java:588)
E/AndroidRuntime( 4016):        at
android.widget.ImageView.resolveUri(ImageView.java:489)
E/AndroidRuntime( 4016):        at
android.widget.ImageView.setImageResource(ImageView.java:274)
E/AndroidRuntime( 4016):        at
xcxin.filexpert.FileAdapter.getView(FileAdapter.java:273)
E/AndroidRuntime( 4016):        at
android.widget.AbsListView.obtainView(AbsListView.java:1294)
E/AndroidRuntime( 4016):        at
android.widget.GridView.makeAndAddView(GridView.java:1219)
E/AndroidRuntime( 4016):        at 
android.widget.GridView.makeRow(GridView.java:265)
E/AndroidRuntime( 4016):        at 
android.widget.GridView.fillDown(GridView.java:218)
E/AndroidRuntime( 4016):        at 
android.widget.GridView.fillGap(GridView.java:185)
E/AndroidRuntime( 4016):        at
android.widget.AbsListView.trackMotionScroll(AbsListView.java:2944)
E/AndroidRuntime( 4016):        at
android.widget.AbsListView$FlingRunnable.run(AbsListView.java:2485)
E/AndroidRuntime( 4016):        at 
android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 4016):        at 
android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 4016):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 4016):        at
android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime( 4016):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4016):        at 
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 4016):        at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime( 4016):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime( 4016):        at dalvik.system.NativeStart.main(Native Method)

As we all could see, we have an out of memory issue here, here's the
code that cause this exception:

vh.iv.setImageResource(R.drawable.zip);

I try to render a item with image.

The problem is that this app works great on other phones, include HTC
Dream, which only has 192MB of RAM, but Nexus One has 512MB of RAM. So
if it's really the memory leak issue, why it's not in Dream?

Does anyone has the same issue? How do you solve that?

Thank you & BRs,

Alex

-- 

2. Google Maps on .apk application not showing maps

I was working on Google Maps on the emulator on my laptop and with the
Google API Key everything worked perfectly. Then when I created
the .apk and install it on my phone, Google Maps don't show the maps,
but show the pins of my plotted places.

Does anyone might know what is going on or has came across this as
well?

-- 

3. DD command

4. Using reflection to overide 2.0 method

5. Mau Upgrade Spica, pake yg mana ?

6. MONOPOLY Here and Now for Android

7. RIL in android developer