| Line 12... |
Line 12... |
| 12 |
import android.os.AsyncTask;
|
12 |
import android.os.AsyncTask;
|
| 13 |
import android.os.Build;
|
13 |
import android.os.Build;
|
| 14 |
import android.os.Bundle;
|
14 |
import android.os.Bundle;
|
| 15 |
import android.support.v7.app.ActionBarActivity;
|
15 |
import android.support.v7.app.ActionBarActivity;
|
| 16 |
import android.telephony.TelephonyManager;
|
16 |
import android.telephony.TelephonyManager;
|
| - |
|
17 |
import android.util.Log;
|
| 17 |
import android.view.Menu;
|
18 |
import android.view.Menu;
|
| 18 |
import android.view.MenuItem;
|
19 |
import android.view.MenuItem;
|
| 19 |
import android.widget.ProgressBar;
|
20 |
import android.widget.ProgressBar;
|
| - |
|
21 |
import android.widget.Toast;
|
| 20 |
|
22 |
|
| 21 |
import com.google.android.gms.analytics.HitBuilders;
|
23 |
import com.google.android.gms.analytics.HitBuilders;
|
| 22 |
import com.google.android.gms.analytics.Tracker;
|
24 |
import com.google.android.gms.analytics.Tracker;
|
| 23 |
import com.saholic.profittill.Constants.ProfitTillConstants;
|
25 |
import com.saholic.profittill.Constants.ProfitTillConstants;
|
| - |
|
26 |
import com.saholic.profittill.Utils.UtilityFunctions;
|
| 24 |
import com.saholic.profittill.main.GoogleAnalyticsTracker;
|
27 |
import com.saholic.profittill.main.GoogleAnalyticsTracker;
|
| 25 |
import com.saholic.profittill.main.LoginActivity;
|
28 |
import com.saholic.profittill.main.LoginActivity;
|
| 26 |
import com.saholic.profittill.main.MainActivity;
|
29 |
import com.saholic.profittill.main.MainActivity;
|
| 27 |
import com.saholic.profittill.main.MobileNumber;
|
30 |
import com.saholic.profittill.main.MobileNumber;
|
| 28 |
import com.saholic.profittill.main.ReferrerActivity;
|
31 |
import com.saholic.profittill.main.ReferrerActivity;
|
| Line 44... |
Line 47... |
| 44 |
|
47 |
|
| 45 |
|
48 |
|
| 46 |
public class SplashScreen extends ActionBarActivity {
|
49 |
public class SplashScreen extends ActionBarActivity {
|
| 47 |
SharedPreferences apiData, userData,apkData;
|
50 |
SharedPreferences apiData, userData,apkData;
|
| 48 |
SharedPreferences.Editor apiEditor,userEditor,apkDataEditor;
|
51 |
SharedPreferences.Editor apiEditor,userEditor,apkDataEditor;
|
| 49 |
|
- |
|
| - |
|
52 |
UtilityFunctions utilityFunctions;
|
| 50 |
AlertDialog dialog1;
|
53 |
AlertDialog dialog1;
|
| 51 |
AlertDialog.Builder b;
|
54 |
AlertDialog.Builder b;
|
| 52 |
ProgressBar pd;
|
55 |
ProgressBar pd;
|
| 53 |
|
56 |
|
| 54 |
ArrayList<NameValuePair> apkDataListValue;
|
57 |
ArrayList<NameValuePair> apkDataListValue;
|
| 55 |
@Override
|
58 |
@Override
|
| 56 |
protected void onCreate(Bundle savedInstanceState) {
|
59 |
protected void onCreate(Bundle savedInstanceState) {
|
| 57 |
TestinAgent.init(this);
|
60 |
TestinAgent.init(this);
|
| 58 |
super.onCreate(savedInstanceState);
|
61 |
super.onCreate(savedInstanceState);
|
| - |
|
62 |
Log.d("On Create","On Create");
|
| 59 |
setContentView(R.layout.activity_splash_screen);
|
63 |
setContentView(R.layout.activity_splash_screen);
|
| 60 |
getSupportActionBar().hide();
|
64 |
getSupportActionBar().hide();
|
| 61 |
userData = getApplicationContext().getSharedPreferences("User_Data", MODE_PRIVATE);
|
65 |
userData = getApplicationContext().getSharedPreferences("User_Data", MODE_PRIVATE);
|
| 62 |
apkData = getApplicationContext().getSharedPreferences("APK_Data", MODE_PRIVATE);
|
66 |
apkData = getApplicationContext().getSharedPreferences("APK_Data", MODE_PRIVATE);
|
| 63 |
apiData = getApplicationContext().getSharedPreferences("API_Data", MODE_PRIVATE);
|
67 |
apiData = getApplicationContext().getSharedPreferences("API_Data", MODE_PRIVATE);
|
| Line 74... |
Line 78... |
| 74 |
String apkVersionName = apkData.getString("versionName","");
|
78 |
String apkVersionName = apkData.getString("versionName","");
|
| 75 |
if(userData.getString("id","").isEmpty()) {
|
79 |
if(userData.getString("id","").isEmpty()) {
|
| 76 |
|
80 |
|
| 77 |
}else {
|
81 |
}else {
|
| 78 |
if (apkVersionCode.isEmpty()) {
|
82 |
if (apkVersionCode.isEmpty()) {
|
| 79 |
PackageManager manager = this.getPackageManager();
|
83 |
/*PackageManager manager = this.getPackageManager();
|
| 80 |
PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0);
|
84 |
PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0);
|
| 81 |
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
|
85 |
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
|
| 82 |
apkDataListValue = new ArrayList<>();
|
86 |
apkDataListValue = new ArrayList<>();
|
| 83 |
apkDataListValue.add(new BasicNameValuePair("user_id",userData.getString("id","")));
|
87 |
apkDataListValue.add(new BasicNameValuePair("user_id",userData.getString("id","")));
|
| 84 |
apkDataListValue.add(new BasicNameValuePair("versioncode",info.versionCode+""));
|
88 |
apkDataListValue.add(new BasicNameValuePair("versioncode",info.versionCode+""));
|
| Line 89... |
Line 93... |
| 89 |
apkDataListValue.add(new BasicNameValuePair("model",Build.MODEL));
|
93 |
apkDataListValue.add(new BasicNameValuePair("model",Build.MODEL));
|
| 90 |
apkDataListValue.add(new BasicNameValuePair("brand",Build.BRAND));
|
94 |
apkDataListValue.add(new BasicNameValuePair("brand",Build.BRAND));
|
| 91 |
apkDataEditor.putString("versionCode", info.versionCode + "");
|
95 |
apkDataEditor.putString("versionCode", info.versionCode + "");
|
| 92 |
apkDataEditor.putString("versionName", info.versionName);
|
96 |
apkDataEditor.putString("versionName", info.versionName);
|
| 93 |
apkDataEditor.putString("osVersion",android.os.Build.VERSION.SDK_INT+"");
|
97 |
apkDataEditor.putString("osVersion",android.os.Build.VERSION.SDK_INT+"");
|
| 94 |
apkDataEditor.putString("imeiNumber",telephonyManager.getDeviceId());
|
98 |
apkDataEditor.putString("imeiNumber",telephonyManager.getDeviceId());*/
|
| - |
|
99 |
utilityFunctions=new UtilityFunctions();
|
| - |
|
100 |
apkDataListValue = utilityFunctions.getDeviceInformation(this);
|
| 95 |
|
101 |
|
| 96 |
if(isInternetOn()) {
|
102 |
if(isInternetOn()) {
|
| 97 |
new pushApkData().execute();
|
103 |
new pushApkData().execute();
|
| 98 |
}
|
104 |
}
|
| 99 |
} else if (!(apkData.getString("checkId","blank").equalsIgnoreCase(userData.getString("id","blank")))) {
|
105 |
} else if (!(apkData.getString("checkId","blank").equalsIgnoreCase(userData.getString("id","blank")))) {
|
| 100 |
PackageManager manager = this.getPackageManager();
|
- |
|
| 101 |
PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0);
|
- |
|
| 102 |
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
|
- |
|
| 103 |
apkDataListValue = new ArrayList<>();
|
106 |
utilityFunctions=new UtilityFunctions();
|
| 104 |
apkDataListValue.add(new BasicNameValuePair("user_id",userData.getString("id","")));
|
- |
|
| 105 |
apkDataListValue.add(new BasicNameValuePair("versioncode",info.versionCode+""));
|
- |
|
| 106 |
apkDataListValue.add(new BasicNameValuePair("versionname",info.versionName+""));
|
- |
|
| 107 |
apkDataListValue.add(new BasicNameValuePair("osversion",android.os.Build.VERSION.SDK_INT+""));
|
- |
|
| 108 |
apkDataListValue.add(new BasicNameValuePair("imeinumber",telephonyManager.getDeviceId()));
|
- |
|
| 109 |
apkDataListValue.add(new BasicNameValuePair("manufacturer",Build.MANUFACTURER));
|
- |
|
| 110 |
apkDataListValue.add(new BasicNameValuePair("model",Build.MODEL));
|
- |
|
| 111 |
apkDataListValue.add(new BasicNameValuePair("brand",Build.BRAND));
|
- |
|
| 112 |
apkDataEditor.putString("versionCode",info.versionCode+"");
|
- |
|
| 113 |
apkDataEditor.putString("versionName",info.versionName);
|
107 |
apkDataListValue = utilityFunctions.getDeviceInformation(this);
|
| 114 |
apkDataEditor.putString("osVersion",android.os.Build.VERSION.SDK_INT+"");
|
- |
|
| 115 |
apkDataEditor.putString("imeiNumber",telephonyManager.getDeviceId());
|
- |
|
| 116 |
if(isInternetOn()) {
|
108 |
if(isInternetOn()) {
|
| 117 |
new pushApkData().execute();
|
109 |
new pushApkData().execute();
|
| 118 |
}
|
110 |
}
|
| 119 |
} else if (Integer.parseInt(apkVersionCode) == getPackageManager().getPackageInfo(getPackageName(), 0).versionCode) {
|
111 |
} else if (Integer.parseInt(apkVersionCode) == getPackageManager().getPackageInfo(getPackageName(), 0).versionCode) {
|
| 120 |
|
112 |
|
| 121 |
} else {
|
113 |
} else {
|
| 122 |
PackageManager manager = this.getPackageManager();
|
- |
|
| 123 |
PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0);
|
- |
|
| 124 |
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
|
- |
|
| 125 |
apkDataListValue = new ArrayList<>();
|
114 |
utilityFunctions=new UtilityFunctions();
|
| 126 |
apkDataListValue.add(new BasicNameValuePair("user_id",userData.getString("id","")));
|
- |
|
| 127 |
apkDataListValue.add(new BasicNameValuePair("versioncode",info.versionCode+""));
|
- |
|
| 128 |
apkDataListValue.add(new BasicNameValuePair("versionname",info.versionName+""));
|
- |
|
| 129 |
apkDataListValue.add(new BasicNameValuePair("osversion",android.os.Build.VERSION.SDK_INT+""));
|
- |
|
| 130 |
apkDataListValue.add(new BasicNameValuePair("imeinumber",telephonyManager.getDeviceId()));
|
- |
|
| 131 |
apkDataListValue.add(new BasicNameValuePair("manufacturer",Build.MANUFACTURER));
|
- |
|
| 132 |
apkDataListValue.add(new BasicNameValuePair("model",Build.MODEL));
|
- |
|
| 133 |
apkDataListValue.add(new BasicNameValuePair("brand",Build.BRAND));
|
- |
|
| 134 |
apkDataEditor.putString("versionCode",info.versionCode+"");
|
- |
|
| 135 |
apkDataEditor.putString("versionName",info.versionName);
|
115 |
apkDataListValue = utilityFunctions.getDeviceInformation(this);
|
| 136 |
apkDataEditor.putString("osVersion",android.os.Build.VERSION.SDK_INT+"");
|
- |
|
| 137 |
apkDataEditor.putString("imeiNumber",telephonyManager.getDeviceId());
|
- |
|
| 138 |
if(isInternetOn()) {
|
116 |
if(isInternetOn()) {
|
| 139 |
new pushApkData().execute();
|
117 |
new pushApkData().execute();
|
| 140 |
}
|
118 |
}
|
| 141 |
}
|
119 |
}
|
| 142 |
}
|
120 |
}
|
| Line 207... |
Line 185... |
| 207 |
class fetchAPISettings extends AsyncTask<String, Integer, JSONObject> {
|
185 |
class fetchAPISettings extends AsyncTask<String, Integer, JSONObject> {
|
| 208 |
|
186 |
|
| 209 |
@Override
|
187 |
@Override
|
| 210 |
protected void onPreExecute() {
|
188 |
protected void onPreExecute() {
|
| 211 |
super.onPreExecute();
|
189 |
super.onPreExecute();
|
| 212 |
/*final Dialog dialog = new Dialog(getApplicationContext(), android.R.style.Theme_Translucent);
|
- |
|
| 213 |
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
- |
|
| 214 |
//here we set layout of progress dialog
|
- |
|
| 215 |
dialog.setContentView(R.layout.activity_splash_internet_not_working);*/
|
- |
|
| 216 |
//bar.setVisibility(View.VISIBLE);
|
- |
|
| 217 |
//showProgressDialog();
|
- |
|
| 218 |
}
|
190 |
}
|
| 219 |
|
191 |
|
| 220 |
@Override
|
192 |
@Override
|
| 221 |
protected JSONObject doInBackground(String... arg0) {
|
193 |
protected JSONObject doInBackground(String... arg0) {
|
| 222 |
try {
|
194 |
try {
|
| Line 283... |
Line 255... |
| 283 |
class pushApkData extends AsyncTask<String, Integer, String> {
|
255 |
class pushApkData extends AsyncTask<String, Integer, String> {
|
| 284 |
|
256 |
|
| 285 |
@Override
|
257 |
@Override
|
| 286 |
protected void onPreExecute() {
|
258 |
protected void onPreExecute() {
|
| 287 |
super.onPreExecute();
|
259 |
super.onPreExecute();
|
| 288 |
// showProgressDialog();
|
- |
|
| 289 |
}
|
260 |
}
|
| 290 |
|
261 |
|
| 291 |
@Override
|
262 |
@Override
|
| 292 |
protected String doInBackground(String... arg0) {
|
263 |
protected String doInBackground(String... arg0) {
|
| 293 |
try {
|
264 |
try {
|
| Line 323... |
Line 294... |
| 323 |
public final boolean isInternetOn() {
|
294 |
public final boolean isInternetOn() {
|
| 324 |
|
295 |
|
| 325 |
ConnectivityManager connection =
|
296 |
ConnectivityManager connection =
|
| 326 |
(ConnectivityManager)getSystemService(this.getBaseContext().CONNECTIVITY_SERVICE);
|
297 |
(ConnectivityManager)getSystemService(this.getBaseContext().CONNECTIVITY_SERVICE);
|
| 327 |
|
298 |
|
| 328 |
if ( connection.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||
|
- |
|
| 329 |
connection.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||
|
- |
|
| 330 |
connection.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||
|
299 |
if ( connection.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||
|
| 331 |
connection.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {
|
300 |
connection.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {
|
| 332 |
|
301 |
|
| 333 |
/*Toast.makeText(this, " Connected ", Toast.LENGTH_LONG).show();*/
|
302 |
/*Toast.makeText(this, " Connected ", Toast.LENGTH_LONG).show();*/
|
| 334 |
return true;
|
303 |
return true;
|
| 335 |
|
304 |
|
| 336 |
} else if (
|
305 |
} else if (
|
| 337 |
|
- |
|
| - |
|
306 |
connection.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||
|
| - |
|
307 |
connection.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||
|
| 338 |
connection.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||
|
308 |
connection.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||
|
| 339 |
connection.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {
|
309 |
connection.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {
|
| 340 |
|
310 |
|
| 341 |
/* Toast.makeText(this, " Not Connected ", Toast.LENGTH_LONG).show();*/
|
311 |
/* Toast.makeText(this, " Not Connected ", Toast.LENGTH_LONG).show();*/
|
| 342 |
return false;
|
312 |
return false;
|
| 343 |
}
|
313 |
}
|
| 344 |
return false;
|
314 |
return false;
|
| 345 |
}
|
315 |
}
|
| 346 |
|
316 |
|
| 347 |
private void showProgressDialog()
|
317 |
private void showProgressDialog()
|
| 348 |
{
|
318 |
{
|
| 349 |
// bar = (ProgressBar) this.findViewById(R.id.progressBar);
|
- |
|
| 350 |
/* pDlg = new ProgressDialog(new ContextThemeWrapper(SplashScreen.this, android.R.style.Theme_Holo_Light_Dialog));
|
- |
|
| 351 |
pDlg.setProgressStyle(ProgressDialog.STYLE_SPINNER);
|
- |
|
| 352 |
pDlg.setIndeterminate(true);
|
- |
|
| 353 |
pDlg.setCancelable(false);
|
- |
|
| 354 |
pDlg.setProgressDrawable(getResources().getDrawable(R.drawable.greenprogressdialog));
|
- |
|
| 355 |
pDlg.show();*/
|
- |
|
| 356 |
|
- |
|
| 357 |
// pDlg.setContentView(R.layout.activity_splash_internet_not_working);
|
- |
|
| 358 |
pDlg = new ProgressDialog(getApplicationContext());
|
319 |
pDlg = new ProgressDialog(getApplicationContext());
|
| 359 |
pDlg.setIndeterminate(true);
|
320 |
pDlg.setIndeterminate(true);
|
| 360 |
pDlg.setCancelable(false);
|
321 |
pDlg.setCancelable(false);
|
| 361 |
pDlg.show();
|
322 |
pDlg.show();
|
| 362 |
}
|
323 |
}
|
| 363 |
|
324 |
|
| 364 |
ProgressDialog pDlg;
|
325 |
ProgressDialog pDlg;
|
| - |
|
326 |
|
| - |
|
327 |
/*
|
| - |
|
328 |
|
| - |
|
329 |
@Override
|
| - |
|
330 |
protected void onRestoreInstanceState(Bundle savedInstanceState) {
|
| - |
|
331 |
Log.d("On Restore Instance","On Restore Instance");
|
| - |
|
332 |
super.onRestoreInstanceState(savedInstanceState);
|
| - |
|
333 |
}
|
| - |
|
334 |
|
| - |
|
335 |
@Override
|
| - |
|
336 |
protected void onRestart() {
|
| - |
|
337 |
Log.d("On Restart","On Restart");
|
| 365 |
//ProgressBar bar;
|
338 |
super.onRestart();
|
| - |
|
339 |
|
| - |
|
340 |
try {
|
| - |
|
341 |
String apkVersionCode = apkData.getString("versionCode","");
|
| - |
|
342 |
String apkVersionName = apkData.getString("versionName","");
|
| - |
|
343 |
if(userData.getString("id","").isEmpty()) {
|
| - |
|
344 |
|
| - |
|
345 |
}else {
|
| - |
|
346 |
if (apkVersionCode.isEmpty()) {
|
| - |
|
347 |
apkDataListValue = getDeviceInformation();
|
| - |
|
348 |
|
| - |
|
349 |
if(isInternetOn()) {
|
| - |
|
350 |
new pushApkData().execute();
|
| - |
|
351 |
}
|
| - |
|
352 |
} else if (!(apkData.getString("checkId","blank").equalsIgnoreCase(userData.getString("id","blank")))) {
|
| - |
|
353 |
apkDataListValue = getDeviceInformation();
|
| - |
|
354 |
if(isInternetOn()) {
|
| - |
|
355 |
new pushApkData().execute();
|
| - |
|
356 |
}
|
| - |
|
357 |
} else if (Integer.parseInt(apkVersionCode) == getPackageManager().getPackageInfo(getPackageName(), 0).versionCode) {
|
| - |
|
358 |
|
| - |
|
359 |
} else {
|
| - |
|
360 |
apkDataListValue = getDeviceInformation();
|
| - |
|
361 |
if(isInternetOn()) {
|
| - |
|
362 |
new pushApkData().execute();
|
| - |
|
363 |
}
|
| - |
|
364 |
}
|
| - |
|
365 |
}
|
| - |
|
366 |
}catch (Exception e){
|
| - |
|
367 |
e.printStackTrace();
|
| - |
|
368 |
}
|
| - |
|
369 |
|
| - |
|
370 |
if(isInternetOn()){
|
| - |
|
371 |
new fetchAPISettings().execute();
|
| - |
|
372 |
}
|
| - |
|
373 |
else{
|
| - |
|
374 |
b= new AlertDialog.Builder(this);
|
| - |
|
375 |
b.setMessage("No internet connection. Please try again.");
|
| - |
|
376 |
b.setCancelable(false);
|
| - |
|
377 |
b.setPositiveButton("Retry", new DialogInterface.OnClickListener()
|
| - |
|
378 |
{
|
| - |
|
379 |
@Override
|
| - |
|
380 |
public void onClick(DialogInterface dialog, int which) {
|
| - |
|
381 |
if(isInternetOn()){
|
| - |
|
382 |
new fetchAPISettings().execute();
|
| - |
|
383 |
dialog1.dismiss();
|
| - |
|
384 |
}
|
| - |
|
385 |
else{
|
| - |
|
386 |
dialog1 = b.create();
|
| - |
|
387 |
dialog1.show();
|
| - |
|
388 |
}
|
| - |
|
389 |
}
|
| - |
|
390 |
|
| - |
|
391 |
});
|
| - |
|
392 |
b.setNegativeButton("No", new DialogInterface.OnClickListener() {
|
| - |
|
393 |
@Override
|
| - |
|
394 |
public void onClick(DialogInterface dialog, int which) {
|
| - |
|
395 |
finish();
|
| - |
|
396 |
|
| - |
|
397 |
}
|
| - |
|
398 |
});
|
| - |
|
399 |
dialog1 = b.create();
|
| - |
|
400 |
dialog1.show();
|
| - |
|
401 |
}
|
| - |
|
402 |
|
| - |
|
403 |
}
|
| - |
|
404 |
|
| - |
|
405 |
|
| - |
|
406 |
public ArrayList<NameValuePair> getDeviceInformation(){
|
| - |
|
407 |
ArrayList<NameValuePair> deviceDataList=null;
|
| - |
|
408 |
try {
|
| - |
|
409 |
PackageManager manager = this.getPackageManager();
|
| - |
|
410 |
PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0);
|
| - |
|
411 |
TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
|
| - |
|
412 |
deviceDataList = new ArrayList<>();
|
| - |
|
413 |
deviceDataList.add(new BasicNameValuePair("user_id", userData.getString("id", "")));
|
| - |
|
414 |
deviceDataList.add(new BasicNameValuePair("versioncode", info.versionCode + ""));
|
| - |
|
415 |
deviceDataList.add(new BasicNameValuePair("versionname", info.versionName + ""));
|
| - |
|
416 |
deviceDataList.add(new BasicNameValuePair("osversion", android.os.Build.VERSION.SDK_INT + ""));
|
| - |
|
417 |
deviceDataList.add(new BasicNameValuePair("imeinumber", telephonyManager.getDeviceId()));
|
| - |
|
418 |
deviceDataList.add(new BasicNameValuePair("manufacturer", Build.MANUFACTURER));
|
| - |
|
419 |
deviceDataList.add(new BasicNameValuePair("model", Build.MODEL));
|
| - |
|
420 |
deviceDataList.add(new BasicNameValuePair("brand", Build.BRAND));
|
| - |
|
421 |
apkDataEditor.putString("versionCode", info.versionCode + "");
|
| - |
|
422 |
apkDataEditor.putString("versionName", info.versionName);
|
| - |
|
423 |
apkDataEditor.putString("osVersion", android.os.Build.VERSION.SDK_INT + "");
|
| - |
|
424 |
apkDataEditor.putString("imeiNumber", telephonyManager.getDeviceId());
|
| - |
|
425 |
}catch (Exception e){
|
| - |
|
426 |
e.printStackTrace();
|
| - |
|
427 |
}
|
| - |
|
428 |
return deviceDataList;
|
| - |
|
429 |
}
|
| - |
|
430 |
*/
|
| - |
|
431 |
|
| - |
|
432 |
/*@Override
|
| - |
|
433 |
protected void onPause() {
|
| - |
|
434 |
Log.d("On Pause","On Pause");
|
| - |
|
435 |
super.onPause();
|
| - |
|
436 |
}*/
|
| 366 |
}
|
437 |
}
|