reset password
Author Message
ptran6
Posts: 25
Posted 14:07 Feb 05, 2012 |

Hey Mahan, for the putExtra(name, value) methods in the Intent class, the documentation says:

Add extended data to the intent. The name must include a package prefix, for example the app com.android.contacts would use names like "com.android.contacts.ShowAll".

Does it really matter that we include a package prefix in the name? Or is it just a style convention?

Thanks.

mhajianpour
Posts: 20
Posted 22:09 Feb 05, 2012 |

Hi Peter,

I believe it's more of a convention (that should be followed). The examples I did in class definitely did not use fully qualified package prefixed names. 

It's a good habit to put the name with the package information included though as stated.

--

Mahan Hajianpour