Autore Topic: recorder audio video e invio file via email  (Letto 1538 volte)

Offline riccardofarris

  • Utente junior
  • **
  • Post: 71
  • Respect: 0
    • Mostra profilo
  • Sistema operativo:
    windows7
recorder audio video e invio file via email
« il: 26 Aprile 2011, 18:25:01 CEST »
0
salve a tutti!!!sono un nuovo utente e sto muovendo i primi passi con android e sto incominciando a trovare un po di difficolta!devo creare un'applicazione che registri sia file audio che video permetta di eseguirli e in ultima istanza vorrei riuscire a inviarli tramite email.
per prima cosa ho fatto un'applicazione che registra ed esegue file audio video, i file audio sono ok mentre quando provo a registrare il video va in crash l'appl. e questo è il primo problema.
separatamente ho provato a fare un'app x inviare email ma va in crash e non so il perchè,qualcuno può aiutarmi!!!ora posto i 2 codici e i logcat relativi!!!grazie a tutti !!!!

audiorecorder:
Codice (Java): [Seleziona]
package com.ricky.workspace;
/*
 * The application needs to have the permission to write to external storage
 * if the output file is written to the external storage, and also the
 * permission to record audio. These permissions must be set in the
 * application's AndroidManifest.xml file, with something like:
 *
 * <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 * <uses-permission android:name="android.permission.RECORD_AUDIO" />
 *
 */


import android.app.Activity;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;
import android.os.Bundle;
import android.os.Environment;
import android.view.ViewGroup;
import android.widget.Button;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.content.Context;
import android.util.Log;
import android.media.MediaRecorder;
import android.media.MediaPlayer;

import java.io.File;
import java.io.IOException;

import android.app.Activity;
import android.os.Bundle;

public class audiorecorder extends Activity {
    /** Called when the activity is first created. */
   private static final String LOG_TAG = "AudioRecordTest";
    private static String mFileName = null;
    private static String mFileVideoName = null;

    private RecordButton mRecordButton = null;
    private RecordVideoButton mRecordVideoButton = null;
    private PlayVideoButton   mPlayVideoButton = null;
    private MediaRecorder mRecorder = null;

    private PlayButton   mPlayButton = null;
    private MediaPlayer   mPlayer = null;

    private void onRecord(boolean start) {
        if (start) {
            startRecording();
        } else {
            stopRecording();
        }
    }

    private void onPlay(boolean start) {
        if (start) {
            startPlaying();
        } else {
            stopPlaying();
        }
    }

    private void startPlaying() {
        mPlayer = new MediaPlayer();
        try {
            mPlayer.setDataSource(mFileName);
            mPlayer.prepare();
            mPlayer.start();
        } catch (IOException e) {
            Log.e(LOG_TAG, "prepare() failed");
        }
    }

    private void stopPlaying() {
        mPlayer.release();
        mPlayer = null;
    }

    private void startRecording() {
       //File mediaFile = new File(mFileName);
        mRecorder = new MediaRecorder();
        mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
        mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
        mRecorder.setOutputFile(mFileName);
        mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

        try {
            mRecorder.prepare();
        } catch (IOException e) {
            Log.e(LOG_TAG, "prepare() failed");
        }

        mRecorder.start();
    }

    private void stopRecording() {
        mRecorder.stop();
        mRecorder.release();
        mRecorder = null;
    }

    class RecordButton extends Button {
        boolean mStartRecording = true;

        OnClickListener clicker = new OnClickListener() {
            public void onClick(View v) {
                onRecord(mStartRecording);
                if (mStartRecording) {
                    setText("Stop recording");
                } else {
                    setText("Start recording");
                }
                mStartRecording = !mStartRecording;
            }
        };

        public RecordButton(Context ctx) {
            super(ctx);
            setText("Start recording");
            setOnClickListener(clicker);
        }
    }

    class PlayButton extends Button {
        boolean mStartPlaying = true;

        OnClickListener clicker = new OnClickListener() {
            public void onClick(View v) {
                onPlay(mStartPlaying);
                if (mStartPlaying) {
                    setText("Stop playing");
                } else {
                    setText("Start playing");
                }
                mStartPlaying = !mStartPlaying;
            }
        };

