Adb shell escape character

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Adb shell escape character

Postby andtest » Mon May 04, 2009 10:11 pm


I'm trying to send this command to create a contact.
am start -a android.intent.action.INSERT -d 'content://contacts/people' -t '' -c 'android.intent.category.DEFAULT' -e 'name' 'Abc Xyz' -e 'phone' '1112223333'

This works fine if I just use one word for name, eg 'Abc'. If I have first and last names separated by a space(like above), Intent is successfully launching the Edit Contact screen but the name field is not updated with contact name.
Could anyone let me know if I have to use some special escape character/s for blank space.

Posts: 3
Joined: Fri Apr 17, 2009 1:33 am


Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 2 guests