How to get the event when the user installing an application.

by Dianne Hackborn » Tue, 01 Dec 2009 03:03:48 GMT


Sponsored Links
 Sorry, you can't do this.




>



How to get the event when the user installing an application.

by feng tian » Tue, 01 Dec 2009 10:03:00 GMT


 Thanks for you answer. Then I can use another solution to detect the running
of specified application "B" , and block it, right?
BR, Feng.

2009/12/1 Dianne Hackborn <hack...@android.com>


>>


Sponsored Links


How to get the event when the user installing an application.

by Dianne Hackborn » Tue, 01 Dec 2009 11:02:51 GMT


 What other solution were you planning on using?  The platform doesn't
provide a mechanism for third party apps to do this.





>>>



How to get the event when the user installing an application.

by feng tian » Tue, 01 Dec 2009 11:27:09 GMT


 We are doing research on that. But I found some anti-virus app ("LookOut")
on "Market" already implemented such feature.
BR, Feng



2009/12/1 Dianne Hackborn <hack...@android.com>



>>>>



How to get the event when the user installing an application.

by feng tian » Tue, 01 Dec 2009 11:33:48 GMT


 Each time when I downloaded and installed an application on my GPhone, look
out will scan the software and display the scanned result on the status bar.

BR, Feng.

2009/12/1 Dianne Hackborn <hack...@android.com>



>>>>



How to get the event when the user installing an application.

by Dianne Hackborn » Tue, 01 Dec 2009 14:00:56 GMT


 It doesn't sound to me like it is blocking the install, just doing something
as a result of it, which you can be accomplish by registering for the
various PACKAGE_* broadcasts.

And scanning for viruses in .apks?  I sure hope nobody is paying money for
that thing. :)






>>>>>



How to get the event when the user installing an application.

by feng tian » Tue, 01 Dec 2009 14:39:16 GMT


 kay thanks, I thought there will be system notifications when application:
1) Install
2) Running
So, there is no system notifications for 1) and 2), right?

BR, Feng


2009/12/1 Dianne Hackborn <hack...@android.com>




>>>>>>



How to get the event when the user installing an application.

by feng tian » Tue, 01 Dec 2009 14:50:47 GMT


 Dear, Dianne,
I tried again. This time I implemented a "hello, android" application, and
copied it to my Android phone.
As soon as I finished the installation, the anti-virus app "LookOut"
displayed the scanned info. to the status bar.
I don't think "LookOut" can register my test package broadcasts. How does it
do the trick?

Thanks.
BR, Feng.


2009/12/1 feng tian <feng.of.t...@gmail.com>




>>>>>>>



How to get the event when the user installing an application.

by Dianne Hackborn » Wed, 02 Dec 2009 02:03:45 GMT


  am repeating myself here.  There are broadcasts sent for this stuff --
look at Intent for them. You can receive them to find out when it happens.
This does NOT mean you can prevent it from happening; in fact at that point
the app is already installed.

On Mon, Nov 30, 2009 at 10:50 PM, feng tian <feng.of.t...@gmail.com> wrote:

>>>>>>>>



How to get the event when the user installing an application.

by feng tian » Wed, 02 Dec 2009 10:38:11 GMT


 hank you very much for you patient answer, I found the proper broadcast
intent for that event.

BR, Feng.

2009/12/2 Dianne Hackborn <hack...@android.com>

>>>>>>>>>



Other Threads

1. OnApplicationStart ?

Hi all

My app has some logics to check the gps status and shows an message
when its disabled. Currently i put those logics in the onCreate()
method of my apps's main activity. However, it turns out that this
onCreate() method is called very frequently rather than once per
application startup. That makes the notification message quite
annoying.

Is there any life cycle call back method that is only call once on
application start up?
--~--~---------~--~----~------------~-------~--~----~

2. on press event

I was wondering is there something like onmousedown event type event
handler available in android
I went through the docs i only found

OnClickListener()
OnLongClickListener &
onTouchlistener()

actually what I want to do is that I have an ImageButton when the
users presses the button I replace it with another pressed version of
it
and then I want to completely replace it with another completely
different imagebutton

currently I am only able to do only one of them with the listeners
listed above

I want something like onpress listener and an onrelease listener .....

????

how can I go about it ???


Thank you
--~--~---------~--~----~------------~-------~--~----~

3. How firmware update thro OTA works?

4. USB socket

5. jchat4android 1.2 released!

6. Android-based game dev?

7. Developing websites for Android