[android-developers] Sending control characters through InputConnection

2013-12-01 Thread Saied
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

[android-developers] Where do I get notified when showInputMethodPicker is done?

2012-03-12 Thread Saied
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

[android-developers] onUpdateSelection not called in OS 2.3 and earlier

2012-02-02 Thread Saied
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

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-05 Thread Saied
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

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-05 Thread Saied
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

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-05 Thread Saied
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

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-04 Thread Saied
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) {

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-04 Thread Saied
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! > > >

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-04 Thread Saied
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

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-03 Thread Saied
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

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-03 Thread Saied
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: > &

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-03 Thread Saied
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

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-01 Thread Saied
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: > >

[android-developers] How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-01 Thread Saied
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

[android-developers] keyboard touch even is ALWAYS intercepted, even when it shouldn't be.

2011-09-09 Thread Saied
. 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

[android-developers] Help with inputConnection

2011-07-26 Thread Saied
This should be quite straightforward. My IME is putting text out on the text field / */ InputConnection inputConnection = getCurrentInputConnection(); if(inputConnection != null){ boolean v

[android-developers] is the Main dictionary available for app/IME word prediction?

2011-07-25 Thread Saied
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

[android-developers] What to do when the Hard keyboard is out?

2011-03-22 Thread Saied
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

[android-developers] soft keyboard interfering with physical keyboard

2010-12-23 Thread Saied
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

[android-developers] Re: Android OS Problem: Left-to-right alphabets are rendered incorrectly

2010-11-05 Thread Saied
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

[android-developers] Android OS Problem: Left-to-right alphabets are rendered incorrectly

2010-11-03 Thread Saied
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

[android-developers] Re: Can startActivityForResult be called from within InputMethodService?

2010-10-20 Thread Saied
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

[android-developers] Re: Can startActivityForResult be called from within InputMethodService?

2010-10-15 Thread Saied
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)

[android-developers] Re: Can startActivityForResult be called from within InputMethodService?

2010-10-15 Thread Saied
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.

[android-developers] Can startActivityForResult be called from within InputMethodService?

2010-10-15 Thread Saied
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

[android-developers] Re: Why am I getting NullPointerException although I catch it?

2010-10-15 Thread Saied
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

[android-developers] Why am I getting NullPointerException although I catch it?

2010-10-15 Thread Saied
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.

[android-developers] Why am I getting NullPointerException although I catch it?

2010-10-15 Thread Saied
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.

[android-developers] how can I design a floating keyboard?

2010-10-13 Thread Saied
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

[android-developers] How to start an activity from a service

2010-10-05 Thread Saied
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

[android-developers] Re: Changing the width of an ImageView

2010-10-05 Thread Saied
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

[android-developers] how do I force sendDownUpKeyEvents(MEkeyEventCode) to complete

2010-10-05 Thread Saied
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

[android-developers] Re: Changing the width of an ImageView

2010-10-05 Thread Saied
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,

[android-developers] Changing the width of an ImageView

2010-10-04 Thread Saied
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

[android-developers] Re: loading an html file from local res directory

2010-09-29 Thread Saied
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 (

[android-developers] loading an html file from local res directory

2010-09-29 Thread Saied
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

[android-developers] Re: Tab Layout not working

2010-09-29 Thread Saied
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

[android-developers] Re: Tab Layout not working

2010-09-29 Thread Saied
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,

[android-developers] Tab Layout not working

2010-09-29 Thread Saied
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

[android-developers] Re: What's the status of installing a non-market apps?

2010-09-27 Thread 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

[android-developers] Re: What's the status of installing a non-market apps?

2010-09-26 Thread Saied
-- > > 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

[android-developers] What's the status of installing a non-market apps?

2010-09-26 Thread Saied
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

[android-developers] Re: To the Moderators: is there a way to find my earlier post threads?

2010-09-17 Thread Saied
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

[android-developers] To the Moderators: is there a way to find my earlier post threads?

2010-09-17 Thread Saied
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

[android-developers] Re: What's happening to my posts here? Is someone deleting them?

2010-09-17 Thread Saied
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

[android-developers] What's happening to my posts here? Is someone deleting them?

2010-09-17 Thread Saied
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

[android-developers] how do I load an image for a softkeyboard

2010-09-15 Thread Saied
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

[android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Saied
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

[android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Saied
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

[android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Saied
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

[android-developers] Re: need help with softkeyboard development

2010-09-12 Thread Saied
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

[android-developers] Re: need help with softkeyboard development

2010-09-11 Thread Saied
; 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

[android-developers] need help with softkeyboard development

2010-09-10 Thread Saied
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

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-06 Thread Saied
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