Preferences for input method

by Andriy Tsykholyas » Tue, 02 Mar 2010 04:51:00 GMT

Sponsored Links

I'm working on input method. While creating the settings for it I've
stuck with the following problem: settings view (which extends
PreferenceActivity) fails to show if its package differs from the
application's package.
So, application package is "my.ime", and full name of settings view is
"my.ime.settings.MySettings". The exception is:

E/AndroidRuntime(  345): android.content.ActivityNotFoundException:
Unable to find explicit activity class {my.ime.settings/
my.ime.settings.MySettings}; have you declared this activity in your
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at android.widget.AbsListView
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at android.os.Looper.loop(
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at
E/AndroidRuntime(  345):        at dalvik.system.NativeStart.main(Native

The AndroidManifest.xml is OK.
It also works fine if I move the settings view
(my.ime.settings.MySettings) to application package (my.ime).
Non-settings view (my.ime.view.MyActivity) also starts fine, despite
of different package name.

Does Android blocks settings views from another packages (e.g. for
security reasons)?
Or I'm just missing something?

Thanks in advance,


Other Threads

1. Page Navigation Using button onclick in android

Hi, Everyone,
          I have designed 3pages using 3xml files in layouts folder
android,each having 2 buttons previous page and next page..i was
loaded  first page using set content view , From here, through Button
onclick i have moved to second page.. till that  every thing was fine,
if try to go previous page or next page my application gets crashes,
forced to close...

Can any one give me the sample code for above scenario , Thanks in


2. Apple's Solution. Was: Keystore

What kind of sensitive data is it? Does it need to be secured from the owner of the phone? Or just from third parties? How would you store the data if you were writing a PC or Mac app? In both of those environments the user would also have root equivalent access to the file system.
There is no need to despair because Apple is fixing the "hole": In addition to HW-protected keys they will have E2ES (End to End Security) schemes for key provisioning, *presumably* run through the browser.
Hi everybody, I am working on a project that requires to store sensitive data on an android mobile phone. Up to now, it seems that the suitable place to store that data is the private folder that is owned by the application. However, in a rooted phone this folder can be accessed easily. Other alternative is related to encryption. Again, the point is where to store the corresponding key. The security API of android provides a keystore class that can contain cryptographic keys. Does anybody knows where this file is stored?, is it necessary to create a keystore for each application that required it? and how secure is the access to the information in this file by unauthorized applications?. Any idea or suggestions will be welcome! thanks
-- .

3. Camera zoom problem

4. [WTA] Bugs Galaxy S Froyo dan Ym Conference

5. Paging axis user.

6. Radio On Spica

7. home screen widget drag or scroll