[android-developers] Re: Best way to populate ListView on runtime.

2010-08-12 Thread Warrior
neone there? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more opt

[android-developers] Re: Best way to populate ListView on runtime.

2010-08-12 Thread Warrior
wrote: > On the line: > lv = (ListView) findViewById(R.id.list); > > You are trying to get a handle on a ListView that does not exist in > the XML that you are showing. > > On Aug 12, 1:34 pm, Warrior wrote: > > > can anyone tell me whats wrong or suggest the best

[android-developers] Re: Best way to populate ListView on runtime.

2010-08-12 Thread Warrior
anyone? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options,

[android-developers] Best way to populate ListView on runtime.

2010-08-12 Thread Warrior
can anyone tell me whats wrong or suggest the best way to populate a ListView on runtime from one screen to another. Please see my code below 1. the list always ends up empty 2. I get a invalid resource error in the end. http://schemas.android.com/apk/res/ android" android:orientation="vertic

[android-developers] Re: ListView as part of a Activity

2010-08-06 Thread Warrior
(R.id.list); lv.setAdapter(new ArrayAdapter(HelloWorld.this, R.id.list, R.array.strarr)); lv.setTextFilterEnabled(true); } On Aug 6, 12:28 am, Nithin wrote: > Are you setting adapter for the listView. > > Nithin > > On Aug 6, 12:35 am, Warrior wrote: > > >

[android-developers] ListView as part of a Activity

2010-08-05 Thread Warrior
Hi am trying to add a List view as below. But the list never appears. http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > What am I doing wrong? -- You received this message b

[android-developers] Android: Draw a scalable Rectangle

2010-02-08 Thread warrior
Hi All, Can anybody help me to draw a scalable rectangle around a bitmap And such that 1) The rectangle should scale based on the size of my bitmap 2) The colour of my rectangle should change on my input Any help would be appreciated Thank you -- You recei

[android-developers] LIST VIEW

2010-02-08 Thread warrior
LIST VIEW 1) Consider i have 7 items in a list view (and each item in a list has in turn has many views like a image,and text views). 2) Now when i use setListadapter() all the items in the list are displayed in a same fashion. Now my ques is can i display each item in the List differen

[android-developers] Re: How to Change the Android APN Settings Programmetically ??.

2010-01-26 Thread Silent Warrior
Hi Murali, I was able to read and add APN settings programetically using a content resolver as follows : NOTE : This code is written inside a "onCreate()" method of a class that extends an Activity. [CODE] @Override protected void onCreate(Bundle savedInstanceState) {

[android-developers] Can we Change APN settings programmatically?

2010-01-22 Thread Silent Warrior
I've found out that we can bring up a UI in which we can show the APN settings of the phone by using the following code inside a class that extends an activity : -- Intent intent = new Intent(Settings.ACTION_APN_SETTINGS); startActivity(intent); -- But I'm still searching to find out is there a