        public PlayButton(Context ctx) {
            super(ctx);
            setText("Start playing");
            setOnClickListener(clicker);
        }
    }
   
   
    //record and play video
   
   
    class RecordVideoButton extends Button {
        boolean mStartRecording = true;

        OnClickListener clicker = new OnClickListener() {
            public void onClick(View v) {
                onRecordVideo(mStartRecording);
                if (mStartRecording) {
                    setText("Stop Video recording");
                } else {
                    setText("Start Video recording");
                }
                mStartRecording = !mStartRecording;
            }
        };

        public RecordVideoButton(Context ctx) {
            super(ctx);
            setText("Start Video recording");
            setOnClickListener(clicker);
        }
    }

    class PlayVideoButton extends Button {
        boolean mStartPlaying = true;

        OnClickListener clicker = new OnClickListener() {
            public void onClick(View v) {
                onPlayVideo(mStartPlaying);
                if (mStartPlaying) {
                    setText("Stop Video playing");
                } else {
                    setText("Start Video playing");
                }
                mStartPlaying = !mStartPlaying;
            }
        };

        public PlayVideoButton(Context ctx) {
            super(ctx);
            setText("Start Video playing");
            setOnClickListener(clicker);
        }
    }
   
    private void onRecordVideo(boolean start) {
        if (start) {
            startRecordingVideo();
        } else {
            stopRecordingVideo();
        }
    }

    private void onPlayVideo(boolean start) {
        if (start) {
            startPlayingVideo();
        } else {
            stopPlayingVideo();
        }
    }

    private void startPlayingVideo() {
        mPlayer = new MediaPlayer();
        try {
            mPlayer.setDataSource(mFileVideoName);
            mPlayer.prepare();
            mPlayer.start();
        } catch (IOException e) {
            Log.e(LOG_TAG, "prepare() failed");
        }
    }

    private void stopPlayingVideo() {
        mPlayer.release();
        mPlayer = null;
    }

    private void startRecordingVideo() {
       //File mediaFile = new File(mFileName);
        mRecorder = new MediaRecorder();
        mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
        mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
        mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
        mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
        mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);        
        mRecorder.setOutputFile(mFileVideoName);
       

        try {
            mRecorder.prepare();
        } catch (IOException e) {
            Log.e(LOG_TAG, "prepare() failed");
        }

        mRecorder.start();
    }

    private void stopRecordingVideo() {
        mRecorder.stop();
        mRecorder.release();
        mRecorder = null;
    }


    public audiorecorder() {
        mFileName = Environment.getExternalStorageDirectory().getAbsolutePath();
       
        mFileName += "/audiotestrecorder.3gp";
        mFileVideoName = Environment.getExternalStorageDirectory().getAbsolutePath();
     
        mFileVideoName += "/videotestrecorder.3gp";
       
    }

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        RelativeLayout mainLayout = new RelativeLayout(this);

        TableLayout tableLayout = new TableLayout(this);
       
      TableRow row1 = new TableRow(this);
      TableRow row2 = new TableRow(this);

 
       
        mRecordButton = new RecordButton(this);
       
        row1.addView(mRecordButton);

        mPlayButton = new PlayButton(this);
        row1.addView(mPlayButton);

        mRecordVideoButton = new RecordVideoButton(this);
        row2.addView(mRecordVideoButton);

            mPlayVideoButton = new PlayVideoButton(this);
            row2.addView(mPlayVideoButton);

            tableLayout.addView(row1);
            tableLayout.addView(row2);
            mainLayout.addView(tableLayout, new RelativeLayout.LayoutParams(
                 LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

        setContentView(mainLayout);
    }

    @Override
    public void onPause() {
        super.onPause();
        if (mRecorder != null) {
            mRecorder.release();
            mRecorder = null;
        }

        if (mPlayer != null) {
            mPlayer.release();
            mPlayer = null;
        }
    }
}
questo è il manifesto xml:

Codice (XML): [Seleziona]
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.ricky.workspace"
     android:versionCode="1"
     android:versionName="1.0">
     
      <ScrollView android:layout_height="fill_parent"
               android:layout_width="fill_parent">

             
               
                <LinearLayout android:orientation="vertical"
                       android:layout_height="fill_parent" android:layout_width="fill_parent">

                       
                       
                </LinearLayout>
        </ScrollView>


    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".audiorecorder"
                 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>
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.RECORD_AUDIO" />
  <uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera"/>
