Updating from Android 1.5 Pre to 1.5 Release

by Brian Conrad » Wed, 29 Apr 2009 03:41:47 GMT


Sponsored Links
 Pardon me if this has been asked but is there anything specific about 
updating from Android 1.5 Pre to 1.5 Release?  Or is it just like 
updating from any other update?

Brian Conrad
JyotishTools.com


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



Other Threads

1. value @ "/sys/class/lightsensor/switch_cmd/lightsensor_file_cmd" is getting lost

/sys is a virtual filesystem, it doesn't persist reboots.



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

2. Byte stream @ "/sys/class/lightsensor/switch_cmd/" getting deleted on Reboot.

So far i didnt get to hear from anyone,,so ,, i m still struggling
alone.....

Now i am trying to open the virtual file at bootup and reload it with
the byte stream..... However I am only able to open the virtual file
for reading and not for writing.... I think i need to change the
permissions..... How do i do that ?? Please help..

The reading code is as follows: // NO BREAKAGE

byte[] buffer1 = new byte[100];
BufferedReader reader = null;
                try{
                        reader = new BufferedReader(new FileReader 
("/sys/class/lightsensor/
switch_cmd/lightsensor_file_cmd"));
                        Log.d(TAG,"Opened the SAVED virtual file");
                }catch(IOException e){
                        Log.d(TAG,"Problem opening the SAVED virtual file");
                }
                try{
                        Log.d(TAG, "Buffer read from virtual file 
="+reader.readLine());
                        Log.d(TAG,"Read the SAVED virtual file");
                        reader.close();
                }catch(IOException e){
                        Log.d(TAG,"Problem reading the SAVED virtual file");
                }

*************************************************

for writing i use the following code: // BREAKAGE WHILE OPENING THE
FILE???????

byte[] buffer = new byte[100];
buffer[0] = '1';
OutputStream out = null;
try{
                Log.d(TAG, "OPENING the virtual file");
                out = new FileOutputStream(new File("/sys/class/
lightsensor/switch_cmd/lightsensor_file_cmd"));
   }catch (FileNotFoundException e) {
                    Log.d(TAG,"Problem in Opening the virtual file for 
writing"); //
THIS LOG IS DISPLAYED
   }

try {
        Log.d(TAG, "WRITING -> Virtual file");
                out.write(buffer);
    } catch (IOException e){
                    e.printStackTrace();
                    Log.d(TAG,"Problem in Writing in the Virtual file");
   }

*****************************************************************************



--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. A2DP init is failing

4. Overlaying SurfaceViews

5. network id

6. Problem with Crypto APIs between Android and SUN Jav

7. FileOutputStream - file not found???