Null GetLine1Number - basic4android

Dim p As PhoneId
Dim ph As Phone
numPhone = p.GetLine1Number
I need another way that extract the number phone.
Im using number phone for register our app, that was sell on market.
As market mercant, when our app was suspended we only have that way to re-register app for the people that bought it.
Using GetLine1Number, works for us. but for example a see on a S Galaxy S and SII doesnt show anything. On our Optimus 2x works fine.
Is there another way to get the phone number?
Using stackoverflow for first time like Erel said ;)
PS: Optimus running 2.3 and S and SII too! ;)

I don't think that there is another way to get the phone number. You can use PhoneId.GetDeviceId if the line number is not available to get a unique id.

Related

iPhone displaying random codes on website

I'm unable to figure out why there are random codes being shown in various places on this website. It doesn't happen on other websites. It also doesn't seem to happen on Android devices. It doesn't happen when connected to WiFi. On one iPhone with iOS8 it doesn't have it, but on another it does. On another iPhone with IOS7, it has it. I can't make any sense out of the codes. Any ideas?
See image here: http://i.stack.imgur.com/IdblN.png
http://arstechnica.com/security/2014/10/verizon-wireless-injects-identifiers-link-its-users-to-web-requests/
As your comment suggests you might be seeing a tracking ID from your ISP, AT&T in this case.
Verizon uses the UIDH field which identifies someone to Ad services. It is essentially double-dipping, when the customer is also the product. Not to mention some website receives this header, combines user-provided data with the field, then selling this to someone else... Easiest data-collection strategy of their lives.

is it possible to track user position from his phone number in ios?

I am working on map based iphone application. Where i need to find user position of week days from morning 9:00 AM to 5:00 PM either by using Device IDs or his mobile number. I know that Apple has instructed third-party developers to cease tracking iPhone, iPad, and iPod Touch users via the unique serial number associated with each one of its hardware devices. But is it possible to track position from any other way ?
Thanks
The only possible way is to use location based APIs. Device ID and MAC are deprecated and giving same results for iOS7.
It is not possible to track with mobile number as well. Service providers can help for that but not with help of phone.
I don't think you can track a phone by the mobile number unless you are the police or something, and have access to that data.

iPhone Call screen note

I want to show particular note about incoming number on call screen of an iPhone.
E.g. I have Jane as a contact saved in my Contacts on an iPhone. I also have a note associated with that Jane's contact, let's say that note is "Dentist".
Now If I get call from Jane I should be able to see "Dentist" on call screen.
I am currently using PhoneGap framework.
I have been searching for it but had no luck.
This is not possible on non-jailbroken iPhone. But you can achieve it in some other way like how the sticky notes apps are working,
Ask the user to create a note
Generate a image from the user designed note(using code)
Finally ask the user to assign the image to the contact.
No, you have no way influence how contact is displayed in phone call at not jailbroken iPhone. Information is taken from address book only.

Getting User's Carrier Money iPhone

I'm making an app and i'm curious: is there any way to know how much money does the user have on his SIM without the need to dial it on the phone app?
For example, in Portugal i have to type *#100# to know how much money i have and how many messages i have left.
I think you can not do it. The SIM access requires the use of AT commands, and this is not included in the official SDK. However, you may develop the app for jailbroken devices. Also I'm not sure that the credit is stored in the SIM.

How to avoid piracy in iPhone apps by server side validation?

As par my app requirement, there is a couple of scenarios that I need to handle.
Scenario 1: To avoid piracy, I want to include some piece of code, whose job is sending both IMEI and Serial number of IPhone.
Scenario 2: At server side, I've a database, which has a list of both IMEI and Serial No info. Here I wanna validate both IMEI and Serial numbers. If both are not matched then I can make sure that the app is pirated.
Idea seems good. But I don't know how to handle these two scenarios in my app.
Any help is greatly appreciated.
This isn't something you can do with the iPhone SDK. The iPhone's IMEI or the serial number are not accessible via any API. Also an iPod Touch doesn't even have an IMEI.
Your idea is flawed too. How would you have gotten the IMEI and serial number into your servers database prior to app sending you the details? You can't get these details during purchase because its handled by the App Store and you can't get at that.
If the app was pirated, it would send you the IMEI and serial number anyway, so you can't rely on the app sending them the first time it's run because that would offer absolutely no protection against piracy at all.
The only option you have is to rely on Apple's fairplay DRM. Even though it has been cracked, and there are pirates, it's something you just need to deal with...