Recently I developed an native module called Android System Info Module and published in Appcelerator Marketplace.
This module used to get the basic Android system information.
Using this module we can get system information like
Accessing the Android System Info Module
To access this module from JavaScript, you would do the following:
Usage
Sample Response
Module URL : https://marketplace.appcelerator.com/apps/5770?1412283645
Android System Info Module in AppC Marketplace |
This module used to get the basic Android system information.
Using this module we can get system information like
- OS VERSION
- API LEVEL
- HARDWARE MANUFACTURER
- DEVICE
- MODEL
- SYSTEM RAM(both in kb and mb)
- ABI
- PROCESSOR
Accessing the Android System Info Module
To access this module from JavaScript, you would do the following:
var systeminfo = require("titutorial.sysinfo");
Usage
var systeminfo = require('titutorial.sysinfo'); var infoStr = systeminfo.getInfo(); //response would be string var infoObj = JSON.parse(infoStr); //parsing string to JSON object Ti.API.info("infoObj obj => " + infoObj);
Sample Response
var sampleResponse = { PROCESSOR: "ARMV7 Processor rev 1 (v71)", MODEL: "ST25i", RAM(mb): "368 mb", RAM(kb): "376920 kb", OS_VERSION: "2.3.7", API_LEVEL : "10", ABI : "armeabi-v7a", MANUFACTURER : "Sony Ericsson" };
Android System info Module Example app |
No comments:
Post a Comment