[android-developers] How to access database in BroadcastReceiver?

2009-12-11 Thread feng tian
Hi, All: I have a problem when using database in broadcastReceiver. I can't open the database created in the activity. e.g: malwareDB = new PackageDB(this); The eclipse give me the error that "PackageDB(this)" is undefined. It seems that the BroadcastReceiver doesn't support the database? Do have

Re: [android-developers] Re: How to get the event when the _current_ application install finished.

2009-12-07 Thread feng tian
kay, thanks for your reply. 2009/12/8 Dianne Hackborn > Sorry, you must wait for the user to explicitly launch your app. This is > the intended design. > > On Mon, Dec 7, 2009 at 1:31 AM, feng tian wrote: > >> Or, in a fallback solution. Can my application automa

[android-developers] Is it possible to start activity when received a broadcast?

2009-12-07 Thread feng tian
Hi, All: I found that the "onReceive" of broadcast intent can't start an activity explicitly. Is there any way to start an activity when I receive a broadcast? eg: I need an interaction UI with user when specific package has been installed in the system. With many thanks. BR, Feng -- You receiv

[android-developers] Re: How to get the event when the _current_ application install finished.

2009-12-07 Thread feng tian
Or, in a fallback solution. Can my application automatically run after the installation? Thanks. BR, Feng 2009/12/7 feng tian > Hi, All: > > I want to do something immediately after my application installed into the > system. Is there such intent or hook to do this? > With many

[android-developers] How to get the event when the _current_ application install finished.

2009-12-07 Thread feng tian
Hi, All: I want to do something immediately after my application installed into the system. Is there such intent or hook to do this? With many thanks. BR, Feng. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send e

[android-developers] Is there an Intent for package remove?

2009-12-06 Thread feng tian
Hi, All: My android app is responsible for uninstall the specified packages. Is there an "intent" for this? With many thanks. BR, Feng -- 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@

Re: [android-developers] Can't receive broadcast "PACKAGE_ADDED"

2009-12-02 Thread feng tian
Thanks very much. 2009/12/2 mingkg21 mingkg21 > > You also need to add . > > > 2009/12/2 feng tian > >> Hi, All: >> I want to receive the broadcast intent "PACKAGE_ADDED", but it seems I >> cant get it. Here are my codes, can someone check for m

[android-developers] Can't receive broadcast "PACKAGE_ADDED"

2009-12-02 Thread feng tian
Hi, All: I want to receive the broadcast intent "PACKAGE_ADDED", but it seems I cant get it. Here are my codes, can someone check for me? Thanks very much. //TestReceiver.java, this is the class for receiving the intent. I just display package com.android.receiver; import android.content.Broadcast

Re: [android-developers] How to get the event when the user installing an application.

2009-12-01 Thread feng tian
gt; 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 wrote: > >> Dear, Dianne, >> I tried again. This time I implemented a "hello, android" application, and &

Re: [android-developers] How to get the event when the user installing an application.

2009-11-30 Thread feng tian
" can register my test package broadcasts. How does it do the trick? Thanks. BR, Feng. 2009/12/1 feng tian > 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,

Re: [android-developers] How to get the event when the user installing an application.

2009-11-30 Thread feng tian
esult 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. :) > > On Mon, Nov 30, 2009 at 7:33 PM, feng tian wrote: > >> Each time when I downloa

Re: [android-developers] How to get the event when the user installing an application.

2009-11-30 Thread feng tian
m for third party apps to do this. > > On Mon, Nov 30, 2009 at 6:02 PM, feng tian wrote: > >> Thanks for you answer. Then I can use another solution to detect the >> running of specified application "B" , and block it, right? >> BR, Feng. >> >&g

Re: [android-developers] How to get the event when the user installing an application.

2009-11-30 Thread feng tian
rty apps to do this. > > On Mon, Nov 30, 2009 at 6:02 PM, feng tian wrote: > >> 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 Ha

Re: [android-developers] How to get the event when the user installing an application.

2009-11-30 Thread feng tian
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 > Sorry, you can't do this. > > On Mon, Nov 30, 2009 at 1:25 AM, Tian Feng wrote: > >> Hi, >> We want to develop an application bl