×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    9

    C Drive Remaining Space

    Hi

    i am new in Flash lite, i want to know how to get remaining memory in C drive.

    plz help me.

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: C Drive Remaining Space

    Welcome to Flash Lite Dibo .Please, always tell us the mobile phone model & Flash Lite version at least?. However, if u have a 5th edition phone , then i think u can use SystemInfo API , take a look here :
    SystemInfo Api
    If u r using a 3rd edition phone , then according to my knowledge, u cant do it unless u write ur own socket server in any native language to extend flash lite.

    Best Regards,
    SajiSoft

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    9

    Re: C Drive Remaining Space

    Thanks for ur reply, i used systemInfo API but i have a problem that my code is giving following error:

    The class or interface 'com.nokia.lib.service' could not be loaded. var sysInfo = new Service("Service.SysInfo", "ISysInfo");


    THIS IS MY CODE:-


    import com.nokia.lib.Service;


    fscommand2( "FullScreen", true );
    fscommand2( "SetQuality", "high" );
    exit_mc.onPress = function() {
    status = fscommand2("Quit");
    trace("QUIT");
    }


    heading_txt.text = "Checking Battery level";

    // Create new Service object which has SystemInfo Service data
    var sysInfo = new Service("Service.SysInfo", "ISysInfo");


    var inParams = {Entity:"Battery", Key:"BatteryStrength"};
    sysInfo.GetInfo(inParams,onReceive);
    function onReceive(transactionID:Number, eventID:String, outParam:Object) {
    if (outParam.ErrorCode == 0) {
    var systemData = outParam.ReturnValue;
    var batteryStatus = systemData.Status;
    text_txt.text = "Battery status: "+batteryStatus+"%";
    } else {
    var errorId = outParam.ErrorCode;
    text_txt.text = "Error: "+errorId;
    }
    }
    stop();

  4. #4
    Registered User
    Join Date
    Apr 2008
    Location
    India / Singapore
    Posts
    549

    Re: C Drive Remaining Space

    The above error means that Flash Lite can't recognise the presence of the Service Library. Which means the installation of the service API was incorrect and hence couldn't load the service.
    Check the install directories/path.
    Twitter - manikantan_k
    Just in --

  5. #5
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: C Drive Remaining Space

    Btw, u can get the library from here :
    S60_ActionScript_API_library_1_0.zip
    Either extract it to the place where u have ur fla file OR copy it to default flash classes directory .

    Best Regards,
    SajiSoft

Similar Threads

  1. Minimum have to free space in a drive.
    By abdullah.jobayer in forum General Development Questions
    Replies: 4
    Last Post: 2009-06-18, 14:27
  2. Space usage on system drive
    By planetf1 in forum General Development Questions
    Replies: 1
    Last Post: 2009-01-21, 17:22
  3. target drive letter for SISPATCH
    By geran in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-11-07, 13:00
  4. Automatically compression on drive C ?
    By curcio1 in forum Symbian
    Replies: 0
    Last Post: 2003-08-29, 09:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×