ada androider surabaya yang bisa bantu ane root spica ane gak? :) pleaseeee

by Jojo » Thu, 22 Jul 2010 12:02:46 GMT


Sponsored Links
 as per subject bos. ane pingin root spica + apps2sd, spica  ane yang
sejak dari beli belum dioprek oprek.. sekarang kondisinya sudah sering
penuh phone memorinya. tulung ya klo ada bos os surabaya yang bisa
bantu japri saya. saya sebenernya pingin ngoprek sendiri tapi apa daya
gak sempat dan -gak berani karena gaptek-

japri ane yaaa boss

-- 
"



Other Threads

1. get Projection Matrix from mapView in Overlay method draw

Hello,

does anyone know how to get the projection Matrix of the mapView?

Usually when drawing an Overlay you have to call "projection.toPixels
(geoPoint, point)" for each GeoPoint you want to draw. I Think it
would be faster to put the GeoPoints in a Path an then call
path.transform(matrix).
Whil debugging, I saw that the Projection class has a member Varibale
mMatrix, which is private. But there is no getter for the matrix...

Anybody knows how to get it?

Greetings and Thanks!

--~--~---------~--~----~------------~-------~--~----~

2. i am make player but I do not see the video.. only I can hear sound. Why does

import android.app.Activity;
import android.graphics.PixelFormat;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnBufferingUpdateListener;
import android.media.MediaPlayer.OnCompletionListener;
import android.media.MediaPlayer.OnErrorListener;
import android.os.Bundle;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.webkit.URLUtil;
import android.widget.EditText;
import android.widget.ImageButton;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;

public class VideoPlayer extends Activity implements OnErrorListener,
        OnBufferingUpdateListener, OnCompletionListener,
        MediaPlayer.OnPreparedListener, SurfaceHolder.Callback {
    private static final String TAG = "VideoPlayer";

    private MediaPlayer mp;
    private SurfaceView mPreview;
    private EditText mPath;
    private SurfaceHolder holder;

       private String current;

    /**
     * Called when the activity is first created.
     */
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        setContentView(R.layout.main);

        // Set up the play/pause/reset/stop buttons
        mPreview = (SurfaceView) findViewById(R.id.surface);


        mPreview.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                playVideo();
            }
        });


        // Set the transparency
        getWindow().setFormat(PixelFormat.TRANSPARENT);

        // Set a size for the video screen
        holder = mPreview.getHolder();
        holder.addCallback(this);

        holder.setFixedSize(400, 300);
    }

    private void playVideo() {
        try {
            final String path = "/sdcard/samplevideo.mp4";
            Log.v(TAG, "path: " + path);

            // If the path has not changed, just start the media
player
            if (path.equals(current) && mp != null) {
                mp.start();
                return;
            }
            current = path;

            // Create a new media player and set the listeners
            mp = new MediaPlayer();
            mp.setOnErrorListener(this);
            mp.setOnBufferingUpdateListener(this);
            mp.setOnCompletionListener(this);
            mp.setOnPreparedListener(this);
            mp.setAudioStreamType(2);

            // Set the surface for the video output

            mp.setDisplay(holder);
            // Set the data source in another thread
            // which actually downloads the mp3 or videos
            // to a temporary locatizon
            Runnable r = new Runnable() {
                public void run() {
                    try {
                        setDataSource(path);
                    } catch (IOException e) {
                        Log.e(TAG, e.getMessage(), e);
                    }
                    try {
                                                mp.prepare();
                                        } catch (IllegalStateException e) {
                                                // TODO Auto-generated catch 
block
                                                e.printStackTrace();
                                        } catch (IOException e) {
                                                // TODO Auto-generated catch 
block
                                                e.printStackTrace();
                                        }
                    Log.v(TAG, "Duration:  ===>" + mp.getDuration());
                    mp.start();
                }
            };
            new Thread(r).start();
        } catch (Exception e) {
            Log.e(TAG, "error: " + e.getMessage(), e);
            if (mp != null) {
                mp.stop();
                mp.release();
            }
        }
    }

    /**
     * If the user has specified a local url, then we download the
     * url stream to a temporary location and then call the
setDataSource
     * for that local file
     *
     * @param path
     * @throws IOException
     */
    private void setDataSource(String path) throws IOException {
        if (!URLUtil.isNetworkUrl(path)) {
            mp.setDataSource(path);
        } else {
            URL url = new URL(path);
            URLConnection cn = url.openConnection();
            cn.connect();
            InputStream stream = cn.getInputStream();
            if (stream == null)
                throw new RuntimeException("stream is null");
            File temp = File.createTempFile("mediaplayertmp", "dat");
            String tempPath = temp.getAbsolutePath();
            FileOutputStream out = new FileOutputStream(temp);
            byte buf[] = new byte[128];
            do {
                int numread = stream.read(buf);
                if (numread <= 0)
                    break;
                out.write(buf, 0, numread);
            } while (true);
            mp.setDataSource(tempPath);
            try {
                stream.close();
            }
            catch (IOException ex) {
                Log.e(TAG, "error: " + ex.getMessage(), ex);
            }
        }
    }

    public boolean onError(MediaPlayer mediaPlayer, int what, int
extra) {
        Log.e(TAG, "onError--->   what:" + what + "    extra:" +
extra);
        if (mediaPlayer != null) {
            mediaPlayer.stop();
            mediaPlayer.release();
        }
        return true;
    }

    public void onBufferingUpdate(MediaPlayer arg0, int percent) {
        Log.d(TAG, "onBufferingUpdate called --->   percent:" +
percent);
    }

    public void onCompletion(MediaPlayer arg0) {
        Log.d(TAG, "onCompletion called");
    }

    public void onPrepared(MediaPlayer mediaplayer) {
        Log.d(TAG, "onPrepared called");
    }

    public void surfaceCreated(SurfaceHolder surfaceholder) {
        Log.d(TAG, "surfaceCreated called");
    }

    public void surfaceChanged(SurfaceHolder surfaceholder, int i, int
j, int k) {
        Log.d(TAG, "surfaceChanged called");
    }

    public void surfaceDestroyed(SurfaceHolder surfaceholder) {
        Log.d(TAG, "surfaceDestroyed called");
    }
}

help me

--~--~---------~--~----~------------~-------~--~----~

3. How to debug a android application with eclipse and emulator

4. Finding Device (and android version) from code

5. Can we send long SMS message (size > 160 characters) and can receive same in one shot?

6. ERROR: Application requires API version 2. Device API version is 1

7. Getting a complete list of android native drawables