Syntax error: Unterminated quoted string

by Daniel Mack » Fri, 20 May 2011 09:30:35 GMT


Sponsored Links
 I'm following the basic instructions for setting up an Android
application with Eclipse and just after creating a new project,
without modifying any sources, I get the following error when I try to
run it in the emulator:

[2011-05-20 00:02:13 - bla] Device API version is 10 (Android 2.3.3)
[2011-05-20 00:02:13 - bla] Uploading bla.apk onto device
'emulator-5554'
[2011-05-20 00:02:13 - bla] Installing bla.apk...
[2011-05-20 00:02:13 - bla] Success!
[2011-05-20 00:02:13 - bla] Starting activity com.bla.bla.bla on
device emulator-5554
[2011-05-20 00:02:13 - bla] ActivityManager: am: 1: Syntax error:
Unterminated quoted string

I fail to see any problem in any of the sources, and my attempts to
find that unterminated string anywhere in the generated sources have
failed so far. This happens to me with the following version:

Eclipse Eclipse IDE for Java Developers
Version: Helios Service Release 2
Build id: 20110218-0911

SDK Platform Android 2.3.3, API 10, revision 1
Android SDK Tools, revision 11

Mac OS X 10.6.7

Can anyone explain that error? If you need more information, please
let me know.

And please Cc: my on answers.

Thanks,
Daniel

-- 



Re: Syntax error: Unterminated quoted string

by DanH » Fri, 20 May 2011 10:06:56 GMT


 Did you, perhaps, put a quote symbol into one of the configuration
fields when you were setting things up?




-- 


Sponsored Links


Re: Syntax error: Unterminated quoted string

by Brill Pappin » Fri, 20 May 2011 12:17:37 GMT


 What it means is that the runtime (not the compiler this time) thinks it has 
found a string that's not complete (which I'm sure you already surmised).

