833Mhz Cortex-A8 runs Android and its full source code is available.

by freeware3430 » Tue, 22 Dec 2009 02:17:31 GMT

Sponsored Links

Accelerometer, WLAN(8686), Capacitive touch screen, HDMI device driver
source code is accessible via below link.

This article is the original source of that information.
Full schematics is also very interesting..

Is it a developer's toy? or Gamer's toy?


Other Threads

1. Bluetooth + rSAP car kit

Hello Everybody,

I'm wondering if it is possible to get a G1 or the upcoming G2 phone
working with a rSAP (remote SIM access profile)-compatible phone car
kit (rSAP only).

I searched the forums but I'm not sure what's the status of bluetooth
and rSAP at the android platform.

As far as I have read, these are the current conditions

G1 - can't do it because there is no Bluetooth 2.0 (hardware/stack)?
G2 - HTC magic should be able to do it because it is certified HFP and
Bluetooth 2.0

Is it possible to use rSAP out-of-the box?

Has anyone running a android phone with the Volkswagen/Skoda/Audi
phone kit 'premium' ?


2. Using SensorEventListener

package start.project;

import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import android.app.Activity;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;

import android.hardware.SensorListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

public class Projectv1 extends Activity implements SensorListener{
    /** Called when the activity is first created. */
        private float   mOrientationValues[] = new float[3];
        private float   mMagneticValues[] = new float[3];
        private float   mAccValues[] = new float[3];
    private SensorManager mSensorManager;
    public TextView tv;
    public TextView tv1;
    public TextView tv2;
    public TextView tv3;
    public TextView tv4;
    public TextView tv5;
    public TextView tv6;
    public TextView tv7;
    public TextView tv8;
    public float tempX;
    public float tempY;
    public float tempZ;

    public void onCreate(Bundle savedInstanceState) {
        mSensorManager = (SensorManager) getSystemService

        tv = (TextView)findViewById(R.id.text);
        tv1 = (TextView)findViewById(R.id.text1);
        tv2 = (TextView)findViewById(R.id.text2);
        tv3 = (TextView)findViewById(R.id.text3);
        tv4 = (TextView)findViewById(R.id.text4);
        tv5 = (TextView)findViewById(R.id.text5);
        tv6 = (TextView)findViewById(R.id.text6);
        tv7 = (TextView)findViewById(R.id.text7);
        tv8 = (TextView)findViewById(R.id.text8);


    public void onSensorChanged(int sensor, float[] values) {
         if (sensor == SensorManager.SENSOR_ORIENTATION) {
             for (int i=0 ; i<3 ; i++) {

                 mOrientationValues[i] = values[i];

             tv.setText("Rotation around Z, Azimuth = " + values[0]);
             tv1.setText("Rotation around X, Pitch = " + values[1]);
             tv2.setText("Rotation around Y, Roll = " + values[2]);

         if (sensor == SensorManager.SENSOR_ACCELEROMETER) {
             for (int j=0 ; j<3 ; j++) {
                 mAccValues[j] = values[j];

                 try { // catches IOException below
                         // final String data = new String("Hello Android");

                         FileOutputStream fOut=null;
                         fOut= new FileOutputStream("\\sdcard\\sample.txt",
                         OutputStreamWriter osw = null;
                         osw = new OutputStreamWriter(fOut);
                         osw.write((int) values[0] + "/n");     // can't write
floats to file?

                     osw.write((int) values[1]+ "/n");

                     osw.write((int) values[2]+ "/n");

                     String myString1 = Integer.toString((int) values

                     //osw.write((int) values[0]);                      // 
can't write
floats to file?
                     //osw.write((int) values[1]);
                     //osw.write((int) values[2]);

                } catch (IOException ioe) {
             tv3.setText("Force applied on the x-axis= " + values[0]);
             tv4.setText("Force applied on the y-axis = " + values
             tv5.setText("Force applied on the z-axis = " + values

         if (sensor == SensorManager.SENSOR_MAGNETIC_FIELD) {
             for (int k=0 ; k<3 ; k++) {
                 mMagneticValues[k] = values[k];

             tv6.setText("Ambient Magnetic Field in x = " + values
             tv7.setText("Ambient Magnetic Field in y = " + values
             tv8.setText("Ambient Magnetic Field in z = " + values


        public void onAccuracyChanged(int sensor, int accuracy) {
                // TODO Auto-generated method stub


    protected void onResume() {
                SensorManager.SENSOR_ACCELEROMETER |
                SensorManager.SENSOR_MAGNETIC_FIELD |

    protected void onStop() {


See code above..

This code works using Projectv1 implementing SensorListener
When i change it to SensorEventlistener, i get an error here
"mSensorManager.registerListener(this, ..."
I can cast "this" to type SensorListener, but since this is
deprecated, i can't see the purpose if this (this is eclipse's idea to
remove the error). When i do this, when i run the application on the
phone then, it always crashes.

I am no Java/Android expert so any help would be great!



3. how to remove a directory?

4. How can i display message in thai language ?

5. Can't touch on the screen when adding view in arrayadapter

6. how to add file to content provider

7. keystore using the ADT Export Wizard