[android-developers] Re: How to embed an external Activity inside one of mine?
Hi Kumar and thanks for your reply! Yes, I mean an Activity inside another - external - Activity..! I'd like to show a PDF with two buttons, "accept" or "reject", below. Is there any way for doing it? Any ideas? Thanks, Francesco On Nov 23, 7:32 am, Kumar Bibek wrote: > You mean, Activity inside an Activity? No way. > > At the most, you can setup an Activity inside a ViewGroup, but > activity of another application?, that's too complex, have never even > thought about it. > > On Nov 22, 4:14 pm, Francesco Vadicamo wrote: > > > > > > > > > Hi all, > > I need an Activity showing a specified PDF and two buttons. Is > > possibile to embed an external PDF viewer - showing a specified URI - > > inside the view of my application? > > How can I do it? > > Thanks in advance, > > Francesco -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to embed an external Activity inside one of mine?
Hi all, I need an Activity showing a specified PDF and two buttons. Is possibile to embed an external PDF viewer - showing a specified URI - inside the view of my application? How can I do it? Thanks in advance, Francesco -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to properly use PreferenceActivity.addPreferencesFromIntent(Intent)
Hi all! Does anyone know how to properly use the PreferenceActivity.addPreferencesFromIntent(Intent) method?! Android reference (http://developer.android.com/reference/android/ preference/PreferenceActivity.html) says: "To specify an Intent to query Activities that each have preferences, use addPreferencesFromIntent(Intent). Each Activity can specify meta-data in the manifest (via the key METADATA_KEY_PREFERENCES) that points to an XML resource. These XML resources will be inflated into a single preference hierarchy and shown by this activity" So I created a PreferenceActivity overriding onCreate() as follow: protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); addPreferencesFromIntent(new Intent("mypackage.MYKEY")); } Then, I added the following lines into the AndroidManifest file: ... and xml/settings.xml contains http://schemas.android.com/apk/res/ android" android:key="settings"> Now, all is showed and the CheckBoxPreference works fine but when I click to the EditTextPrefence the following exception occurs: "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application" ... It seems to be related to the dialog that should appear but that is never shown. Any ideas?! Thanks in advance, Francesco --~--~-~--~~~---~--~~ 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---