0

I am using visual studio 2010 C# language and trying to send an object from one Android Activity to another, I have failed to store the object in some globally place via Global Configuration and also failed in using Serialization method

Some methods and function are not recognized and giving me : The type or namespace name 'extends' could not be found (are you missing a using directive or an assembly reference?)

I was following these articles

Global variable extend application class How to send an object from one Android Activity to another using Intents? http://savagelook.com/blog/android/android-extending-application-to-handle-global-configuration

if someone has another solution please provide to me with a demo source code or tutorial in C# for 2 methods:Serialization and using Global place, in order to achieve my target and send object from one activity to another in Adnroid c# language

Community
  • 1
  • 1
  • **extends** is a java key-word but not a c# one. are you trying to compile java sources with a c# compiler? – k3b May 31 '12 at 09:50
  • `extends` is a Java keyword and will not be recognized in C# where the equivalent is `:`. How does you setup for working with C# and Visual Studio look like? It is a quite unusual setup and certainly not recommended when you don't know much about Android development; then stay with Java and Eclipse. – Hauke Ingmar Schmidt May 31 '12 at 09:50

1 Answers1

0

There is no "extends" in .Net. The counterpart of .Net to the Java "extends" is ":".

For example (pseudo Java)

class A extends B

would be (pseudo C# as a .Net)

class A : B
Betaminos
  • 482
  • 4
  • 13