</manifest>
il file per l'invio email è:

Codice (Java): [Seleziona]
package com.ricky.workspace;

import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;

import com.ricky.R;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class provaEmail extends Activity {
    /** Called when the activity is first created. */
   
   public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);}
   
    public static void sendEmail(Context context, String emailTo, String emailCC,
        String subject, String emailText, List<String> filePaths){
       

    //need to "send multiple" to get more than one attachment
    final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);

    emailIntent.setType("plain/text");
    emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"riccardofarris@hotmail.com"});
    if(emailCC != null) emailIntent.putExtra(android.content.Intent.EXTRA_CC, new String[]{"ciao"});
    emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "ciao"    );
    emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "ciao");
   
//    startActivity(Intent.createChooser(emailIntent, "Invia email..."));  

   

   
   //has to be an ArrayList
   ArrayList<Uri> uris = new ArrayList<Uri>();

    //convert from paths to Android friendly Parcelable Uri's
    for (String file : filePaths){
        File fileIn = new File(file);
        Uri u = Uri.fromFile(fileIn);
        uris.add(u);
    }
    emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);

    context.startActivity(Intent.createChooser(emailIntent, "Invia email..."));
   
    }}
« Ultima modifica: 27 Aprile 2011, 09:27:33 CEST da 7h38ugg3r »

Offline 7h38ugg3r

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 1200
  • Respect: +133
    • riccardofischetti
    • th38ugg3r
    • @7h38ugg3r
    • Mostra profilo
  • Dispositivo Android:
    Galaxy-S GT I-9000/ ASUS Eee Pad Transformer
  • Play Store ID:
    Riccardo Fischetti
  • Sistema operativo:
    OS X Lion / Linux Mint 11 (Katya)
Re:recorder audio video e invio file via email
« Risposta #1 il: 27 Aprile 2011, 09:28:15 CEST »
0
Ho aggiunto i tag di codice, per dare chiarezza al tutto.
Quando posti richieste di supporto, devi specificare il tipo di errore che ti da e postare il logcat.
7h38ugg3r<=>thebugger
Non conosci Java? Allora sei nel posto sbagliato!

http://www.androidpatterns.com/

Offline riccardofarris

  • Utente junior
  • **
  • Post: 71
  • Respect: 0
    • Mostra profilo
  • Sistema operativo:
    windows7
Re:recorder audio video e invio file via email
« Risposta #2 il: 27 Aprile 2011, 09:41:33 CEST »
0
Ho aggiunto i tag di codice, per dare chiarezza al tutto.
Quando posti richieste di supporto, devi specificare il tipo di errore che ti da e postare il logcat.

nel caso del codice audiovideorecorder il logcat è:

