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. nine patch image clipped along the borders

Hello,
I have a nine patch image. Everything works fine i.e.
draw9patch,selector etc
But when actually seeing in device, the border of the background looks
clipped from borders.
And this behaviour is random i.e. sometimes left border goes off,
sometime right,top etc
I tried reducing transparent  area along the actual image but nothing
helped.

-- 

2. Can we use our own ttf to pass cts?

Hi all,

I use my own ttf named DroidSans.ttf to run cts.
I can't pass some pacakges.(android.widget.cts.RelativeLayoutTest)
What's wrong with that?
My ttf is correct and I can see it changed successfully in my device.

Thanks

-- 

3. "Blank" Edit Text Problem

4. How to have 2 click listener on a group in expandableListView

5. CheckBox problem

6. http://code.google.com/p/android/issues/list really needs to be moderated

7. How to parse dynamic Json tag in Android