ChildOfCode


Code, Maker, Robotic, Open Source. Knowledge Bases


  1. Appcelerator Analytics

    Regarding the Titanium Studio Is not Longer Support by Appcelerator Company (change to open source Project) will start migration all the Project From Titanium Studio to Appcelerator Studio. Titanium.Analytics.featureEvent('Data track'); For New Project Can enable when create the Project pages. Enable Appcelerator Platform Services will enable the…

    on Android, JavaScript, IOS, Apps, Appcelerator Studio, Appcelerator Analytics, Appcelerator Platform

  2. Titanium Studio Save the Apps data in the Filesystem

    In IOS is only Internal Storage ,but in Android is diffrent since some android device can use sd-card theClass.prototype.WriteLog = function(theJSON){ Ti.API.info('WriteLog = ' + new Date() ); var thisClass = this; var jsonDir = ''; var dateObj = new Date(); var month = dateObj.getUTCMonth() + 1; //months from 1-12 var day…

    on Android, JavaScript, Titanium, IOS, JSON, Filesystem, applicationDataDirectory, externalStorageDirectory

  3. Titnaium Studio Keep Apps Screen Alway On

    This code is test and work in android. Since after IOS7 IOS can setup the screen mode to "Never" this.OSName = Ti.Platform.osname.toLowerCase(); if(this.OSName == "android"){ this.MainWindow.keepScreenOn = true; }; if(this.OSName == "iphone" || thisClass.Parent.OSName == "ipad"){ Titanium.App.idleTimerDisabled = true; this.MainWindow.idleTimerDisabled = true; };…

    on Android, IOS, Screen Alway On

  4. Titanium Studio Using the Geolocation

    Getting Location Information There are two ways to get location information: 1)Make a one-time request with getCurrentPosition. 2)Register to receive location updates by adding an event listener for the location event. Get the Geolocation with event listener Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_BEST; Ti.Geolocation.preferredProvider = Ti.…

    on Android, EventListener, IOS, getCurrentPosition, Apps, Latitude, Longitude, Accuracy

  5. Titanium Studio get battery Level

    Get the battery Level in the apps Ti.Platform.batteryMonitoring = true; Ti.Platform.addEventListener('battery',UpdateBattery); if(e.level !== undefined) { thisClass.batteryLevel = e.level; } *this code is only work on Android platform Curennly ,this code is not work on IOS a known bug .…

    on Android, Titanium, IOS, Battery Level