Phone info ေတြျပဖို႔အတြက္ပါ codetest မွာစမ္းrunတာမလို႔ ကိုသူရဲ႕ Getinfo sub ကိုျဖည္ၿပီး event မွာထည့္ထားတာပါ Code မ်ားလို႔လားမသိ apkထဲစစ၀င္ခ်င္းနည္းနည္းၾကာသြားတယိ info အခုေလးဆယ္ၾကည့္လို႔ရပါတယ္ တခ်ိဳ႕ဟာေတြကဖုန္းနဲ႔ဆိုင္ပါတယ္ Supportမေပးတဲ့ဖုန္းေတြမေပးပါဘူး
Getinfo subကိုလိုခ်င္ရင္ေအာက္မွာေဒါင္းပါ
GitInfo .xml
GitInfo .xml
Credit ThuRa
မေဒါင္းဘူးဆိုလဲ Codeေတြသာကူးထည့္လိုက္ပါ အသံုးျပဳပံုကေတာ့ Main ထဲကအတိုင္းပါဘဲ
Main
========
SetActivityColor(0,cCyan)
========
SetActivityColor(0,cCyan)
Getinfo
AddscrollView("scr1",0,0,100*x,100*y,"")
getPanel("scr1","pnl")
Setheight("pnl",40*10*y)
getPanel("scr1","pnl")
Setheight("pnl",40*10*y)
for i=0 to 39
AddButton("btn" & i,0,i*10*y, 54*x,10*y,"pnl")
next
AddButton("btn" & i,0,i*10*y, 54*x,10*y,"pnl")
next
for ii=0 to 39
AddButton("btt" &ii,52*x,ii*10*y,54*x,10*y,"pnl")
next
AddButton("btt" &ii,52*x,ii*10*y,54*x,10*y,"pnl")
next
SetText("btt0",GetAndroidVersion)
SetText("btt1",GetManufacture)
SetText("btt2",GetBrand)
SetText("btt3",GetName)
SetText("btt4",GetDevice)
SetText("btt5",GetBoard)
SetText("btt6",GetChipName)
SetText("btt7",GetlocaleRegion)
SetText("btt8",Getlocalelanguage)
SetText("btt9",GetBaseBrand)
SetText("btt10",GetBasebrand2)
SetText("btt11",GetStype)
SetText("btt12",GetHtype)
SetText("btt13",GetRotation)
SetText("btt14",GetUSBcong)
SetText("btt15",GetSysLanguage)
SetText("btt16",GetTimeZone)
SetText("btt17",GetTimeZoneID)
SetText("btt18",GetOfficialCsv)
SetText("btt19",GetProductCodeGetProductCode)
SetText("btt20",GetSerialNumber)
SetText("btt21",GetBuildNumber)
SetText("btt22",GetBuildDate)
SetText("btt23",GetBuildHost)
SetText("btt24",GetBuildID)
SetText("btt25",GetDateFormat )
SetText("btt26",GetSimSlots)
SetText("btt27",GetSimOperator)
SetText("btt28",GetSimOperator2)
SetText("btt29",GetSimType)
SetText("btt30",GetSimType2 )
SetText("btt31",GetSimNum)
SetText("btt32",GetSimNum2)
SetText("btt33",GetSimState)
SetText("btt34",GetSimState2)
SetText("btt35",GetSimCountry)
SetText("btt36",GetSimCountry2)
SetText("btt37",GetModel)
SetText("btt38",GetSdkVersion)
SetText("btt39",GetPhoneId)
SetText("btt37",GetModel)
SetText("btt38",GetSdkVersion)
SetText("btt39",GetPhoneId)
SetText("btn0","AndroidVersion")
SetText("btn1","Manufacture")
SetText("btn2","Brand")
SetText("btn3","Name")
SetText("btn4","Device")
SetText("btn5","Board")
SetText("btn6","ChipName")
SetText("btn7","LocaleRegion")
SetText("btn8","LocaleLanguage")
SetText("btn9","BaseBrand")
SetText("btn10","Basebrand2")
SetText("btn11","Stype")
SetText("btn12","Htype")
SetText("btn13","Rotation")
SetText("btn14","USBcong")
SetText("btn15","SysLanguage")
SetText("btn16","TimeZone")
SetText("btn17","TimeZoneID")
SetText("btn18","OfficialCsv")
SetText("btn19","ProductCodeGetProductCode")
SetText("btn20","SerialNumber")
SetText("btn21","BuildNumber")
SetText("btn22","BuildDate")
SetText("btn23","BuildHost")
SetText("btn24","BuildID")
SetText("btn25","DateFormat ")
SetText("btn26","SimSlots")
SetText("btn27","SimOperator")
SetText("btn28","SimOperator2")
SetText("btn29","SimType")
SetText("btn30","SimType2 ")
SetText("btn31","SimNum")
SetText("btn32","SimNum2")
SetText("btn33","SimState")
SetText("btn34","SimState2")
SetText("btn35","SimCountry")
SetText("btn36","SimCountry2")
SetText("btn37","Model")
SetText("btn38","SdkVersion")
SetText("btn39","PhoneId")
AddMenuItem("About")
=======
Event
=======
Event
=======
Sub Activity_Pause(UserClosed)
End Sub
End Sub
Sub Activity_Resume
End Sub
End Sub
Sub Button_Click(Who)
End Sub
Sub Button_LongClick(Who)
End Sub
Sub GetInfo
getandroidversion=rootcmd("getprop ro.build.version.release")
getmanufacture=rootcmd("getprop ro.product.manufacture")
getbrand=rootcmd("getprop ro.product.brand")
getname=rootcmd("getprop ro.product.name")
getdevice=rootcmd("getprop ro.product.device")
getboard=rootcmd("getprop ro.product.board")
getchipname=rootcmd("getprop ro.chipname")
getlocaleregion=rootcmd("getprop ro.product.locale.region")
getlocalelanguage=rootcmd("getprop ro.product.locale.language")
getbaseband=rootcmd("getprop gsm.version.baseband")
getbaseband2=rootcmd("getprop gsm.version.baseband2")
getstype=rootcmd("getprop net.bt.name")
gethtype=rootcmd("getprop ro.hardware")
getrotation=rootcmd("getprop persist.sys.screen.rotation.Off")
getusbcong=rootcmd("getprop persist.sys.usb.config")
getsyslanguage=rootcmd("getprop persist.sys.language")
gettimezone=rootcmd("getprop persist.sys.timezone")
gettimezoneid=rootcmd("getprop ril.timezoneID")
getofficialcsv=rootcmd("getprop ril.official_cscver")
getproductcode=rootcmd("getprop ril.product_code")
getserialnumber=rootcmd("getprop ril.serialnumber")
getbuilddate=rootcmd("getprop ro.build.date")
getbuildnumber=rootcmd("getprop ro.build.display.id")
getbuildHost=rootcmd("getprop ro.build.Host")
getbuildid=rootcmd("getprop ro.build.id")
getdateformat=rootcmd("getprop ro.com.android.dateformat")
getsimslots=rootcmd("getprop ro.multisim.simslotcount")
getsimoperator=rootcmd("getprop gsm.operator.alpha")
getsimoperator2=rootcmd("getprop gsm.operator.alpha2")
getsimtype=rootcmd("getprop gsm.network.type")
getsimtype2=rootcmd("getprop gsm.network.type2")
getsimnum=rootcmd("getprop gsm.operator.numeric")
getsimnum2=rootcmd("getprop gsm.operator.numeric2")
getsimstate=rootcmd("getprop gsm.sim.state")
getsimstate2=rootcmd("getprop gsm.sim.state2")
getsimcountry=rootcmd("getprop gsm.operator.iso-country")
getsimcountry2=rootcmd("getprop gsm.operator.iso-country2")
End Sub
End Sub
Sub Button_LongClick(Who)
End Sub
Sub GetInfo
getandroidversion=rootcmd("getprop ro.build.version.release")
getmanufacture=rootcmd("getprop ro.product.manufacture")
getbrand=rootcmd("getprop ro.product.brand")
getname=rootcmd("getprop ro.product.name")
getdevice=rootcmd("getprop ro.product.device")
getboard=rootcmd("getprop ro.product.board")
getchipname=rootcmd("getprop ro.chipname")
getlocaleregion=rootcmd("getprop ro.product.locale.region")
getlocalelanguage=rootcmd("getprop ro.product.locale.language")
getbaseband=rootcmd("getprop gsm.version.baseband")
getbaseband2=rootcmd("getprop gsm.version.baseband2")
getstype=rootcmd("getprop net.bt.name")
gethtype=rootcmd("getprop ro.hardware")
getrotation=rootcmd("getprop persist.sys.screen.rotation.Off")
getusbcong=rootcmd("getprop persist.sys.usb.config")
getsyslanguage=rootcmd("getprop persist.sys.language")
gettimezone=rootcmd("getprop persist.sys.timezone")
gettimezoneid=rootcmd("getprop ril.timezoneID")
getofficialcsv=rootcmd("getprop ril.official_cscver")
getproductcode=rootcmd("getprop ril.product_code")
getserialnumber=rootcmd("getprop ril.serialnumber")
getbuilddate=rootcmd("getprop ro.build.date")
getbuildnumber=rootcmd("getprop ro.build.display.id")
getbuildHost=rootcmd("getprop ro.build.Host")
getbuildid=rootcmd("getprop ro.build.id")
getdateformat=rootcmd("getprop ro.com.android.dateformat")
getsimslots=rootcmd("getprop ro.multisim.simslotcount")
getsimoperator=rootcmd("getprop gsm.operator.alpha")
getsimoperator2=rootcmd("getprop gsm.operator.alpha2")
getsimtype=rootcmd("getprop gsm.network.type")
getsimtype2=rootcmd("getprop gsm.network.type2")
getsimnum=rootcmd("getprop gsm.operator.numeric")
getsimnum2=rootcmd("getprop gsm.operator.numeric2")
getsimstate=rootcmd("getprop gsm.sim.state")
getsimstate2=rootcmd("getprop gsm.sim.state2")
getsimcountry=rootcmd("getprop gsm.operator.iso-country")
getsimcountry2=rootcmd("getprop gsm.operator.iso-country2")
End Sub
Sub Menu_Click(Which)
MsgBox("Created by Moe Tain Yan","Special Thanks")
End Sub
End Sub
Sub Activity_KeyPress(key)
If key=4 Then
b=MessageBox("Do You Want To Exit?","EXIT!","Ok","Cancel","")
If b=-1 Then
ActivityFinish
End If
Else If key=82 Then
OpenMenu
End If
End Sub




Comments
Post a Comment