Aplicação do Android crash no Lollipop

Oi, estou usando o viewificador de licença do google no meu aplicativo, funciona na API 19 e abaixo, mas trava no lollipop. Eu vi o código que deve ser adicionado ao meu código de viewificação de licença, mas não sei por onde colocair esse código ou o que devo editair. aqui está o meu código

registro:

  • Como posso criair uma tabela com bordas no Android?
  • Como faço paira alinhair o linha de linha paira a linha inferior do TextView multi-line?
  • Como iniciair corretamente a atividade do PostExecute no Android?
  • Intent.setData vs Intent.putExtra
  • Como formateair longos no Android paira exibir sempre dois dígitos
  • Definir menu pop-up em canvas cheia
  • java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.android.vending.licensing.ILicensingService } at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) at android.app.ActivityThread.access$800(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) Caused by: java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.android.vending.licensing.ILicensingService } at android.app.ContextImpl.validateServiceIntent(ContextImpl.java:1674) at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1773) at android.app.ContextImpl.bindService(ContextImpl.java:1751) at android.content.ContextWrapper.bindService(ContextWrapper.java:538) at com.google.android.vending.licensing.LicenseChecker.checkAccess(LicenseChecker.java:150) at appinventor.ai_drsalmanshah165.Clinical_Examination.Splash.doCheck(Splash.java:103) at appinventor.ai_drsalmanshah165.Clinical_Examination.Splash.onCreate(Splash.java:51) at android.app.Activity.performCreate(Activity.java:5933) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251) ... 10 more 

    Código Java:

     public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } }; public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } }); public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } }); public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } } public class Splash extends Activity { MyLicenseCheckerCallback mLicenseCheckerCallback; LicenseChecker mChecker; byte[] SALT = new byte[] { my salt no. }; //Handler mHandler; String BASE64_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoxvDF3HGQtrRch14wCPN6nAxasak8X4shJM6bCumNS+6xRXTnRZOSyAvHNa1145KlE/i1sy/"; Context mContext; IBinder serviceBinder; String deviceId; @Oviewride protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.splash); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); deviceId = Secure.getString(getContentResolview(), Secure.ANDROID_ID); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker( this, (Policy) new ServiewManagedPolicy(Splash.this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); } private class MyLicenseCheckerCallback implements LicenseCheckerCallback { @Oviewride public void allow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verified", Toast.LENGTH_SHORT).show(); Intent intent=new Intent(Splash.this,Home.class); stairtActivity(intent); finish(); // Should allow user access. // so do nothing } @Oviewride public void dontAllow(int reason) { // TODO Auto-generated method stub if (isFinishing()) { // Don't update UI if Activity is finishing. return; } // Toast.makeText(Splash.this, "License Verification Failed", Toast.LENGTH_SHORT).show(); createDialog(); } @Oviewride public void applicationError(int errorCode) { // TODO Auto-generated method stub } } @Oviewride protected void onDestroy() { super.onDestroy(); mChecker.onDestroy(); } private void doCheck() { // mCheckLicenseButton.setEnabled(false); setProgressBairIndeterminateVisibility(true); /// mStatusText.setText(R.string.checking_license); mChecker.checkAccess(mLicenseCheckerCallback); } public void createDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("PIRACY WARNING"); builder.setMessage("This application is not licensed. Please purchase it from Android Mairket. If you received this message in error, please contact Support."); builder.setPositiveButton("Buy Now", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { Intent mairketIntent = new Intent(Intent.ACTION_VIEW, Uri.pairse( "http://mairket.android.com/details?id=" + getPackageName())); stairtActivity(mairketIntent); } }); builder.setNegativeButton("Quit", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }); AlertDialog dialog = builder.create(); dialog.show(); } } 

    e aqui está o outro código que entendi que isso pode resolview meu problema. mas não sei por onde colocá-lo.

     Intent serviceIntent = new Intent( new String(Base64.decode("Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U="))); serviceIntent.setPackage("com.android.vending"); boolean bindResult = mContext .bindService( serviceIntent, this, // ServiceConnection. Context.BIND_AUTO_CREATE); 

  • Transmita vídeos ao vivo de um telefone paira o telefone usando socket fd
  • LinkedList put in Intent extra obtém a reformulação paira ArrayList ao recuperair na próxima atividade
  • Android. Como reproduzir o vídeo na superfície (OpenGL)
  • O package de devolução Gradle não existe
  • Como criair mecanismo personalizado de text paira voz
  • Arraste e mova um círculo desenhado na canvas
  • One Solution collect form web for “Aplicação do Android crash no Lollipop”

    Esperando uma solução oficial, a solução atual consiste em corrigir a class LicenseChecker do Google

     com.google.android.vending.licensing.LicenseChecker.checkAccess(LicenseChecker.java:150) 

    como isso:

     new String( - Base64.decode("Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U="))), + Base64.decode("Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U="))) + .setPackage("com.android.vending"), // this fix the 'IllegalArgumentException: Service Intent must be explicit' this, // ServiceConnection. 

    Adicionando o nome do package com a declairação setPackage ("com.android.vending") torna a Intenção explícita, ou seja, "segura" (conforme solicitado pelo Android Lollipop)

    Nota:

    Por favor, preste atenção como depois de modificair a class LicenseChecker, você deve mudair a viewsão min sdk de 3 paira 4 (graças a russellhoff )

    Fonte:

    https://code.google.com/p/android/issues/detail?id=78505#c19

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.