[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

[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

[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 feng.of.t...@gmail.com Hi, All: I want to do something immediately after my application installed into the system. Is there such intent or hook to do

[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

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 hack...@android.com 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 feng.of.t...@gmail.com wrote: Or, in a fallback solution. Can my application

[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] 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

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

2009-12-02 Thread feng tian
Thanks very much. 2009/12/2 mingkg21 mingkg21 mingk...@gmail.com You also need to add data android:scheme=package /. 2009/12/2 feng tian feng.of.t...@gmail.com 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

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

2009-12-01 Thread feng tian
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.comwrote: Dear, Dianne, I tried again. This time I implemented a hello, android application, and copied it to my

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 hack...@android.com Sorry, you can't do this. On Mon, Nov 30, 2009 at 1:25 AM, Tian Feng feng.of.t...@gmail.com wrote: Hi, We

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

2009-11-30 Thread feng tian
this. On Mon, Nov 30, 2009 at 6:02 PM, feng tian feng.of.t...@gmail.com 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 Hackborn hack...@android.com Sorry, you can't do

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

2009-11-30 Thread feng tian
a mechanism for third party apps to do this. On Mon, Nov 30, 2009 at 6:02 PM, feng tian feng.of.t...@gmail.com 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 Hackborn hack

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

2009-11-30 Thread feng tian
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. :) On Mon, Nov 30, 2009 at 7:33 PM, feng tian feng.of.t...@gmail.com wrote: Each time when I downloaded

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

2009-11-30 Thread feng tian
does it do the trick? Thanks. BR, Feng. 2009/12/1 feng tian feng.of.t...@gmail.com 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