How to get IMEI from Android or iPhone
Tech-Today

How to get IMEI from Android or iPhone


For android it's pretty straight forward. You just have to add read phone state permission.

<uses-permission android:name="android.permission.READ_PHONE_STATE"/>

And call the API:
String imei = TelephonyManager.getDefault().getDeviceId();
if (TextUtils.isEmpty(imei)) {
return "";
}

For iPhone I guess IMEI is not accessible as you could read on most articles. But perhaps you can use the device unique identifier.

UIDevice *myDevice = [UIDevice currentDevice];
NSString *deviceUDID = [myDevice uniqueIdentifier];




- Android Studio - Displaying List View Inside Alertdialog
Android Studio - Displaying List View Inside AlertDialog 1.) Follow this code: ================>Note: custom_dialog_layout.xml is the layout that will pop-up >Note: row.xml is the item used for populating rowAlertDialog.Builder builder = new AlertDialog.Builder(new...

- Android Studio - Creating Material Design App Bar
Android Studio - Creating Material Design App Bar 1.) Set-up the color that we'll use for the app bar: ======================================== >Create a new xml inside values and name it color.xml <resources>     <color name="ColorPrimary">#FF5722</color>...

- Using Gridview Layout In Android
So, lately I've been relearning android development and as I expected there were already a lot of changes since I last code in it (eclair). Like the concept of Fragment (which I love), unfortunately statistics show that most of the users are still...

- How To Sign Your Android Application To Use The Map Api In Mobile Device
There are 4 steps that need to be done to release a mobile application with map on a android powered mobile device. Assumption: You have eclipse installed with android plugin installed. If you don't know how just follow the steps here: http://developer.android.com/sdk/eclipse-adt.html...

- Android's Datepickerdialog And Timepickerdialog Implementation
Layout (calendar.xml) Java Class: package org.ipiel.demo.layout; import java.text.DateFormat; import java.util.Calendar; import android.app.Activity; import android.app.DatePickerDialog; import android.app.TimePickerDialog; import android.os.Bundle;...



Tech-Today








.