[android-developers] Re: Get E-164 format of contacts in Android API less than 16

2014-05-15 Thread Vijay
Hi, Did you find a solution to this issue ? I am stuck in the same situation. On Wednesday, December 4, 2013 9:48:13 AM UTC-8, Rahul Shukla wrote: > > I retrieve the list of contact numbers from the phone using the following > code: > > Cursor c = > getContentResolver().query(ContactsContract

[android-developers] Re: position value in getView seems too big

2014-05-15 Thread Streets Of Boston
There is no method 'getView' on a ListView class. And i expect i wouldn't return a number However, you do define a *static *field called *listItems*. Do you update the *listItems *field directly without notifying the your *BaseAdapter*? If so, this could be the problem. Notify the *BaseAdap

[android-developers] position value in getView seems too big

2014-05-15 Thread plnelson
I'm getting a crash in my adapter's *getView()* routine because it's being called with a position value of 6 and my datasource only has 6 items in it. So I assumed that the position parameter should be in a range of [0]-[5]? What determines the range of values in *getView(*)'s position paramete

Re: [android-developers] Use attrs or dimens

2014-05-15 Thread TreKing
On Thu, May 15, 2014 at 11:49 AM, dashman wrote: > I think both accomplish similar end goal right? I suppose you *could* do it with a style like that, but you shouldn't. That's the purpose of dimens - to declare units of measurement that can vary across different device configurations. The pur

Re: [android-developers] Use attrs or dimens

2014-05-15 Thread dashman
I can do a custom app specific padding 16dp or 16dp I think both accomplish similar end goal right? i.e. not hard-coding the number in the layout file. My question was - which method is preferred. Thanks. -- You received this message because you are

Re: [android-developers] Use attrs or dimens

2014-05-15 Thread TreKing
On Thu, May 15, 2014 at 7:24 AM, dashman wrote: > Which one would be preferred? dimens. I'm not sure how you'd even use attributes in this way. - TreKing

[android-developers] Use attrs or dimens

2014-05-15 Thread dashman
I'm trying to design my app for different size screens. When setting view paddings - i'd like to set the dimension based on screen size. I think I have 2 options. use dimens or custom attributes. Which one would be preferred? -- You received this message because you are subscribed to the Goo

[android-developers] Order of intents delivery

2014-05-15 Thread Durgadoss Ramanathan
Hi, I have a Service from which I send an intent twice like below. I have only one receiver that receives and processes this intent. mContext.sendBroadcast(intent); ...Do some Ops... ...pack different data into intent... mContext.sendBroadcast(intent); Does android guarantee that the first inte