Other variations in my onCreate that work:

Log.v(LOG_TAG, z.Y);

z test = new z();
Log.v(LOG_TAG, test.Y);

On Mar 24, 11:11 am, "Dan U." <[EMAIL PROTECTED]> wrote:
> Not sure what you have in your z class, but I have this:
>
>         public void print() {
>                 Log.v("SYSOUT", Y);
>         }
>
> which I call from an Activity in onCreate. It works fine.
>
> On Mar 24, 10:53 am, vishal <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > I created a interface to define the constants that i am using in my
> > application.
>
> > Say i have interface say x
>
> > public interface x{
>
> > String Y="y";
>
> > }
>
> > Now i am implementing this interface i some other class say z,
>
> > public class z implements x{
>
> > }
>
> > When i am trying to use the value of Y is it passing null. Please let
> > me know what are the possible cause for this. Please reply soon. As my
> > whole work is stuck...
>
> > The whole function and methods are working when i am running same
> > project without android..
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to