What is Unterminated quoted string?

by sasan_f2...@fouladirad.com » Tue, 08 Mar 2011 05:41:19 GMT


Sponsored Links
 his is my simple code for an app that I'm making but when I try to
run it with the emulator this error shows up:

ActivityManager: am: 1: Syntax error: Unterminated quoted string


my code:
package com.android.SoccerAndroidProject;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;


public class MainActivity extends Activity implements OnClickListener
{
private static final String TAG = "Game";

//creating the names of the parts
Button onepointButton,twopointsButton,
threepointsButton,resetButton,
onepointButton2, twopointsButton2, threepointsButton2;

EditText homeButton,awayButton;

TextView textScoreHome,textScoreAway,textScoreBetween;
int score1 = 0;
int score2 = 0;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Log.d(TAG, "onCreate started");

// I now have all my UI in the Java memory
onepointButton = (Button)findViewById(R.id.onepointButton);
onepointButton2 = (Button)findViewById(R.id.onepointButton2);
twopointsButton = (Button)findViewById(R.id.twopointsButton);
twopointsButton2 = (Button)findViewById(R.id.twopointsButton2);
threepointsButton = (Button)findViewById(R.id.threepointsButton);
threepointsButton2 = (Button)findViewById(R.id.threepointsButton2);
resetButton = (Button)findViewById(R.id.resetButton);

homeButton = (EditText)findViewById(R.id.homeButton);
awayButton = (EditText)findViewById(R.id.awayButton);

textScoreHome = (TextView)findViewById(R.id.textScoreHome);
textScoreAway = (TextView)findViewById(R.id.textScoreAway);
textScoreBetween = (TextView)findViewById(R.id.textScoreBetween);

// Initialize text views
textScoreHome.setText(String.valueOf(score1));

textScoreAway.setText(String.valueOf(score2));

textScoreBetween.setText("");

// Define button listeners
resetButton.setOnClickListener(this);
onepointButton.setOnClickListener(this);
onepointButton2.setOnClickListener(this);
twopointsButton.setOnClickListener(this);
twopointsButton2.setOnClickListener(this);
threepointsButton.setOnClickListener(this);
threepointsButton2.setOnClickListener(this);

Log.d(TAG, "onCreate done");

}

public void onClick(View src) {
switch(src.getId()) {
case R.id.resetButton:
score1=0;
score2=0;
textScoreHome.setText(String.valueOf(score1));
textScoreAway.setText(String.valueOf(score2));
break;
case R.id.onepointButton:
score1++;
textScoreHome.setText(String.valueOf(score1));
break;
case R.id.onepointButton2:
score2++;
textScoreAway.setText(String.valueOf(score2));



Re: What is Unterminated quoted string?

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


 Hey,

On 4 Mrz., 02:14, "sasan_f2...@fouladirad.com"



I'm facing exactly the same problem under OS X 10.6, using Eclipse and
the Android SDK for 2.3.3 (version 10).

Did you find any solution for this issue yet? It seems to be entirely
unrelated to the actual code, though. Everything is freshly installed
and up-to-date.


Daniel

-- 


Sponsored Links


Other Threads

1. pmem/ashmem file descriptor by IPC/Binder

Hi,
I have a question about the file descriptor created by pmem or ashmem.
It's said the file descriptor can be transfered to other processes by
IPC/binder so the memory can be shared. But I wonder how the file
descriptor can be used by another process if it's not the case when a
child process inherits fd sets from its parent.

Looking at the code of init_workspace() (in system\core\init
\property_service.c),system_properties memory region is created by
init process and I understand that's how those system property
functions (M:\work\android_beagle\bionic\libc\bionic
\system_properties.c) work since all processes are child of init. But
how about other cases like the frame buffer heap created by opencore
for video rendering? They are not in same process so how does it work?

Hope anybody can guide me on this. Thanks.


-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Motorola MOTOROI

Wah...racoen baru... ampun!!
*tutup mata pake tangan*

regards,
J. Rianto




Nambahin produk android, biar user makin bingung ^_^

   - 3.7-inch WVGA 16:9 touch screen (480 x 854 resolution)
   - 8 MP camera with Xenon flash
   - HD video recording (720p)
   - HDMI interface
   - TV tuner (T-DMB)
   - 8GB internal memory (microSD card support up to 32GB)
   - Android 2.0 OS

Release date:
- Februari (South Korea)
- March (US)

-vanda-

--
--------------------
"Indonesian Android Community [id-android]"

Join,  visit the following page:

3. How to enable/add the log in "\external\fsck_msdos" to appear in logcat?

4. very urgent - : Text on GLSurfaceView

5. passing arbitrary data types to a sub activity

6. Phone.apk crashes due to failure loading resource dtmf_twelve_key_dialer.xml

7. Build time endian issue