In the link you provided I see the Uri.parse() syntax.

On Saturday, March 30, 2013 4:09:03 PM UTC-4, Mateusz Matlengiewicz wrote:
>
> Hi,
>
> I'm new to Android app developement so forgive me if what I write is 
> untrue.
> I was looking throu the starting classes and in 
> http://developer.android.com/training/basics/intents/result.html#StartActivityI
>  found this line of code:
>
>
>     Intent pickContactIntent = new Intent(Intent.ACTION_PICK, new 
> Uri("content://contacts"));
>
> My Eclipse IDE is showing me an error with the Uri class, after some 
> searching I managed to get it working with 
>
>         Intent pickContactIntent = new Intent(Intent.ACTION_PICK, 
> Uri.parse("content://contacts"));
>
> Now my question is am I doing something wrong or is it really an error in the 
> tutorial?
>
> Sincerly, 
> MM
>
>
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to