Are you sure that's the problem? Is there really another class in the
SDK with the same name for both the interface and for the constant you
are using? That seems highly unlikely.

I think the issue would be having those in a different package since
your Y is package-private. You'd probably want to label it as
protected in your case.

On Mar 24, 11:39 am, vishal <[EMAIL PROTECTED]> wrote:
> dan,
>
> Thank you very much for your concern... But i got the reason of my
> problem. My interface name was similar to some other class existed in
> android SDK.
>
> Thanks n cheers
> Vishal
>
> On Mar 24, 11:14 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > 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