Marco,
This works for me but only if I define it in the manifest. Why doesn't it
work when I dynamically register the broadcast receiver?
Thanks,
Jeff
On Monday, June 15, 2009 10:09:22 AM UTC-7, Marco Nelissen wrote:
You need to add:
filter.addDataScheme(file);
On Mon, Jun 15, 2009 at
I did not mean to put both actions in the intent-filter, only one at a
time.
On Jun 14, 11:34 pm, jonathan topcod...@gmail.com wrote:
I have created a BroadcastReceiver to detect SDCard mount and unmount
event, however, I am not able to receive any events at all:
here's the
You need to resolve the Java variable names to their actual String
constants when inserting into XML. For example, the below Java
variable resolves to the actual string
android.intent.action.MEDIA_MOUNTED which is what you would use in
the intent-filter.
I have tried the string constant, but still not getting the broadcast.
any other idea?
thanks
On Jun 15, 12:25 am, Jeff Sharkey jshar...@android.com wrote:
You need to resolve the Java variable names to their actual String
constants when inserting into XML. For example, the below Java
I tried doing this dynamically in onCreate of my activity class.
SDCardBroadcastReceiver myReceiver = new SDCardBroadcastReceiver();
IntentFilter filter = new IntentFilter
(Intent.ACTION_MEDIA_MOUNTED);
filter.addAction(Intent.ACTION_MEDIA_UNMOUNTED);
You need to add:
filter.addDataScheme(file);
On Mon, Jun 15, 2009 at 10:01 AM, jonathan topcod...@gmail.com wrote:
I tried doing this dynamically in onCreate of my activity class.
SDCardBroadcastReceiver myReceiver = new SDCardBroadcastReceiver();
IntentFilter filter = new
6 matches
Mail list logo