[mono-android] getIntent().getExtras()
James Burton
james at thetin.net
Tue Mar 8 10:38:20 EST 2011
I think what you needs is this ... can anyone confirm?
Bundle extras = Intent.Extras;
FYI ... all the getXYZ, setXYZ bits generally become { get { ... } set {
... } } "properties" in C#
Regards,
::: James Burton :::
::: TheTin - Digital Consultancy :::
::: 24-28 Hatton Wall :::
::: London EC1N 8JH :::
T + 44 (0) 20 7430 7935
F + 44 (0) 20 7430 7936
M + 44 (0) 7764 482 246
W www.thetin.net <http://www.thetin.net/>
Find us on Google maps here
<http://www.google.co.uk/maps?f=q&hl=en&q=24-28+Hatton+Wall,+London,+EC1
N+8JH&sll=51.536486,-0.106001&sspn=0.047996,0.107803&ie=UTF8&z=16&om=1&i
wloc=addr> .
Thetin Limited trading as The Tin Limited | Registered in England
4237948 | Registered office: Black Bull Yard, 24-28 Hatton Wall, London,
EC1N 8JH | VAT registration number 778 1046 12
This e-mail message is intended solely for the person to whom it is
addressed and may contain confidential or privileged information. If you
have received it in error, please notify postmaster at thetin.net
<mailto:postmaster at thetin.net> immediately and destroy this e-mail and
any attachments.
In addition, you must not disclose, copy, distribute or take any action
in reliance on this e-mail or any attachments. Any views or opinions
presented in this e-mail are solely those of the author and do not
necessarily represent those of The Tin. E-mail may be susceptible to
data corruption, interception, unauthorised amendment, viruses and
unforeseen delays, and we do not accept liability for any such data
corruption, interception, unauthorised amendment, viruses and delays or
the consequences thereof. Accordingly, this e-mail and any attachments
are opened at your own risk.
From: monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Torello Querci
Sent: 08 March 2011 1:41 PM
To: monodroid at lists.ximian.com
Cc: Asmaa Mohamed Roushdy
Subject: Re: [mono-android] getIntent().getExtras()
2011/3/8 Asmaa Mohamed Roushdy <asmaa at victorylink.com>
In java code ( Bundle extras = getIntent().getExtras(); )
What equivalent in C#
protected override void OnCreate(Bundle bundle)
{
Intent intent = Intent;
string action = intent.GetStringExtra("Action");
string dbName = intent.GetStringExtra("DatabaseName");
.....
Sincerely
Asmaa Mohamed Roushdy
Team Lead
Victory Finance <http://www.victoryfn.com/>
5 El Zohour st. 1st floor, Cairo 12311 Egypt
Phone: +2 02 37624480, Fax: +2 02 37624490
Mobile: +2 0144442156
_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110308/0cf6cbb0/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 181 bytes
Desc: image001.png
Url : http://lists.ximian.com/mailman/private/monodroid/attachments/20110308/0cf6cbb0/attachment-0001.png
More information about the Monodroid
mailing list