NFC... TAG_DISCOVORED intent is only send via startActivity()

by z_z_z_z » Fri, 04 Feb 2011 05:16:25 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 sqlite unable open database problem


im doing debug with my mobile. My code works in the past, but now is not
working and i dont know why i cant create or open an existing database.

Here is my code:

Could you help me about how to solve this problem?

I read that there is an option from the command line:

emulator -wipe-data but since im not using an emulator to debug the
application (im using my own android mobile), im lost about how to solve the

Thanks in advance.
Best Regards.


2. CPU performance in my nexus

Hancurrrr suhu Sa kenceng amat...
Gw cuman:

HTC Nexus One
Processor ARMv7 Processor rev 2 (v7l) Linux BogoMIPS 662.40
Memory RAM 217464 Memory SWAP 0
Total graphics score;25.660803
Draw opacity bitmap;9.481482;MPixels per sec
Draw transparent bitmap;6.2135925;MPixels per sec
CPU Whetstone
Total CPU score;2146.3196
MWIPS DP;129.70168;MWIPS(DP)
MWIPS SP;168.63406;MWIPS(SP)
Total memory score;272.53592
Copy memory;247.64735;Mb/sec
Total file system score;24.161243
Creating 1000 empty files;10.625;sec
Deleting 1000 empty files;7.801;sec
Write 1M into file;2.5258904;M/sec
Read 1M from file;46.08295;sM/sec;
SD card perfomance
Creating 250 empty files;5.5;sec
Deleting 250 empty files;5.32;sec
Write 1M into file;5.973716;M/sec
Read 1M from file;238.09525;sM/sec;

powered by snapdragontil

On Jan 31, 2010 4:52 PM, "Subanindiyo Ardi" <>

Benar ndak yah nih nexus gw, kayaknya ngaco nih.

"Indonesian Android Community [id-android]"

3. changing the background color of an activity

4. Pipe separator "|" in sms

5. Is Possible implement Like Syntax in SQLiteQueryBuilder?

6. Hasil akhir mirink di PIM

7. TextvView Problem