i am getting null pointer exceptions when i am trying to run this
method.
it gets errors at the title.setText(currenttrack.getTitle()); line
because title was set as null. i dont see what happend, and when i set
content view it ruins the popup things behind it. what can i go about
doing?



public void popuptrack(View v, SeeqPodTrack currenttrack){
                v.setId(R.layout.trackinfo);

                TextView title = (TextView)findViewById(R.id.Title);
                title.setText(currenttrack.getTitle());
                TextView creator = (TextView)findViewById(R.id.Creator);
                creator.setText(currenttrack.getCreator());
                TextView album = (TextView)findViewById(R.id.Album);
                album.setText(currenttrack.getAlbum());
                TextView genre = (TextView)findViewById(R.id.Genre);
                genre.setText(currenttrack.getGenre());
                TextView location = (TextView)findViewById(R.id.Location);
                location.setText(currenttrack.getLocation());


                PopupWindow pw = new
PopupWindow(getViewInflate().inflate(R.layout.trackinfo, null, null));
                pw.setHeight(320);
                pw.setWidth(200);
                pw.setBackground(v.getBackground());
                pw.setFocusable(false);
                pw.show(v);
                pw.update(0, 50, -1, -1);
    }
--~--~---------~--~----~------------~-------~--~----~
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