Preferences for input method

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


Sponsored Links
 Hi,

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
AndroidManifest.xml?
E/AndroidRuntime(  345):        at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:
1480)
E/AndroidRuntime(  345):        at
android.app.Instrumentation.execStartActivity(Instrumentation.java:
1454)
E/AndroidRuntime(  345):        at
android.app.Activity.startActivityForResult(Activity.java:2661)
E/AndroidRuntime(  345):        at
android.app.Activity.startActivity(Activity.java:2705)
E/AndroidRuntime(  345):        at
com.android.settings.LanguageSettings.onPreferenceTreeClick(LanguageSettings.java:
271)
E/AndroidRuntime(  345):        at
android.preference.Preference.performClick(Preference.java:821)
E/AndroidRuntime(  345):        at
android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:
190)
E/AndroidRuntime(  345):        at
android.widget.AdapterView.performItemClick(AdapterView.java:284)
E/AndroidRuntime(  345):        at
android.widget.ListView.performItemClick(ListView.java:3246)
E/AndroidRuntime(  345):        at android.widget.AbsListView
$PerformClick.run(AbsListView.java:1635)
E/AndroidRuntime(  345):        at
android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime(  345):        at
android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(  345):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  345):        at
android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime(  345):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  345):        at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  345):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime(  345):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime(  345):        at dalvik.system.NativeStart.main(Native
Method)

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,
Andriy

--



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
Advance!!

-- 

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": http://www.smartcardstrends.com/det_atc.php?idu=13258 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