Android input devices

by chen.ju...@zte.com.cn » Wed, 01 Apr 2009 14:18:40 GMT


Sponsored Links
 Who knows how many kinds of input device android can support?
Touchscreen,keyboard are known,about else,e.g. mouse etc?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Android Library Activity and startActivity

I have an app which I am trying to turn into a library and create 2 new apps 
that consume it.  I have to move all code differences between the 2 apps out 
of the library and into the separate apps due to the fact that I sold source 
code to the owner of the app.  This way I can give them them library and 
their app.  I am running into a bit of a problem tho.  In at least one of my 
activities the UI behavior is somewhat different, in this class the 
CustomerListActivty.  So I started to move the CustomerListActivity out into 
each respective app, but the problem came when other activities in the 
library project were trying to invoke the CustomerListActivity 
via startActivity(new Intent(SomeClass.this, CustomerListActivity.class));. 
 Obviously the library no longer knew what CustomerListAcitivity was so I 
got compiler errors.  I am at a loss on how to solve this problem.  I think 
I need some way to refer the activity other than by class name.

Thank you for any and all help!

Aaron

-- 

2. Coding style for modal dialog

Hello,
in my android application at some event in an activity I want to ask
the user for a name (string). I know how to do this: call showDialog,
create the dialog in the Activity.onCreateDialog method (I need to
supply a string for the label) and handle the result in the onClick of
the dialog. This works fine and to my satisfaction.
BUT doing it this way I have three different places (onCreateDialog,
onClick, and where I call ShowDialog), where this simple task spreads
throughout the code of my activity. I would much more prefer to keep
this code together, to write something like this:

string result;
if (showSimpleEditDialog(idForLabelString, result)==DIALOG_OK)
{
   // do something with the result
}

or maybe with a class instance

SimpleEditDialog dlg = new SimpleEditDialog(idForLabelString);
if (dlg.showModal()==DIALOG_OK)
{
   string result = dgl.getResult();
   // do something with the result
}

 (The "idForLabelString" would be some resource id for the label to
use, "DIALOG_OK" would be some constant returned when the user clicks
OK) I know, I would have to write this methodes or this class. But for
better readibility of my code I would do it. Any suggestions?
Thank you,
Gerhard

-- 

3. EditText.SetError() Not working properly in Sony Ericsson Xperia

4. Competitor attack

5. modify su.c and execute it without the root privilege under /data/data/....

6. how to implement the permission checks on Native C?

7. Playing VIdeo in background and drawing Activities on top