Click here to Skip to main content
15,888,802 members
Home / Discussions / Android
   

Android

 
GeneralRe: Raw cannot be resolved in Eclipse Juno Pin
Member 116612166-May-15 23:16
Member 116612166-May-15 23:16 
GeneralRe: Raw cannot be resolved in Eclipse Juno Pin
Richard MacCutchan7-May-15 1:49
mveRichard MacCutchan7-May-15 1:49 
AnswerRe: Raw cannot be resolved in Eclipse Juno Pin
User 17164927-May-15 1:36
professionalUser 17164927-May-15 1:36 
GeneralRe: Raw cannot be resolved in Eclipse Juno Pin
Richard MacCutchan7-May-15 1:51
mveRichard MacCutchan7-May-15 1:51 
GeneralRe: Raw cannot be resolved in Eclipse Juno Pin
User 17164927-May-15 1:56
professionalUser 17164927-May-15 1:56 
GeneralRe: Raw cannot be resolved in Eclipse Juno Pin
Member 116612167-May-15 12:39
Member 116612167-May-15 12:39 
SuggestionRe: Raw cannot be resolved in Eclipse Juno Pin
David Crow7-May-15 5:00
David Crow7-May-15 5:00 
GeneralRe: Raw cannot be resolved in Eclipse Juno Pin
Member 1166121616-May-15 10:05
Member 1166121616-May-15 10:05 
Thank you very much sir i have switched IDE's over to Eclipse Indigo and have same error. Its just the raw file only can you please help me resolve this error? Below is the code maybe you can show me where I went wrong seems like every ide I have this only error. Thank you for your input and can you please help me get past this.
package com.scseriestest;

Java
import android.app.Activity;
import android.os.Bundle;
import android.media.MediaPlayer;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ScSeriesTest extends Activity implements MediaPlayer.OnCompletionListener { 

	Button mPlay;
    MediaPlayer mPlayer;

    <@Override />
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        mPlay = new Button(this);
        mPlay.setText("Play Sound");
        mPlay.setOnClickListener(playListener);
        
        setContentView(R.layout.activity_main);
    }
        
        <@Override />
        public void onDestroy() {
            super.onDestroy();
            if(mPlayer != null) {
                mPlayer.release();
            }
        }

        private View.OnClickListener playListener = new View.OnClickListener() {
        <@Override />
            public void onClick(View v) {
                if(mPlayer == null) {
                    try {
                    mPlayer = MediaPlayer.create(ScSeriesTest.this, R.raw.scs);
                    mPlayer.start();
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                } else {
                    mPlayer.stop();
                    mPlayer.release();
                    mPlayer = null;
                }
            }
        };

   
	<@Override />
	public void onCompletion(MediaPlayer mp) {
		// TODO Auto-generated method stub
		mPlayer.release();
		mPlayer = null;
	}
}

Next Main XML ( hand coded this in notepad first then pasted)
XML
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:orientation="vertical"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent">
<TextView
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:layout_gravity="center_horizontal"
   android:text="Now Playing..."
/>

<VideoView
    android:id="@+id/videoView1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

<ImageView
  android:id="@+id/coverImage"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:scaleType="centerInside"
/>
</LinearLayout>

Android Manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.scseriestest"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="22" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".ScSeriesTest"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>


modified 17-May-15 3:06am.

GeneralRe: Raw cannot be resolved in Eclipse Juno Pin
User 171649227-May-15 7:00
professionalUser 171649227-May-15 7:00 
QuestionCode for screen touch input in android Pin
Hitesh Goel28-Apr-15 8:26
Hitesh Goel28-Apr-15 8:26 
AnswerRe: Code for screen touch input in android Pin
Sascha Lefèvre28-Apr-15 8:30
professionalSascha Lefèvre28-Apr-15 8:30 
GeneralRe: Code for screen touch input in android Pin
Member 117320901-Jun-15 0:07
Member 117320901-Jun-15 0:07 
AnswerRe: Code for screen touch input in android Pin
David Crow2-May-15 16:50
David Crow2-May-15 16:50 
AnswerRe: Code for screen touch input in android Pin
Omarkkk4-May-15 2:22
Omarkkk4-May-15 2:22 
GeneralRe: Code for screen touch input in android Pin
Hitesh Goel4-May-15 8:29
Hitesh Goel4-May-15 8:29 
AnswerRe: Code for screen touch input in android Pin
Richard MacCutchan4-May-15 21:16
mveRichard MacCutchan4-May-15 21:16 
JokeRe: Code for screen touch input in android Pin
Peter_in_278030-May-15 22:29
professionalPeter_in_278030-May-15 22:29 
GeneralRe: Code for screen touch input in android Pin
Richard MacCutchan30-May-15 22:31
mveRichard MacCutchan30-May-15 22:31 
Questionhow to develop app to convert pdf to image file ? Pin
Member 1114560022-Apr-15 0:09
Member 1114560022-Apr-15 0:09 
AnswerRe: how to develop app to convert pdf to image file ? Pin
Richard MacCutchan22-Apr-15 0:58
mveRichard MacCutchan22-Apr-15 0:58 
GeneralRe: how to develop app to convert pdf to image file ? Pin
Ashley33317-May-15 4:50
Ashley33317-May-15 4:50 
QuestionCatch not working, why? Pin
Crazy Joe Devola18-Apr-15 0:49
Crazy Joe Devola18-Apr-15 0:49 
AnswerRe: Catch not working, why? Pin
Crazy Joe Devola18-Apr-15 0:57
Crazy Joe Devola18-Apr-15 0:57 
AnswerRe: Catch not working, why? Pin
Awesome Sohel29-Apr-15 22:55
Awesome Sohel29-Apr-15 22:55 
GeneralRe: Catch not working, why? Pin
Awesome Sohel29-Apr-15 22:58
Awesome Sohel29-Apr-15 22:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.