Hi,
I am trying to write a program that will be able to read digital
signals from the SD card slot or SIM card. Unfortunately, the computer
I am working on is a bit slow and and I am just starting and not very
familiar with the android platform.
Does this code look right?
Thanks!
package sim.ReadBitstream;
import android.app.Activity;
import android.os.*;
import android.widget.TextView;
import android.content.*;
import java.io.*;
public class ReadBitstream extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
int count=10; //Determine the amount of bytes to read
File SimAccess = new File("content://icc/sdn");
byte ADC[] = new byte[count];
FileInputStream StreamRead = new FileInputStream(SimAccess); //Read
the stream from the SIM card
StreamRead.read(ADC, 0, count);
}
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en