The fact that its at runtime means that there is nothing obvious in your 
code itself, or the compiler would have caught it.
I've seen something similar to that caused by an encoding problem in some 
file (i'd check the XML files). Essentially there was to different charsets 
in a single file or a unicode char not expected etc... this can happen if 
you copy and paste content from one place to another.

Note: I don't *know* thats what the problem is, just that I've seen 
something in the past that makes my think you might want to check for that 
kind of problem.

Finding it is harder... but if you can load your file in an basic editor 
that doesn't understand unicode, you should see it right away.

-- 



Re: Syntax error: Unterminated quoted string

by Brill Pappin » Fri, 20 May 2011 12:19:25 GMT


 adding a quote symbol in the XML might cause it, although I'm surprised that 
the editor doesn't escape things as needed :)


-- 



Re: Syntax error: Unterminated quoted string

by Daniel Mack » Fri, 20 May 2011 14:01:05 GMT


 


Well, as I said, all the code is auto-created by Eclipse (and the
Android plugin), and I can't see anything that is syntactically wrong
with it. FWIW, I uploaded the package, so you can have a look at it:
 http://zonque.org/android-bla.zip 

Thanks for your help.

Daniel

-- 



Re: Re: Syntax error: Unterminated quoted string

by Dianne Hackborn » Fri, 20 May 2011 15:09:13 GMT


 "am" is the shell command that is run to launch an application.  So a bad
character got in that command line somehow...  though I'm not sure how that
could be, I think the main thing that is used there that comes from the app
at all is the manifest package name.








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

-- 



Re: Syntax error: Unterminated quoted string

by Daniel Mack » Fri, 20 May 2011 17:11:58 GMT


 


I can't find that binary, otherwise I would debug and wrap it and dump
the arguments it has to deal with. Any hint where this binary is
located? Any other debugging options I can possibly enable to nail
this down?


As you can see from the package I uploaded, the AndroidManifest.xml
seems to be alright.

Thanks,
Daniel





-- 



Other Threads

1. ping works but browser failed in cupcake

The GPRS over PPP in my board can work. I can ping website such as
www.baidu.com in the shell. But when I open browser and connect the
same website, the browser will report "The server failed to
communicate. Try again later.".

The ping result:
[r...@~]#ping www.a.shifen.com (119.75.213.51) 56(84) bytes of data.
64 bytes from 119.75.213.51: icmp_seq=1 ttl=51 time=786 ms
64 bytes from 119.75.213.51: icmp_seq=2 ttl=51 time=537 ms
64 bytes from 119.75.213.51: icmp_seq=3 ttl=51 time=351 ms

What is wrong with my enviorment?

Any help will be appreciated.

Attached is my result of getprop:
[r...@~]## [ro.secure]: [0]
[ro.allow.mock.location]: [1]
[ro.debuggable]: [1]
[persist.service.adb.enable]: [1]
[ro.factorytest]: [0]
[ro.serialno]: []
[ro.bootmode]: [unknown]
[ro.baseband]: [unknown]
[ro.carrier]: [unknown]
[ro.bootloader]: [unknown]
[ro.hardware]: [marvell]
[ro.revision]: [0]
[ro.build.id]: [CUPCAKE]
[ro.build.display.id]: [generic-eng 1.5 CUPCAKE eng.edwardlee.20090502.091712 te
st-keys]
[ro.build.version.incremental]: [eng.edwardlee.20090502.091712]
[ro.build.version.sdk]: [3]
[ro.build.version.release]: [1.5]
[ro.build.date]: [Sat May  2 10:38:13 PDT 2009]
[ro.build.date.utc]: [1241285893]
[ro.build.type]: [eng]
[ro.build.user]: [edwardlee]
[ro.build.host]: [edwardlee-desktop]
[ro.build.tags]: [test-keys]
[ro.product.model]: [generic]
[ro.product.brand]: [generic]
[ro.product.name]: [generic]
[ro.product.device]: [generic]
[ro.product.board]: []
[ro.product.manufacturer]: [unknown]
[ro.product.locale.language]: []
[ro.product.locale.region]: []
[ro.board.platform]: []
[ro.build.product]: [generic]
[ro.build.description]: [generic-eng 1.5 CUPCAKE eng.edwardlee.20090502.091712 t
est-keys]
[ro.build.fingerprint]: [generic/generic/generic/:1.5/CUPCAKE/eng.edwardlee.2009
0502.091712:eng/test-keys]
[rild.libpath]: [/system/lib/libreference-ril.so]
[rild.libargs]: [-d /dev/ttyS2]
[ro.radio.use-ppp]: [yes]
[ro.sf.lcd_density]: [128]
[ro.config.notification_sound]: [F1_New_SMS.ogg]
[ro.kernel.android.checkjni]: [1]
[ro.config.sync]: [yes]
[net.bt.name]: [Android]
[net.change]: [net.dnschange]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[ro.FOREGROUND_APP_ADJ]: [0]
[ro.VISIBLE_APP_ADJ]: [1]
[ro.SECONDARY_SERVER_ADJ]: [2]
[ro.HOME_APP_ADJ]: [4]
[ro.HIDDEN_APP_MIN_ADJ]: [7]
[ro.CONTENT_PROVIDER_ADJ]: [14]
[ro.EMPTY_APP_ADJ]: [15]
[ro.FOREGROUND_APP_MEM]: [1536]
[ro.VISIBLE_APP_MEM]: [2048]
[ro.SECONDARY_SERVER_MEM]: [4096]
[ro.HOME_APP_MEM]: [4096]
[ro.HIDDEN_APP_MEM]: [5120]
[ro.CONTENT_PROVIDER_MEM]: [5632]
[ro.EMPTY_APP_MEM]: [6144]
[net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208]
[net.tcp.buffersize.wifi]: [4095,87380,110208,4096,16384,110208]
[net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208]
[net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040]
[net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680]
[keyguard.no_require_sim]: [1]
[ro.config.nocheckin]: [yes]
[init.svc.console]: [running]
[init.svc.servicemanager]: [running]
[init.svc.vold]: [running]
[init.svc.de{*filter*}d]: [running]
[init.svc.mux]: [running]
[init.svc.ril-daemon]: [running]
[init.svc.zygote]: [running]
[init.svc.media]: [running]
[init.svc.dbus]: [running]
[init.svc.installd]: [running]
[init.svc.adbd]: [running]
[hw.keyboards.65536.devname]: [pxa27x-keypad]
[sys.settings_secure_version]: [2]
[dev.bootcomplete]: [1]
[sys.settings_system_version]: [7]
[gsm.version.ril-impl]: [android reference-ril 1.0]
[gsm.sim.operator.numeric]: [46001]
[gsm.sim.operator.alpha]: [UNICOM   ]
[gsm.sim.operator.iso-country]: [cn]
[gsm.sim.state]: [READY]
[gsm.operator.alpha]: []
[gsm.operator.numeric]: []
[gsm.operator.iso-country]: []
[gsm.operator.isroaming]: [false]
[net.gprs.http-proxy]: []
[net.dnschange]: [1]
[net.gprs.ppp-exit]: []
[init.svc.pppd_gprs]: [running]
[net.interfaces.defaultroute]: [gprs]
[net.ppp0.dns1]: [211.95.1.97]
[net.ppp0.dns2]: [211.90.216.129]
[net.ppp0.local-ip]: [172.18.15.52]
[net.ppp0.remote-ip]: [192.200.1.21]
[net.gprs.dns1]: [211.95.1.97]
[net.gprs.dns2]: [211.90.216.129]
[net.dns1]: [211.95.1.97]
[net.dns2]: [211.90.216.129]
[gsm.defaultpdpcontext.active]: [true]
[net.dns1.858]: []
[net.dns2.858]: []
[net.dns3]: [211.95.1.97]
[net.dns4]: [211.90.216.129]

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website:  http://www.***.com/ 
-~----------~----~----~----~------~----~------~--~---

2. Call path flow

Hi,

I am a newbie to Android and Telephony System.
I am trying to understand the complete call path for placing a voice
call in Android Telephony System.
I have followed the code flow till the AT command for call is formed
and send over a device socket/device node of the serial port. I am
interested to know, who receives this AT command and how it get
processed further from on?

Any comments/pointers in this direction would be greatly appreciated.

Thanks!
Peace

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

3. MediaStore.EXTRA_OUTPUT

4. get current location after pressing button

5. OMG, this 325 character limit !

6. How to listen to " Back" key

7. key code constant for question mark?