[android-developers] Identify Application from Input Method?

2010-08-07 Thread objectuser
Is there a way for an InputMethod or InputMethodService to identify
the application for which it is providing input?

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Identify Application from Input Method?

2010-08-07 Thread objectuser
Thanks!  That's exactly what I was looking for.

On Aug 7, 12:56 pm, Dianne Hackborn hack...@android.com wrote:
 In the editor info:

 http://developer.android.com/reference/android/view/inputmethod/Edito...

 http://developer.android.com/reference/android/view/inputmethod/Edito...Also
 information about the specific field in the app:

 http://developer.android.com/reference/android/view/inputmethod/Edito...

 On Sat, Aug 7, 2010 at 8:38 AM, objectuser kevin.k.le...@gmail.com wrote:
  Is there a way for an InputMethod or InputMethodService to identify
  the application for which it is providing input?

  Thanks.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 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.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: My Eclipse 3.5 always lag and have to force close - why?

2010-08-04 Thread objectuser
Here are the settings I changed in my eclipse.ini after encountering
this problem:

-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/
java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms1024m
-Xmx1024m

I can code all day long and leave Eclipse open for a week at a time,
and have no issues.  It's only when doing Android stuff that I have
these issues.  In fact, while doing some iPhone development, I had the
iPhone environment up (Xcode, Simulator) with Eclipse and a Java
server (Tomcat, MySQL), all with Firefox and iTunes up and running,
and did not have this problem.  And I don't need to run the Android
Emulator for it to happen.

I'm going to try not using any of the Android resource editors and see
how that goes (I currently only use the source tab of these editors
and that still causes the issue).

On Aug 4, 6:46 am, Jonas Petersson jonas.peters...@xms.se wrote:
 Ah, I think I can relate to that statement: for 95+% of the XML editing
 I referred to I used Eclipse itself, but like Kostya I stayed mostly in
 the XML view, only an occasional glance at the graphical layout since
 (at least for my cases) I decided the visual layout could not really be
 trusted. Showing it in the emulator was the only way to know that it
 actually worked as expected (yes, I had a rather picky spec to follow
 and in a few cases I actually pulled out emacs for significant
 restructuring, so I may have accidentally been lucky to manage for a week).

                         Best / Jonas

 On 08/04/2010 11:55 AM, Kostya Vasilyev wrote:

  This looks likely.

  I can run Eclipse all day on a 4G Windows 64bit machine, but I edit my
  layouts by hand, without the visual editor.

  04.08.2010 11:00, Mystique пишет:
  I think there's some memory leak issue if editing XML files.
  I realise if I only open .java it is ok.
  So maybe a temp work around is to edit xml file with editor and open
  only .java in eclipse?

  On Aug 4, 10:17 am, Dougbeafd...@gmail.com wrote:
  The issue isn't what else is running on the computer. The issue is
  that Eclipse gets into an unrecoverable state where it lags horribly
  when switching between editors, at least on OSX. I can typically go 5
  or 6 hours of steady use (more with intermittent use) until that state
  kicks in for me (MacBook Pro, 4GB, 2.4GHz Core 2 Duo). Quitting other
  apps at that point doesn't make any difference. The resource leak
  explanation is the only one that makes sense given my observations,
  which are daily since I do this to pay my mortgage.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: My Eclipse 3.5 always lag and have to force close - why?

2010-08-03 Thread objectuser
Doug, I'm surprised you can go for 5 or 6 hours.  It grinds to a halt
for me in less than an hour.  But I guess it depends on what you're
doing (Java vs resources).

But I'll echo what you said: it's not that the IDE is generally slow,
it's something else that is chewing up resources.  It's not the
emulator, as I can exit that and Eclipse is still the same.  As people
reported above, you can code all you like, but it seems that if you
mess with the resource files, you're doomed.

On Aug 3, 9:17 pm, Doug beafd...@gmail.com wrote:
 The issue isn't what else is running on the computer.  The issue is
 that Eclipse gets into an unrecoverable state where it lags horribly
 when switching between editors, at least on OSX.  I can typically go 5
 or 6 hours of steady use (more with intermittent use) until that state
 kicks in for me (MacBook Pro, 4GB, 2.4GHz Core 2 Duo).  Quitting other
 apps at that point doesn't make any difference.  The resource leak
 explanation is the only one that makes sense given my observations,
 which are daily since I do this to pay my mortgage.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: My Eclipse 3.5 always lag and have to force close - why?

2010-08-03 Thread objectuser
So everyone has this issue and they just deal with it?  I'm amazed to
find such a productivity killer in a platform that's been out for a
couple of years.  I'm hoping we are simply unenlightened and someone
will stop by with an easy fix. :)

I'm on OS X, 4GB RAM, core 2 duo, btw, using some settings I found
previously (run with 1.6, more memory, etc).

On Jul 30, 9:53 pm, Mystique joven.ch...@gmail.com wrote:
 I see. I thought I'm the only one...
 Yes, I look at the log and so many memory leak error...

 On Jul 30, 8:55 pm, Kaj Bjurman kaj.bjur...@gmail.com wrote:

  It has unfortunately been like that for ages (if you are modifying
  e.g. layout files). It doesn't happen if you only write code.

  It looks like the Android plugin is leaking resources, and fast.

  On 30 Juli, 13:22, Mystique joven.ch...@gmail.com wrote:

   Hi,

   I'm on Win7 32-bit with 4GB RAM. Why myEclipsealways become so slow
   until it take so long to response to my mouse or keyboard. I have to
   force terminate it, restart and use it for like 20min and repeat the
   same thing again...

   Anyone facing this or have experience dealing with it?

   Regards.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: My Eclipse 3.5 always lag and have to force close - why?

2010-08-03 Thread objectuser
Yes, same issue for me.  I need to restart Eclipse every few minutes
if I don't want to wait 10s to switch between Java files, etc.

On Aug 3, 10:08 am, Mystique joven.ch...@gmail.com wrote:
 Hi, you mean in OSX is the same thing?

 On Aug 3, 10:51 pm, objectuser kevin.k.le...@gmail.com wrote:

  So everyone has this issue and they just deal with it?  I'm amazed to
  find such a productivity killer in a platform that's been out for a
  couple of years.  I'm hoping we are simply unenlightened and someone
  will stop by with an easy fix. :)

  I'm on OS X, 4GB RAM, core 2 duo, btw, using some settings I found
  previously (run with 1.6, more memory, etc).

  On Jul 30, 9:53 pm, Mystique joven.ch...@gmail.com wrote:

   I see. I thought I'm the only one...
   Yes, I look at the log and so many memory leak error...

   On Jul 30, 8:55 pm, Kaj Bjurman kaj.bjur...@gmail.com wrote:

It has unfortunately been like that for ages (if you are modifying
e.g. layout files). It doesn't happen if you only write code.

It looks like the Android plugin is leaking resources, and fast.

On 30 Juli, 13:22, Mystique joven.ch...@gmail.com wrote:

 Hi,

 I'm on Win7 32-bit with 4GB RAM. Why myEclipsealways become so slow
 until it take so long to response to my mouse or keyboard. I have to
 force terminate it, restart and use it for like 20min and repeat the
 same thing again...

 Anyone facing this or have experience dealing with it?

 Regards.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en