04-27 16:38:13.858: ERROR/vold(550): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
04-27 16:38:13.858: ERROR/vold(550): Error bootstrapping switch '/sys/class/switch/test2' (m)
04-27 16:38:13.858: ERROR/vold(550): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
04-27 16:38:13.858: ERROR/vold(550): Error bootstrapping switch '/sys/class/switch/test' (m)
04-27 16:38:13.958: ERROR/flash_image(557): can't find recovery partition
04-27 16:38:26.978: ERROR/MemoryHeapBase(577): error opening /dev/pmem: No such file or directory
04-27 16:38:26.988: ERROR/SurfaceFlinger(577): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
04-27 16:38:27.018: ERROR/GLLogger(577): couldn't load <libhgl.so> library (Cannot find library)
04-27 16:38:27.109: ERROR/GLLogger(577): couldn't load <libhgl.so> library (Cannot find library)
04-27 16:38:30.838: ERROR/BatteryService(577): Could not open '/sys/class/power_supply/usb/online'
04-27 16:38:30.838: ERROR/BatteryService(577): Could not open '/sys/class/power_supply/battery/batt_vol'
04-27 16:38:30.838: ERROR/BatteryService(577): Could not open '/sys/class/power_supply/battery/batt_temp'
04-27 16:38:31.528: ERROR/EventHub(577): could not get driver version for /dev/input/mouse0, Not a typewriter
04-27 16:38:31.568: ERROR/EventHub(577): could not get driver version for /dev/input/mice, Not a typewriter
04-27 16:38:31.669: ERROR/System(577): Failure starting core service
04-27 16:38:31.669: ERROR/System(577): java.lang.SecurityException
04-27 16:38:31.669: ERROR/System(577):     at android.os.BinderProxy.transact(Native Method)
04-27 16:38:31.669: ERROR/System(577):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
04-27 16:38:31.669: ERROR/System(577):     at android.os.ServiceManager.addService(ServiceManager.java:72)
04-27 16:38:31.669: ERROR/System(577):     at com.android.server.ServerThread.run(SystemServer.java:163)
04-27 16:38:31.708: ERROR/AndroidRuntime(577): Crash logging skipped, no checkin service
04-27 16:38:33.249: ERROR/LockPatternKeyguardView(577): Failed to bind to GLS while checking for account
04-27 16:38:37.148: ERROR/ApplicationContext(577): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
04-27 16:38:38.460: ERROR/ActivityThread(626): Failed to find provider info for android.server.checkin
04-27 16:38:39.940: ERROR/ActivityThread(626): Failed to find provider info for android.server.checkin
04-27 16:38:40.030: ERROR/ActivityThread(626): Failed to find provider info for android.server.checkin
04-27 16:38:45.681: ERROR/HttpUtils(654): HTTP error: Unauthorized
04-27 16:38:45.700: ERROR/SendTransaction(654): java.io.IOException: HTTP error: Unauthorized
04-27 16:38:45.700: ERROR/SendTransaction(654):     at com.android.mms.transaction.HttpUtils.handleHttpConnectionException(HttpUtils.java:218)
04-27 16:38:45.700: ERROR/SendTransaction(654):     at com.android.mms.transaction.HttpUtils.httpConnection(HttpUtils.java:198)
04-27 16:38:45.700: ERROR/SendTransaction(654):     at com.android.mms.transaction.Transaction.sendPdu(Transaction.java:143)
04-27 16:38:45.700: ERROR/SendTransaction(654):     at com.android.mms.transaction.SendTransaction.run(SendTransaction.java:108)
04-27 16:38:45.700: ERROR/SendTransaction(654):     at java.lang.Thread.run(Thread.java:1058)
04-27 16:38:45.730: ERROR/SendTransaction(654): Delivery failed.
04-27 16:38:45.930: ERROR/HttpUtils(654): HTTP error: Unauthorized
04-27 16:38:45.950: ERROR/SendTransaction(654): java.io.IOException: HTTP error: Unauthorized
04-27 16:38:45.950: ERROR/SendTransaction(654):     at com.android.mms.transaction.HttpUtils.handleHttpConnectionException(HttpUtils.java:218)
04-27 16:38:45.950: ERROR/SendTransaction(654):     at com.android.mms.transaction.HttpUtils.httpConnection(HttpUtils.java:198)
04-27 16:38:45.950: ERROR/SendTransaction(654):     at com.android.mms.transaction.Transaction.sendPdu(Transaction.java:143)
04-27 16:38:45.950: ERROR/SendTransaction(654):     at com.android.mms.transaction.SendTransaction.run(SendTransaction.java:108)
04-27 16:38:45.950: ERROR/SendTransaction(654):     at java.lang.Thread.run(Thread.java:1058)
04-27 16:38:45.960: ERROR/SendTransaction(654): Delivery failed.
04-27 16:39:10.444: ERROR/MediaPlayer(554): Unable to to create media player
04-27 16:39:10.444: ERROR/CameraService(554): Failed to load CameraService sounds.
04-27 16:39:10.454: ERROR/MediaPlayer(554): Unable to to create media player
04-27 16:39:10.454: ERROR/CameraService(554): Failed to load CameraService sounds.
04-27 16:39:10.454: ERROR/CameraInput(554): No surface is available for display
04-27 16:39:10.454: ERROR/MediaRecorder(735): prepare failed: -2147483648
04-27 16:39:10.454: ERROR/AudioRecordTest(735): prepare() failed
04-27 16:39:10.454: ERROR/MediaRecorder(735): start called in an invalid state: 0
04-27 16:39:10.474: ERROR/AndroidRuntime(735): Uncaught handler: thread main exiting due to uncaught exception
04-27 16:39:10.504: ERROR/AndroidRuntime(735): java.lang.IllegalStateException
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.media.MediaRecorder.start(Native Method)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at com.ricky.workspace.audiorecorder.startRecordingVideo(audiorecorder.java:247)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at com.ricky.workspace.audiorecorder.onRecordVideo(audiorecorder.java:200)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at com.ricky.workspace.audiorecorder.access$2(audiorecorder.java:198)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at com.ricky.workspace.audiorecorder$RecordVideoButton$1.onClick(audiorecorder.java:159)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.View.performClick(View.java:2179)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.View.onTouchEvent(View.java:3828)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.widget.TextView.onTouchEvent(TextView.java:6291)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.View.dispatchTouchEvent(View.java:3368)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1707)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1197)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.app.Activity.dispatchTouchEvent(Activity.java:1993)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1691)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1525)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.os.Looper.loop(Looper.java:123)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at android.app.ActivityThread.main(ActivityThread.java:3948)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at java.lang.reflect.Method.invokeNative(Native Method)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at java.lang.reflect.Method.invoke(Method.java:521)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
04-27 16:39:10.504: ERROR/AndroidRuntime(735):     at dalvik.system.NativeStart.main(Native Method)

