Perhaps, you can test the theory by invoking the sample Notepad
application that you are in control of.

Invoke the action view with the known uri for notes.

See then if it is a registration problem.

Satya

On Sat, Oct 11, 2008 at 10:29 AM, Satya Komatineni
<[EMAIL PROTECTED]> wrote:
> Yes that seemed to work:
>
> I found out the actual classname by looking at the debugger and
> knowing the classname for that activity
>
> so
>
> Intent intent = new Intent();
> intent.setComponent(new ComponentName(
>     "com.android.contacts"
>    ,"com.android.contacts.DialtactsContactsEntryActivity");
> intent.setFlags(....)
> startActivity(intent)
>
> However I don't think this is the right way to do it.
>
> what is puzzling is how come the contacts application hasn't
> registered as an activity for
>
> ACTION_VIEW
> content://contacts/
>
> May be I got the uri wrong!
>
> Any one!!
>
> Thanks
> Satya
>
>
> On Sat, Oct 11, 2008 at 10:22 AM, Satya Komatineni
> <[EMAIL PROTECTED]> wrote:
>> I suppose if one knows the explicit packagename and classname of the
>> activity that was launched from the main launcher then you could do it
>> that way.
>>
>> I have tried the following but android says it doesn't know any activitiy
>>
>> Intent intent = new Intent(Intent.ACTION_VIEW);
>> intent.setFlags(..new task..)
>> intent.setData(Uri.parse("content://contacts/"))
>> startActivity(intent);
>>
>> Gives me an exception ActivityNotFoundException.
>>
>> I am going to try and see if explicitly specifying the component
>> (classname) works
>>
>> I will keep you posted
>>
>> On Fri, Oct 10, 2008 at 5:20 AM, Abraham
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> HI All,
>>>
>>> I'm a newbie with Android.
>>>
>>> I would like to understand how I could launch the default Listview of
>>> contacts(similar to the behavior that you would observe on launching
>>> the contacts app from the main menu).
>>>
>>> Is this possible or do I have to create a similar activity in my
>>> application which resembles the Contacts List view?
>>>
>>> >>>
>>>
>>
>

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