Hello,
Given an IME and an underlying up connected to it, what's the easiest and
themost straightforward way to send a control character (say Ctrl-A which
usually does Select All) to the underlaying app. I tried sending
sendKeyChar((char) 0x1 )
But only a space character is sent to the connect
This should be quite simple, but I have been unable to fine anything
on it so far.
InputMethodManager imeManager = (InputMethodManager)
getApplicationContext().getSystemService(INPUT_METHOD_SERVICE);
imeManager.showInputMethodPicker();
The code displays the input method picker
Hello,
I have a soft keyboard that uses onUpdateSelection to manage changing
of the text and its related functions (word prediction).
This works pretty well, except that when the text box is on a webpage,
Android OS 2.3 and earlier do not call onUpdateSelection. OS 3.x and
4.x have no problem doi
It turns out that raw resources are also compressed, and therefore
unreadable with openRawResourceFd(raw.test);
Is there a sure way to prevent this?
On Dec 5, 12:24 am, Nikolay Elenkov wrote:
> On Mon, Dec 5, 2011 at 5:06 PM, Saied wrote:
> > Now I learn that the .txt asset
Thanks. I'll look!
On Dec 5, 12:24 am, Nikolay Elenkov wrote:
> On Mon, Dec 5, 2011 at 5:06 PM, Saied wrote:
> > Now I learn that the .txt asset files get compressed, and openAssetFd
> > fails on compressed files!
>
> > Wow.
>
> > is there a workaro
Now I learn that the .txt asset files get compressed, and openAssetFd
fails on compressed files!
Wow.
is there a workaround for this?
I just changed the extension to .jpg and it worked, but that's UGLY.
Any thoughts?
Thanks.
On Dec 4, 11:52 pm, Saied wrote:
> I spoke too soon.
&g
t compressed on the device? How can
I read it reliably?
Thanks.
On Dec 4, 3:02 pm, Saied wrote:
> wow. that was dumb of me!! Thanks for pointing it out.
>
> so I changed it to:
>
> @Override
> public AssetFileDescriptor openAssetFile(Uri uri, String mode) {
setManager assetManager = getAssets();
AssetFileDescriptor afd = assetManager.openFd(fileName);
return afd;
}
and it WORKS!!
Thank you VERY much for your help and indulgence!
On Dec 4, 2:09 pm, skink wrote:
> Saied wrote:
> > Thanks again!
>
> >
Or should I include openAssetFile(Uri uri, String mode) at the end of
the uri goint to FileInputStream?
Thank you very much for your help so far.
On Dec 3, 11:30 am, skink wrote:
> Saied wrote:
> > Thanks Pskink!
>
> > Per your suggestion, I have created a content provider and
ink wrote:
> Saied wrote:
> > Thanks.
>
> > I did create a contentProvider with a single asset file.
>
> > I also tried ParcelFileDescriptor
>
> > @Override
> > public ParcelFileDescriptor openFile(Uri uri, String mode) throws
> > File
be impossible.
Would it be easier if I read a raw file?
Or should I definitely go back to making a content provider and try to
read its asset?
Thank you very muchfor your help.
On Dec 3, 8:34 am, Nikolay Elenkov wrote:
> On Sun, Dec 4, 2011 at 1:23 AM, Saied wrote:
>
&
Thank you very much. I am almost there!
I was able to read a file (test1.txt) that I created by using
fIn = this.createPackageContext(packageName,
0).openFileInput("tes1.txt") ;
But then I tried to read a file (asset_text.txt") in the assets
folder:
fIn = (FileInputStream) this.createPackageC
wrote:
> Use Java file I/O. You will need to know the path to the file in
> question, hopefully supplied to you by the other application.
>
>
>
>
>
>
>
>
>
> On Thu, Dec 1, 2011 at 7:07 PM, Saied wrote:
> > Hello,
>
> > The docs say:
> >
Hello,
The docs say:
"MODE_WORLD_READABLE File creation mode: allow all other applications
to have read access to the created file."
So I can do this:
public void writeTextFile() {
String FNAME = "test.txt";
String CONTENT = "Write this test string to test.txt file";
Fi
. touching the vast area not
used by the keyboard would increase the functionality of the Android
tablets so much more.
Thanks for your thoughts and insights.
Best,
Saied
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post
This should be quite straightforward. My IME is putting text out on
the text field
/
*/
InputConnection inputConnection = getCurrentInputConnection();
if(inputConnection != null){
boolean v
Hello,
I am hoping that Android's main dictionary can be accessed by apps and
IMEs to that the same main dictionary and user dictionary is used to
give a consistent word prediction response to users.
Is this so? Or is it the case that each app should create and manage
its own main dictionary?
I
don't know what
to do to prevent the expansion of the text field.
So, what do I do when I detect this
(onConfigurationChanged(Configuration newConfig) )
Thanks.
Saied
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To pos
Hi,
We have a soft keyboard on the Market and works well and is received
well by our users (MessagEase).
We are receiving feedback that it our soft keyboard interferes with
the operation of the hard/physical keyboard.
Specifically, we are told that opening the physical keyboard
occasionally (but
Hello Dianne,
Thanks for your reply, restating the existing problem.
Can you please elucidate on when this will be rectified?
On Nov 3, 6:24 pm, Dianne Hackborn wrote:
> Android currently doesn't support right-to-left text.
>
>
>
> On Wed, Nov 3, 2010 at 2:13 PM, Sai
Hello,
Android's textView does not correctly input characters when left-to-
right Unicode characters, such as those of Hebrew or Arabic, are used.
For languages such as Arabic, morph transformation is also required
that is not done correctly either (or at all!).
This is also obvious when using Fa
Now it seems that createSpeechRecognizer cannot be called from within
a service. Without that, I don't think I can use SpeechRecognizer.
Does this make sense?
If it does, how's a service (input method) to integrate voice
recognition.
I have seen this done, but how?
Thank you.
Saie
Thank you very much for your help Mark.
Best,
Saied
On Oct 15, 1:04 pm, Mark Murphy wrote:
> On Fri, Oct 15, 2010 at 3:55 PM, Saied wrote:
> > Are you aware of any examples or tutorials to help me on this?
>
> No, sorry.
>
> --
> Mark Murphy (a Commons
> Guy)
Thanks Mark!
Are you aware of any examples or tutorials to help me on this?
On Oct 15, 10:11 am, Mark Murphy wrote:
> On Fri, Oct 15, 2010 at 12:49 PM, Saied wrote:
> > So is it the case that I cannot get startActivityForResult from
> > InputMethodService?
>
> Correct.
Hi,
i am trying to add voice recognition to my input service keyboard.
So I have:
public class mekb extends InputMethodService
But then to call voice recognition, after the example in the sample, I
need to do:
private void startVoiceRecognitionActivity() {
Intent intent = new
was thrown and
> hence made it simpler...
>
> On Fri, Oct 15, 2010 at 10:53 AM, Saied wrote:
> > Hello,
>
> > This is baffling me. It must be something that I am doing wrong
> > fundamentally, but for the life of me I can't see it
> > Can a good soul
Hello,
This is baffling me. It must be something that I am doing wrong
fundamentally, but for the life of me I can't see it
Can a good soul help me please?
I am (supposedly) catching NullPointerException and returning 0 if
that happens. But occasionally I get
NullPointerException failure anyway.
Hello,
This is baffling me. It must be something that I am doing wrong
fundamentally, but for the life of me I can't see it
Can a good soul help me please?
I am (supposedly) catching NullPointerException and returning 0 if
that happens. But occasionally I get
NullPointerException failure anyway.
e a relatively smaller
area on a tablet.)
If I use the current SDK hooks, it will have to take a significant
portion of the screen, defeating the purpose.
Can someone point me to the right direction in creating a floating
keyboard? or is it possible?
Thanks.
Saied Nesbat,
Exideas (creator of Mess
Hi,
I have a service (input method) and from within that service I want to
start and activity which was declared in the same manifest. The
activity maybe running but in the background.
How do i check its presence and bring it to front, or optionally start
this.
>From what I can gather from other
Seems there is a bug, as neither invalidate, nor assigning the new
width to the imageView worked.
The only thing that worked was if I fake assign a different image to
the view. Then without invalidate, it repaints.
Go figure!
On Oct 5, 12:11 am, Saied wrote:
> Thank you!
>
> I
Hi,
I am developing a input method. As recommended by google, am using
sendDownUpKeyEvents(someEventCode) for the key characters.
But in some circumstances this event does not get executed
immediately. I.e., I check the textfield on which I just put a
sendDownUpKeyEvents(KeyEvent.KEYCODE_ENTER
Thank you!
I inserted:
final ViewGroup boxView = ( ViewGroup )
findViewById(R.id.relBox );
boxView.invalidate();
relBox is the relativeView holding the image. So that's the immediate
parent. This did not fix the problem.
is invalidate() the right way to redraw?
Best,
loop of seekBar, enters with the correct
value, but does not execute the getLayoutParams statement.
The seekBar correctly updates and provides the correct value. Inside
setWidthOfImage I can read the value to be correct. But the width does
not get updated.
Can a good soul shed light on this?
T
I found the answer!
I should put the .html file in the assets folder and then use
mWebView.loadUrl("file:///assets/about.html");
Thanks!
On Sep 29, 8:46 pm, Saied wrote:
> This should be very simple, but I can't find the answer anywhere.
>
> How do I load an html file (
This should be very simple, but I can't find the answer anywhere.
How do I load an html file (which I assume I keep in res/raw folder)
into a webview?
neither
mWebView.loadUrl("file:///raw/about");
or mWebView.loadUrl("file:///raw/about.htmal");
works.
What's the correct syntax or arrangemen
Never mind!
Thanks Mark! I see where the problem is.
Best,
Saied
On Sep 29, 6:05 pm, Mark Murphy wrote:
> Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
> LogCat and look at the stack trace associated with your "barf".
>
>
>
> On Wed, Se
his activity in your AndroidManifest.xml?
Thank you.
On Sep 29, 6:05 pm, Mark Murphy wrote:
> Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
> LogCat and look at the stack trace associated with your "barf".
>
>
>
> On Wed, Sep 29, 2010 at 8:39 PM,
t matter, and they are
taken from the exmple.
and the drawalbe.ic.tab.info does exist, exactly as the example
requires it:
http://schemas.android.com/apk/res/android";>
Can anyone give me a hint as to where to look for? Any help is much
appreciated.
Best,
Saied
Hi Brad,
Thanks a LOT.
Everything is working as it should now!
Best,
Saied
On Sep 27, 12:32 am, Brad Gies wrote:
> Sorry, I missed the question about knowing whether the Mime type is
> setup, but I don't the answer anyway... It depends on your server, and
> how your server
--
>
> Everything in moderation, including abstinence
>
> Never doubt that a small group of thoughtful, committed people can
> change the world. Indeed. It is the only thing that ever has - Margaret Mead
>
> On 26/09/2010 8:22 PM, Saied wrote:
>
> > Hello Eve
ta
Thanks for any hint, pointer, or idea that you can send my way
Best,
Saied
--
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
is thread to change your email preferences. If you're working via
> email I assume there's a way to email change requests, but I don't
> know what it is.
>
> On Sep 17, 8:04 pm, Saied wrote:
>
> > Dear Moderator(s)?
>
> > I wonder if there is a
Dear Moderator(s)?
I wonder if there is a way for me to find the messages that I have
posted here, and more importantly, the responses that others have
posted for my questions.
Is there?
I am not getting other people's responses emailed to me. (is there a
way? and is that the only way?)
And whe
ntasy
> Football<http://chriswstewart.com/android-applications/fantasy-football/>-
> Android app for MFL fantasy football owners
>
> On Fri, Sep 17, 2010 at 3:37 PM, Kostya Vasilyev wrote:
> > 17.09.2010 22:43, TreKing пишет:
>
> > On Fri, Sep 17, 2010 at 12:42 P
Hello,
I have posted 8 posts to this group. But I can't find any of them.
My profile shows that I have posted 8 + this one, but only one of them
is listed. I posted a question about a soft keyboard on September 15,
and then I saw it posted. But now it's now longer there.
Is it the policy of this
Hi,
I am trying to develop a softkeyboard, which uses and image, senses
the onTouch events, and sends characters to the input stream.
So I have created the essentials of the keyboard and I want to load an
image. Here's what I do:
public class mekb extends InputMethodService implements
View.On
a single View that you set as your UI, and do all your
> drawing in onDraw() and receive touch events in onTouchEvent(). Then based
> on whatever you do for that do calls on InputConnection as the soft keyboard
> sample shows.
>
>
>
> On Sat, Sep 11, 2010 at 11:01 PM, Saied wrote
a single View that you set as your UI, and do all your
> drawing in onDraw() and receive touch events in onTouchEvent(). Then based
> on whatever you do for that do calls on InputConnection as the soft keyboard
> sample shows.
>
>
>
> On Sat, Sep 11, 2010 at 11:01 PM, Saied wrote
a single View that you set as your UI, and do all your
> drawing in onDraw() and receive touch events in onTouchEvent(). Then based
> on whatever you do for that do calls on InputConnection as the soft keyboard
> sample shows.
>
>
>
> On Sat, Sep 11, 2010 at 11:01 PM, Saied wrote
a single View that you set as your UI, and do all your
> drawing in onDraw() and receive touch events in onTouchEvent(). Then based
> on whatever you do for that do calls on InputConnection as the soft keyboard
> sample shows.
>
>
>
> On Sat, Sep 11, 2010 at 11:01 PM, Saied wrote
; work.
>
> Cheers,
> Earlence
>
> On Sep 11, 10:55 am, Saied wrote:
>
> > Hello,
>
> > I have two android related needs:
>
> > 1. I am trying to create a soft keyboard for android. I need someone
> > to help me create the template for it: the service
Hello,
I have two android related needs:
1. I am trying to create a soft keyboard for android. I need someone
to help me create the template for it: the service, the touch event
capturing and sending of characters and sensing of the text buffer.
Based on google's published document this seems to
Hello Nitin,
just FYI, your suggestion has not changed the errors a bit!
Wow!
is there something simpler than hello world we should try that works?
On Jul 9, 11:10 am, Nitin Dahyabhai wrote:
> On Jul 2, 5:16 pm, Xavier Ducrohet wrote:
>
> > Hello all,
>
> > We've tracked down this issue to a
54 matches
Mail list logo