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. WebView and Button in layout, only one of them can be clicked.

My LinearLayout has a button and a WebView. The problem is that only
the first one in layout can be clicked, the other is not. If I put
WebView first into the layout, the button is not clickable. If put
button in the layout first, then WebView is not clickable.

Is there a setting to enable this?

Thanks,
Kevin
--~--~---------~--~----~------------~-------~--~----~

2. pictures and buttons

Hi

Does anybody knows how can I put a Bitmap on top of a button, but
without taking the whole surface?

at the moment, what I am doing is:


BitmapDrawable bd=new BitmapDrawable(myBitmap);
Button myButton.setBackgroundDrawable(bd);

and the picture occupies the whole button... is there any way to set
up some margins?

Thanks a lot
--~--~---------~--~----~------------~-------~--~----~

3. Android Market - When can all of Europe access paid apps ?

4. Picture supported in Android

5. Is there a way to drop a collection of apps into a folder on the homepage programmatically?

6. Encrypting application data file that is bundled with apk !

7. Building Secure Android Applications