>
> I mean to say, on emulator I am able to get the contact name. But on on my
> phone I am not able to get the contacts name. before this code I did this:
>
>                       String displayName = "?"
> after looking for contact name I did:
>                     msgDialog.setTitle("From : "+ displayName);
> the output is
>                    "From : ?"
> whereas on emulator I am getting the contact name.
>

If that is the case then it seems that you are getting an exception from
one of the statements in your try block... Try debugging to find out what
the problem is.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Apr 14, 2012 at 7:28 AM, Atif Farrukh <[email protected]> wrote:

> I mean to say, on emulator I am able to get the contact name. But on on my
> phone I am not able to get the contacts name. before this code I did this:
>
>                       String displayName = "?"
>
> after looking for contact name I did:
>
>                     msgDialog.setTitle("From : "+ displayName);
> the output is
>
>                    "From : ?"
>
> whereas on emulator I am getting the contact name.
>
> On Saturday, 14 April 2012 18:05:55 UTC+5, MagouyaWare wrote:
>>
>> The problem is, its working on emulator but not working on my mobile
>>> device
>>>
>> What exactly do you mean by "not working"?  Is it crashing?  Are you
>> getting an exception? Does your mobile device catch on fire? Does the code
>> cause your lights to turn on and off?
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/**magouyaware<http://sites.google.com/site/magouyaware>
>>
>>
>> On Sat, Apr 14, 2012 at 4:27 AM, Atif Farrukh <[email protected]>wrote:
>>
>>> The problem is, its working on emulator but not working on my mobile
>>> device
>>
>>
>>  --
> 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
>

-- 
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

Reply via email to