Broadcast/notify/messege when app is launched

by jw » Thu, 18 Feb 2010 23:59:39 GMT


Sponsored Links
 Hi,

Is there a way of getting broadcasted/notified/messeged when a certain
app is launched? I've searched a lot and come up with nothing. I can't
find any support for this in the Android SDK.

Does anybody now if the SDK support this?

If not, is it possible to reach this down under the SDK, using the
NDK?

Thanks in advance.

--



Other Threads

1. Optional and Manditory attributes or how say global defaults

Hi,

Widget XML attributes are mandatory and which are optional.

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/add_relations"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent">

e.g in the ScrollView  I am not sure if android:layout_width and
android:layout_height are really needed. if fill_parent is the default
value it would any way take, then we wish to remove it from out
definition some thing like this..

<ScrollView xmlns:android="http://schemas.android.com/apk/res/
android"    android:id="@+id/add_relations">

Regards,
Nagendra
www.tejasoft.com


--~--~---------~--~----~------------~-------~--~----~

2. 'Non-applicative' ANR when performing extensive GUI operations within application

Hi guys,

I'm raising this issue again because it has become crucial to the
behavior of my app.

This weird ANR happens after user performs multiple fast and
consecutive
GUI operations ("monkey test") on the application. I used the term Non-
applicative
because its stack trace (see below) does no lead to my own
application's code,
bur is fully external to it.

An interesting fact is that there's always a state of low memory
before ANR occues,
a state which is dealt in my app by performing cache cleanup etc in an
onLowMemory()
method.

Any idea you may have will be appreciated!!!

Peace,
GiladH


DALVIK THREADS:
"MyMainThread" prio=5 tid=3 TIMED_WAIT
  | group="main" sCount=1 dsCount=0 s=1 obj=0x400103e8
  | sysTid=1200 nice=0 sched=0/0 handle=-1090745188
  at java.lang.Object.wait(Native Method)
  at java.lang.Object.wait(Object.java:195)
  at android.os.MessageQueue.next(MessageQueue.java:144)
  at android.os.Looper.loop(Looper.java:110)
  at android.app.ActivityThread.main(ActivityThread.java:3739)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
  at dalvik.system.NativeStart.main(Native Method)



--~--~---------~--~----~------------~-------~--~----~

3. Restarting a service.

4. welcome to download togglesilent from android market

5. Suggestion to Document Eclipse & Launcher Differences

6. Adding security to application

7. Cornell Research Study about Android and Open Source: 20-30 minute interviews - Flexible Times