-
Java Check Input integer
Java @Kroll.method public String InputCheck(String value1 , String value2) { String inputType= ""; String [] numbers = {value1, value2}; for(String x : numbers ) { try{ int checkInput = Integer.parseInt(x); inputType = "Number"; }catch (NumberFormatException ex) { //handle exception here inputType = "No Number!"; break; } } if(inputType == "Number"){ int Intvalue1 = Integer.parseInt(value1); int Intvalue2 = Integer.parseInt(…
-
Titanium Android Module
a Simple Prototype for Create Titanium Android Native Module. In this Prototype I will create a Titanium Android Native Module calling "testmodule" And Create Four simple Maths calculation Java /** * This file was auto-generated by the Titanium Module SDK helper for Android * Appcelerator Titanium Mobile * Copyright (c) 2009-2010 by Appcelerator, Inc.…
-
Mobile first
This is the first post in my mobile. ^^ function toggle() { //makes the value of 'on' true if it was false before, or false if it was true before. //If you pronounce = as becomes, and ! as 'not', reading the line makes much more sense. on = !on; //Set the digital value of…