[android-porting] Re: log system or device info to sdcard from an android native init service

2011-06-04 Thread Chris Stratton
On Monday, May 30, 2011 2:03:32 AM UTC-4, Gopi wrote: > > Hi Chris, > Is the path '/data' correct to log to the sdcard??? > No. Well, it depends on what you mean by the sdcard. If you mean the free-for-all user storage area which has been the traditional role of sdcards on android dev

[android-porting] Re: log system or device info to sdcard from an android native init service

2011-05-30 Thread Gopi
Hi Chris, Is the path '/data' correct to log to the sdcard??? and also fopen is ok to write to the file??? On May 27, 7:50 pm, Chris Stratton wrote: > On Friday, May 27, 2011 1:48:38 AM UTC-4, Gopi wrote: > >        i m using devkit800 and i used to insert the sdcard once before > > the a

[android-porting] Re: log system or device info to sdcard from an android native init service

2011-05-27 Thread Chris Stratton
On Friday, May 27, 2011 1:48:38 AM UTC-4, Gopi wrote: >i m using devkit800 and i used to insert the sdcard once before > the android boot animation comes... What Dianne said still holds true for the external storage (partition?) of the sdcard. It's not mounted immediately. Your ser

[android-porting] Re: log system or device info to sdcard from an android native init service

2011-05-27 Thread Gopi
Hi freakingtux, I din tried different calls i tried only f open. Ya in my app i added the permission to write to external storage and my app works fine in emulator and creates the file. On May 27, 10:17 am, freakingtux wrote: > Hi > > > > On Thursday, May 26, 2011 1:42:37 PM UTC+2,

[android-porting] Re: log system or device info to sdcard from an android native init service

2011-05-27 Thread Gopi
hi Dianne, i m using devkit800 and i used to insert the sdcard once before the android boot animation comes...the sdcard details are available in the settings->sdcard. as in mobile there is no "My files" app so i used to remove the sdcard and check whether the file is created its not getting

Re: [android-porting] Re: log system or device info to sdcard from an android native init service

2011-05-26 Thread freakingtux
Hi On Thursday, May 26, 2011 7:06:58 PM UTC+2, Dianne Hackborn wrote: > > The SD card is not mounted early in boot, that doesn't happen until the > mount service has started and verified the SD card's filesystem. Generally > it won't be available for use until around the time the UI comes up. >

[android-porting] Re: log system or device info to sdcard from an android native init service

2011-05-26 Thread freakingtux
Hi On Thursday, May 26, 2011 1:42:37 PM UTC+2, Gopi wrote: > > Hi, >I m trying to write log to sdcard. I have created a native service > that starts during boot and i want it to write a log file to > sdcard..my c file looks like this logservice.c > > #define LOG_TAG "Log Service" > #inclu

Re: [android-porting] Re: log system or device info to sdcard from an android native init service

2011-05-26 Thread Dianne Hackborn
The SD card is not mounted early in boot, that doesn't happen until the mount service has started and verified the SD card's filesystem. Generally it won't be available for use until around the time the UI comes up. On Thu, May 26, 2011 at 4:42 AM, Gopi wrote: > Hi, > I m trying to write log

[android-porting] Re: log system or device info to sdcard from an android native init service

2011-05-26 Thread Gopi
Hi, I m trying to write log to sdcard. I have created a native service that starts during boot and i want it to write a log file to sdcard..my c file looks like this logservice.c #define LOG_TAG "Log Service" #include #include #include int main(int argc, char **argv) { FILE *file; file = fop