hi kickaha, i try with both (GetLine1Number and GetSimSerialNumber), the error is the same.
Only say: !We sorry!, The application test (process number.test) is stoped. Try again.
Have any way to see the real error in some log in the phone?
I have phone lib updated.
Thanks!
Hi Erel, i check the unfiltered logs, but i cant find the problem.
The program run perfect in emulator, but in real device get the error.
And i cant use my cellphone with usb driver, so i need copy the .apk to the real device, install it and run from cellphone.
Do you have anyway to find the error?
Thanks for all
Regards
Thanks Erel, i cant install the b4a bridge, because when i try i get an error in b4a bridge install, it say "The program can't be installed in this phone".
This phone have android 1.5 can be it the problem?
Regards
thanks tremara, but this example only run in 1.6 and above as Erel say.
I need some unique ID for cellphone with android 1.5, we cant update the devices for the warranty.
Thanks in advance!
Regards
Dim Obj1 As Reflector
Dim LineNumber As String
Obj1.Target = Obj1.GetContext
Obj1.Target = Obj1.RunMethod2("getSystemService", "phone", "java.lang.String")
LineNumber = Obj1.RunMethod ("getLine1Number")
In my case, android 1.5 doesn't support Phone lib, so with reflector lib we can use it.
Regards
I am trying to get phone it own number in order to create some activation licensing, I am using these
ToastMessageShow(pi.GetSimSerialNumber,True)
ToastMessageShow(pi.GetDeviceId,True)
ToastMessageShow(pi.GetSubscriberId,True)
ToastMessageShow(pi.GetLine1Number,True)
only lines 1-3 are ok, the line that I need is giving blank result
I need full prove solution to get phone number (since I will base my entire licensing on it)