[android-beginners] Can't locate com.android.settings activity

2009-08-17 Thread jstoezel
Hi, I'm trying to open the system's window (GPS enable window) using the following code. I get an exception saying the com.android.settings activity cannot be located. Any idea why this happens? Thanks, Jean ComponentName c = new ComponentName

[android-beginners] OpenIntent Simulator - Get black screen when selecting SensorSimulator

2009-07-04 Thread jstoezel
Hi, I am trying to run the openintent sensor simulator on Windows XP, SDK 1.5, (Google API). I get a black screen whenever I open the sensorsimulator application on my emulator, while it looks like I should get a screen asking me for an IP address. They are numerous reports of this issue on

[android-beginners] getSystemService(Context.SENSOR_SERVICE) hangs emulator

2009-07-03 Thread jstoezel
Hi, The emulator seems to hang whenever I call getSystemService (Context.SENSOR_SERVICE). I've tried it with SDK 1,1 and SDK 1.5 but I always get the same issue. Any idea how to fix this? Thanks, Jean --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] Exception while calling setAdapter on Spinner

2009-07-02 Thread jstoezel
Hi, I'm getting a runtime exception when calling the last line of the following code: Spinner s = (Spinner) findViewById(R.id.samplingTimeSpinner); ArrayAdapter adapter = ArrayAdapter.createFromResource(this, R.array.samplingRate, android.R.layout.simple_spinner_item);

[android-beginners] SAXException while parsing XML file

2009-06-22 Thread jstoezel
Hi, The following code generates the SAXParseException exception InputSource needs either stream or reader. try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance (); DocumentBuilder parser = factory.newDocumentBuilder(); Document document = parser.parse(fileName);