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. : Learn Free-Linux Internals Fundamentals from Industry Experts

Hello All,


Are you interested in learning fundamentals of Linux System/Kernel
Programming from Industry Experts?
Do you want to know where to start with learning path of Linux
Internals ?

If Yes, here is a foundation course which will totally free of cost
and which will give you real taste of System Oriented C and put you on
fast track of System Programming.

Course Content
Advance C module

Introduction to C standards
Declaration & Definitions in depth, Struct ,enums,typedefs, #define,
Precedence & Associativity.
Bitwise Arithmetic (with tricky programs)
Arrays & Pointer Arithmetic, Pointers for Multidimensional arrays,
Dynamic arrays, Function Pointers etc.
Unscrambling dynamic allocation, Implement malloc & free
Introduction to Lint, Libraries Linking & Loading, Dynamic linking,
Runtime System, O.S and a.out
Segments & Executables, Standard calling conventions, Activation
Records
X86 Memory Architecture & C
Debugging Memory Leaks, Segmentation Faults
Type Casting

Detail curriculum in PDF format can be found at:
http://www.conceptssys.com/SyllabusPdf/Adv%20C.pdf


Starting Date : February 07,2009
Duration         : 6 weeks (36 hrs)
Timings          : Saturday and Sunday

Venue :
Concepts Systems Educational Services
602-603, The Pentagon, Shahu College Road, Next to Pune-Satara Road,
Near Panchami Hotel, Parvati. Pune - 411009.

Registration: We encourage you to register at the earliest since there
are limited seats.

About Us:
Concepts Systems Educational Services is the leading educational
service provider in Systems arena. Concepts provides innovative
learning solutions offering best-of-the-breed technologies along with
best-in-class methodologies. Concepts makes every possible attempt to
ensure that professionals/students attendees gain the cutting edge of
technology that will help them to  win their future goals.

Many MNCs and leading IT Companies are already part of Concepts'
Clientele. High Quality and Creative training Solutions delivered by
experienced Systems Experts is the hallmark of Concepts Educational
Services division. For more information, please visit our website
www.conceptssys.com

If you have any queries feel free to call us on 020-2421 6888 /
9960638738 Or mail us at train...@conceptssys.com.
For on-site corporate trainings, do write us a mail at
i...@conceptssys.com


Thanks & Regards,
Team
Concepts Systems.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

2. H324M stack query

Hi,

Do H324M stack uses any external library for encoding and decoding of
ASN messages or its platform independent C code that comes along with
packetvideo VT stack code ?

How do i test video telephony new release code ? Is it possible to
test the same on emulator ? or the released code is tested on the
target already ? Is there any possibilty of emulate H324M terminals on
the emulator and test ?

Please clarify....

Regards
Girish
--~--~---------~--~----~------------~-------~--~----~

3. my application is trying to replace "Android System"

4. Killing a parent activity

5. How good to use intents with an application to communcate and modularise it

6. Specific Design significance of Attribute Name Spaces in AndroidManifest Files.

7. Sending Intent to specific Activity