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. telkomsel sedang masalah ? ato deadline IO scheduler?

Daku disini sih dimana kadang mentest si merah & si biru selain si 
kuning/hijau, sejak kemarin tidak bermasalah meski dg dwang rom v.1.17. Mungkin 
karena dikau tinggal di penthouse sehingga signal sulit dicapai karena 
ketinggian mas widi.....wkwkwkwkwkwkwk.
  ----- Original Message ----- 
  From: widi dream 
  To: android groups 
  Sent: Thursday, December 24, 2009 10:46 PM
  Subject: [id-android] telkomsel sedang masalah ? ato deadline IO scheduler?

  rekan2 milis yg pake telkomsel, 
  sejak semalem koneksi tsel data saya rasakan ada masalah. channel data sering 
terputus or tersendat2.
  adakah rekan2 yg merasakan hal yg sama ?
  akses ke market dan browsing sering terputus.
  apa karena deadline IO scheduler yg di implement di dwang 1.17 ?
  saya sendiri terus terang gak yakin juga apa ada hubungannya dg scheduler itu 
ato memang tsel nya yg memang sedang masalah ......

  akhirnya saya balik lagi pake ROM super D 1.1.5x
  trus jadi lebih lancar.

  Salam -widi-
  Powered by IPOT - the Best Online Trading in Indonesia

  Google Groups "Indonesian Android Community [id-android]" group.
  To post to this group, send email to
  To request to subscribe to this group:

2. Setting a built in theme (Theme_Light)

Hi all,

I've been kicking the tires on Android programming and have begun to
explore themes.  Based on what I've read on this site regarding the
built in themes, all I should have to do is call setTheme() before I
load the view as follows:

@Override public void onCreate(Bundle SavedInstanceState)




I can't find any other requirements so I what I expected here was a
white(ish) background with dark text.  What I get is a black
background with text that is dark grey (making it hard to read).

It works fine when I put the style in the manifest under either the
application or activity element, but what I was hoping was to give the
user the ability to select which theme he/she wanted so setting the
theme programmatically seemed the logical choice.

What am I missing here?




3. Merry Xmas & Happy New Year 2010

4. MediaRecorder - how to continuously record in memory (using a circular buffer)

5. Kuota Data

6. Created my app - how do i put it onto my g1 phone?

7. Creating SetContentView