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. Problems changing the drawable on a Button

I'm working on a basic media player and am having problems changing
the drawable on the play pause button.  Here is the code I'm using:

Drawable draw = getResources().getDrawable(R.drawable.play);
playPauseBTN.setCompoundDrawablesWithIntrinsicBounds(draw, null, null,
null);

The code executes fine without any errors or exceptions. However, the
icon completely disappears from the button and I'm left with a narrow
empty button.   Any tips?

-- 

2. [WTI] Tampilan gmail 2.3

Google Perbaharui Fasilitas Gmail untuk Smartphone
Android<http://tabloidpulsa.co.id/news/48-news/986-google-perbaharui-fasilitas-gmail-untuk-smartphone-android>
 Jumat,
10 Desember 2010 14:59 | Hits: *328*


<http://tabloidpulsa.co.id/images/stories/Desember2010/12-09-10gmailandroid.jpg>

Sebagai pengembang sekaligus pemilik sistem operasi Android, Google
sepertinya tidak bosan-bosannya memberikan update penting untuk penikmat
sistem operasi besutannya itu. Nah, melalui update penting yang baru saja
dirilis ini pengguna ponsel Android akhirnya bisa mengirim email dari yang
sudah tersedia di Gmail yang ada pada desktop miliknya. Menariknya fasilitas
tersebut mencakup alamat non-Gmail juga.

Tak hanya itu, salah satu komponen penting seperti riority Inboxnantinya
akan mengidentifikasi pesan mana yang penting dengan memberi tanda pada
pesan tersebut, pilihan untuk meletakkan pesan di atas atau di bawah, serta
mengatur pemberitahuan (termasuk lewat dering ponsel) ketika email penting
datang.

Seperti dikutip PULSAonline via engadget, fasilitas baru ini akan hadir
untuk smartphone berplatform Android 2.3. Adapun bagi pengguna Android 2.2
dapat mendownload file update ini melalui Android Market.
Bagaimana, menarik bukan?

*(Ozi)*

*
*
*sumber :
http://tabloidpulsa.co.id/news/48-news/986-google-perbaharui-fasilitas-gmail-untuk-smartphone-android
*

-- 
Regard
Muh. Fitrah
Sent From Gmail web

-- 
===============
"

3. [WTI] Huawei Ideos X6 dan Ideos X5, Siap Jajal Pasar dengan Android Froyo

4. Need to play audio to the caller

5. Who has the Google Ion source?

6. how to use notifyDataSetChanged

7. Auto android:debuggable. Anybody got it working?