Try adding the ViewRSS activity to your AndroidManifest.xml file. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 18, 5:09 am, janir4 <[email protected]> wrote: > Hello again! > > I'm missing something here; i'm not quite sure what... I'm trying to > open another window from same application when the user click on a > list item. Some source code: > > // Override on listitem; in MessageList class > �...@override > protected void onListItemClick(ListView l, View v, int position, > long id) { > super.onListItemClick(l, v, position, id); > > Intent i = new Intent(this,test.info.ViewRSS.class); > this.startActivity(i); > > } > > // The xml for viewRSS: > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent"> > <Button android:id ="@+id/buttonTestView" > android:text="Test" > android:layout_width="160dip" > android:layout_height="20dip" > /> > </LinearLayout> > > // Class ViewRSS > > public class ViewRSS extends Activity { > > @Override > public void onCreate(Bundle icicle) { > super.onCreate(icicle); > > setContentView(R.layout.viewrss); > } > > } > > // The manifest file > <?xml version="1.0" encoding="utf-8"?> > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > package="test.info" > android:versionCode="1" > android:versionName="1.0"> > <application android:icon="@drawable/icon" android:label="@string/ > app_name"> > <activity android:name=".MessageList" > android:label="@string/app_name"> > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > <action android:name="android.intent.action.VIEW" /> > <category > android:name="android.intent.category.LAUNCHER" /> > </intent-filter> > </activity> > </application> > <uses-sdk android:minSdkVersion="2" /> > <uses-permission android:name="android.permission.INTERNET" /> > </manifest> > > Any ideas; anyone? If i instead open an Intent for a url with the same > code; it opens the browser OK > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

