Hi
i am new in Flash lite, i want to know how to get remaining memory in C drive.
plz help me.
Hi
i am new in Flash lite, i want to know how to get remaining memory in C drive.
plz help me.
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
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();
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.
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