Hi,

Thank you very much to let me know clearly.
I tired to use your code snippet, but counldn't get sure.

Another question here,
If I use below code
--------
String a = new String("test");
String b = a;

b = null;

--------
In this case,
the variable 'a' still allocated? Am I right? As long as I keep
original variable?

On Aug 31, 1:51 pm, Damien Cooke <[email protected]> wrote:
> Hi Build Account,
>
> Java, the language that Android is programmed in, is garbage collected.  So 
> all you need to do is let the run time know you are finished with the object 
> you created.
>
> for example:
>
>         //create the object
>         String language = new String("Java");
>
>         //use the Object
>         Log.i("TEST", "Language used is: "+language);
>
>         //destroy the object
>         language = null;
>
> regards
> Damien
>
> On 31/08/2011, at 1:14 AM, Build account wrote:
>
>
>
> > Hello all.
>
> > I'm looking for explictic method to erase object from memory space
> > wich allocated by 'new' keyword.
>
> > But the syntax "delete object;" telling me an error that "delete
> > cannot be resolved".
>
> > How can I do? I don't believe there is no such kind of 'delete'
> > method..
>
> > Please advice me.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to