What the hell are you talking about? On Nov 17, 2:49 pm, BelvCompSvs <fa829...@gmail.com> wrote: > with the caveat that i am still in get-going and do not have my > first .apk build up yet it seems rather obvious to me how to do it as > this would be an intermediate level work in Java - if Kyra were here I > would be she would allow passing by reference here > > remoteOrBackGroundService(this); > > or something like that then on the other end in Java it would > obviously be save this as the type of the class that you are trying to > broadcast from > > you have to be really diligent about not creating a circular reference > but compilers by their task should be able to spot those and look for > them in a build as they report circular constructor chains readily > > I am still in get-going but those xml files and the way they are using > them sure look like application initialization to me > > if they are then you only live once as far as they are concerned..... > > what they are calling Binders is actually RPC ~ you can do it that way > but is sorta clumsy - not really badly so if you are willing to > construct enough String to pass whatever need be > > do not fall for using statics though as that is not the ideal way due > to the way the machine dumps when the user shakes the phone around > > what you do is check for nulls and handle so that you do not get > bitten like the other poster who is going to nail the wall on 14 .... > > it's really simple in java - you can ship me some (sterilized) class > names and method names and I can write it for you in Java screwing off > while I wake up and make coffee ~ will trade some GUI stuff for it > with you as I am nimrod on GUI stuff - I do hardcore backend = > gui.equals("fear") returns true in all case, even with the phone shut > off...... > > On Nov 16, 9:18 pm, Cimo Huang <cimo8...@gmail.com> wrote: > > > > > Dear Android Developers: > > > I got an issue that activity can not receive the same intent second > > time while the app which this activity belongs to launched from > > another app. > > > I have an app2 launched from app1. Then in app1, start activity B from > > the main activity A with startActivity > > The launch mode of B is "Single top" > > > <activity android:name=".B" > > android:launchMode="singleTop" > > android:configChanges="keyboardHidden|orientation"> > > <intent-filter> > > <action android:name="android.intent.action.SEARCH" /> > > </intent-filter> > > <meta-data android:name="android.app.searchable" > > android:resource="@xml/searchable"/> > > <meta-data android:name="android.app.default_searchable" > > android:value=".B" /> > > </activity> > > > Then I search in B, first time I search, the onCreate in B is called. > > Search again, this time B doesn't response the > > > search inetent, no matter onCreate and onNewIntent, they both haven't > > been called. It seems like B is not at the top of > > > the visiable stack, but I don't know why and how it can be that. > > How can I do to make B receive the Search intent in second time? Here > > I can't sdd flag for the search intent and can't > > > change B's launch mode or add paremeters like " > > android:clearTaskOnLaunch="true" " in manifest. > > Is there any way to solve this issue? What's the root cause of this > > issue. Can you please provide me some suggestion? > > > Thanks a lot in advance.- Hide quoted text - > > - Show quoted text -
-- 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