NFC - missing method getParcelableExtra( ... )

by Lars Nielsen Lind » Tue, 15 Mar 2011 06:21:10 GMT

Sponsored Links

I have used the following code which is published on various sites:

PendingIntent intent =
PendingIntent.getActivity(this.getApplicationContext(), 0,new
Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),0);

null, null);

Tag tag = (Tag) intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);

Here is the error message:

The method getParcelableExtra(String) is undefined for the type

Anyone that knows why I can't call getParcelable(....) as shown above?




Re: NFC - missing method getParcelableExtra( ... )

by Mark Murphy » Tue, 15 Mar 2011 06:24:51 GMT

 You can call getParcelableExtra() on an Intent, not on a PendingIntent.

On Mon, Mar 14, 2011 at 6:21 PM, Lars Nielsen Lind

Mark Murphy (a Commons Guy)  |  | 

Android Training in Oslo: 


Sponsored Links

Other Threads

1. RIL and datacall (CSD)

I tried to establish datacall between android phone and other phone,
and I failed.

AFAIK, CSD is recognized using %CPI (call progress infromation),
looking in reference-ril.c:onUnsolicited it seems that RIL handle
following unsolicited commands:
* CTZV: Unsolicited result code for time zone change events
* CRING, RING, NO CARRIES, CCWA: - ringing, call waiting
* CMT: Notification of a directly delievered SMS message
* CREG: network registration
* CDS: sms
* CGEV: gprs

So, current RIL and probably jave framework can not recognize datacall
also framework does not support this.

Is there any plan for extending this functionality?

for extending SW?

Best regards


2. where is "bionic/libc/kernel/original"??

Hi Android guys,

i'm trying to configure my source code to add a new arch.
I'm following the basic steps from

3. USSD feature on Android

4. Wi Fi connection

5. regarding soap client and webservices

6. Google I/O 2008 - Dalvik VM Internals - implicit labeling

7. Multiselect List View and Key Event