Offline riccardofarris

  • Utente junior
  • **
  • Post: 71
  • Respect: 0
    • Mostra profilo
  • Sistema operativo:
    windows7
Re:recorder audio video e invio file via email
« Risposta #3 il: 27 Aprile 2011, 10:03:16 CEST »
0
mentre l'appl invio mail ha il seguente logcat, non capisco come posso allegare piu file io ho aggiunto una linea di codice
Codice (Java): [Seleziona]
filePaths.add(Environment.getExternalStorageDirectory().getAbsolutePath());ma non credo sia giusto.qualcuno sa aiutarmi please!!!!!!!


04-27 16:58:43.613: ERROR/vold(550): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
04-27 16:58:43.613: ERROR/vold(550): Error bootstrapping switch '/sys/class/switch/test2' (m)
04-27 16:58:43.613: ERROR/vold(550): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
04-27 16:58:43.613: ERROR/vold(550): Error bootstrapping switch '/sys/class/switch/test' (m)
04-27 16:58:43.713: ERROR/flash_image(558): can't find recovery partition
04-27 16:58:56.523: ERROR/MemoryHeapBase(577): error opening /dev/pmem: No such file or directory
04-27 16:58:56.533: ERROR/SurfaceFlinger(577): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
04-27 16:58:56.563: ERROR/GLLogger(577): couldn't load <libhgl.so> library (Cannot find library)
04-27 16:58:56.763: ERROR/GLLogger(577): couldn't load <libhgl.so> library (Cannot find library)
04-27 16:59:00.523: ERROR/BatteryService(577): Could not open '/sys/class/power_supply/usb/online'
04-27 16:59:00.533: ERROR/BatteryService(577): Could not open '/sys/class/power_supply/battery/batt_vol'
04-27 16:59:00.533: ERROR/BatteryService(577): Could not open '/sys/class/power_supply/battery/batt_temp'
04-27 16:59:01.333: ERROR/EventHub(577): could not get driver version for /dev/input/mouse0, Not a typewriter
04-27 16:59:01.373: ERROR/EventHub(577): could not get driver version for /dev/input/mice, Not a typewriter
04-27 16:59:01.433: ERROR/System(577): Failure starting core service
04-27 16:59:01.433: ERROR/System(577): java.lang.SecurityException
04-27 16:59:01.433: ERROR/System(577):     at android.os.BinderProxy.transact(Native Method)
04-27 16:59:01.433: ERROR/System(577):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
04-27 16:59:01.433: ERROR/System(577):     at android.os.ServiceManager.addService(ServiceManager.java:72)
04-27 16:59:01.433: ERROR/System(577):     at com.android.server.ServerThread.run(SystemServer.java:163)
04-27 16:59:01.443: ERROR/AndroidRuntime(577): Crash logging skipped, no checkin service
04-27 16:59:02.593: ERROR/LockPatternKeyguardView(577): Failed to bind to GLS while checking for account
04-27 16:59:06.683: ERROR/ApplicationContext(577): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
04-27 16:59:08.207: ERROR/ActivityThread(628): Failed to find provider info for android.server.checkin
04-27 16:59:10.218: ERROR/ActivityThread(628): Failed to find provider info for android.server.checkin
04-27 16:59:10.318: ERROR/ActivityThread(628): Failed to find provider info for android.server.checkin