private void popUpMiniApp() { TooleapPopOutMiniApp miniApp = new TooleapPopOutMiniApp(MainActivity.this, MMConvertActivity.class); miniApp.contentTitle = "M Convert"; miniApp.contentText = "Myanmar Convert"; miniApp.bubbleBackgroundColor = 0xFF3498DB; miniApp.notificationText = "Welcome from M Convert!"; miniApp.notificationBadgeNumber = 1; miniApp.when = new Date(); editor.putBoolean(Config.isToolLeap, true); editor.apply(); Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.m_convert); miniApp.setIcon(bitmap); Tooleap.getInstance(MainActivity.this).addMiniApp(miniApp); IntentFilter intentFiltertwo = new IntentFilter(); intentFiltertwo.addAction(Tooleap.Consts.USER_REMOVED_MINI_APP); registerReceiver(new TooleapOnOffReceiver(), intentFiltertwo); long l = Tooleap.getInstance(MainActivity.this).getVisibleAppId(); }
private void getAllMiniApps() { Tooleap.getInstance(MainActivity.this).getAllMiniApps(); }