NFC, TAG_DISCOVORED intent is only send via startActivity()

by z_z_z_z » Sat, 12 Feb 2011 06:07:02 GMT

Sponsored Links

I have a device that is constantly sending NFC tags each of it has
only one characte "a" as rawdata , this is not the interesting part.
The problem is that I'm writing a Service that have a
BroadcastReceiver that is listening for the tag_discovered intent. The
idea is when the onReceive() method is called in the BR it will call
some methods in the service. So I've take a looked at the source of and there the intent is fired with startActivity(). So
I cant use broadcast receiver. Is there any special reason to be made
like that, with startActivity() but not with sendBroadcast()? So in my
case I'm forced to use activity to catch the intent thet in it's
onCreate() it calls my broadcaste receiver via sendBroadcast() and
then at the end of the onCreate() it calls finish(). This solution is
very ugly one, because if I have some other application's Activity
running ontop it's onPause() method is colled.... terrible...

So am I missing something about the nfc apps in android and what are
your suggestions about my problem?


Other Threads

1. Android display refresh problem.

Hi all,
         We are porting Android 2.1 on linux FC2 now, and we have a
display refresh problem. Once there is a refresh action on the screen,
the window layers all display from top to button, and the refresh is
very slow. We have found the bottleneck is the function scanline() in
         When we port Android 1.5 on this platform, we don have this
problem. And in Android 1.5, it also calls the scanline function.
         Does anybody have this problem, too? And how can we solve
this problem?

         Many thanks!


2. how to develop a site client?

Hello all,

I'd like to develop a site client in android. but, i don't understand
how to do it?

my thinks:
1. the site provides a api, i can call it in android?

2. i create myself connections,read/write database?

is there any demo to show it.


3. CS telkomsel = buku berbicar

4. 720p Encording on Nexus One!

5. Force Close - Debug

6. Couple questions regarding gestures and system uis

7. Retrieving Contact Information (Name, Number, and Email) from the Phone book