can not launch phone dialer from preferencescreen

by ehealth...@gmail.com » Mon, 13 Apr 2009 12:03:53 GMT


Sponsored Links
 I have a preference.xml, as following code:
<PreferenceScreen android:title="Work Phone"
                                android:summary="5081234567">
                                <intent 
android:action="android.intent.action.DIAL"
                                        android:data="tel:5081234567" />
                        </PreferenceScreen>
When I click, it does not show phone dialer. I also copy apidemo code
to my app:
<PreferenceScreen android:summary="test"
                                android:title="test">
                                <intent
                                        
android:action="android.intent.action.VIEW" android:data="http://
www.google.com" />
                        </PreferenceScreen>

It does not work either. But it works on apidemo app.
I add permission call_phone to manifest.xml, don't know why it does
not work in my app.

Please help.

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~



can not launch phone dialer from preferencescreen

by ehealth...@gmail.com » Mon, 13 Apr 2009 12:03:54 GMT


 I have a preference.xml, as following code:
<PreferenceScreen android:title="Work Phone"
                                android:summary="5081234567">
                                <intent 
android:action="android.intent.action.DIAL"
                                        android:data="tel:5081234567" />
                        </PreferenceScreen>
When I click, it does not show phone dialer. I also copy apidemo code
to my app:
<PreferenceScreen android:summary="test"
                                android:title="test">
                                <intent
                                        
android:action="android.intent.action.VIEW" android:data="http://
www.google.com" />
                        </PreferenceScreen>

It does not work either. But it works on apidemo app.
I add permission call_phone to manifest.xml, don't know why it does
not work in my app.

Please help.

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Java Application and Native Library Integration

Native code is not currently supported for third party apps.  If this is
something you are interested, you might want to follow the android-ndk
group.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

2. Java Application and Native Library Integration

Hi All,

I have developed bluetooth application where native library will be
initiated by Java application (using JNI wrapper).
JNI will call the entry function of the native library and then it
will create Pthread to for scanning the device. Once Scanning is over,
i will get the callback which i registered during the entry function
of the native lib (called by app).

But i havent received the callback, but if i run the same native
library in the shell (executable from the shell terminal) it is
working fine.

Can any one help me, if there is any specific architecture needs to
follow while developing Java application based on native lib?

Thanks in Advance.

Thanks & Regards,
SCS

--~--~---------~--~----~------------~-------~--~----~

3. How to use AutoCompleteTextView with SimpleCursorAdapter

4. How to determine when a ScrollView has reached the bottom

5. why it always complain execve("/system/bin/alsamixer", ["alsamixer"], [/* 10 vars */]) = -1 ENOENT (No such file or directory) Options

6. Problem with Mediaplayer onBufferingupdateListener - onBufferingupdate() not giving percent for "rtsp" links

7. ADP1 shipping time to Portland, OR by FeDex Ground?