MEEP! X2 discontinued product how use piano accessory ?
- By JBdAmiens
- Smartphones
- 3 Replies
Hello for this product discontinued i want use piano accessory and apps not found...help please !
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.


public static long getTotalTrafficInRange(Context context, Date fromDate, Date toDate) throws UsageStatsNotActiveException, NoPermissionException
{
boolean usageStatsActive = doIHavePermission(context);
if (!usageStatsActive) {
throw new UsageStatsNotActiveException(context);
}
long total = 0;
TelephonyManager tele = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
if (ActivityCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {
throw new NoPermissionException(Manifest.permission.READ_PHONE_STATE);
}
String actualSubscriberId = tele.getSubscriberId();
NetworkStatsManager networkStatsManager = (NetworkStatsManager) context.getSystemService(Context.NETWORK_STATS_SERVICE);
Date from = ConvertDateToCalendar(fromDate);
Date to = ConvertDateToCalendar(toDate);
//Total
NetworkStats.Bucket bucket;
try {
bucket = networkStatsManager.querySummaryForDevice(ConnectivityManager.TYPE_MOBILE, actualSubscriberId, from.getTime(), to.getTime());
if(bucket != null){
total = (bucket.getRxBytes() + bucket.getTxBytes());
}
} catch (RemoteException e) {
e.printStackTrace();
}
return total;
}
public static Date ConvertDateToCalendar(Date date)
{
Calendar fromDateCalendar = Calendar.getInstance();
fromDateCalendar.setTime(date);
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.YEAR, fromDateCalendar.get(Calendar.YEAR));
calendar.set(Calendar.MONTH, fromDateCalendar.get(Calendar.MONTH));
calendar.set(Calendar.DAY_OF_MONTH, fromDateCalendar.get(Calendar.DAY_OF_MONTH));
calendar.set(Calendar.HOUR_OF_DAY, fromDateCalendar.get(Calendar.HOUR_OF_DAY));
calendar.set(Calendar.MINUTE, fromDateCalendar.get(Calendar.MINUTE));
calendar.set(Calendar.SECOND, fromDateCalendar.get(Calendar.SECOND));
calendar.set(Calendar.MILLISECOND, fromDateCalendar.get(Calendar.MILLISECOND));
return calendar.getTime();
}
//this date is new Date() minus 1,2,3,5,10 or 15 minutes, not more then this values
fromDate = new Date(PersistentHelper.getLastDateUsedForCalculateData(context));
//Calculate toDate
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
if(!userChangeDateManually || !userChangeZone) {
calendar.set(Calendar.SECOND, 0);
}
calendar.add(Calendar.MILLISECOND, -1);
toDateWS = calendar.getTime();
rientation="horizontal">
rientation="vertical"></LinearLayout>
rientation="vertical">
verlapAnchor="false"
opupBackground="@color/menuColor"private class HTMLLoader extends AsyncTask<Void, Void, Void> {
@Override
protected Void doInBackground(Void... params) {
try {
Thread.sleep(2000);
}
catch (java.lang.InterruptedException interruptedException) {
}
RequestQueue queue = Volley.newRequestQueue(SecondActivity.this);
String url = "http://10.0.2.2";
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
mTextBox.setText(response);
mProgressBar.setVisibility(View.INVISIBLE);
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
String err = error.toString();
mTextBox.setText(err);
mProgressBar.setVisibility(View.INVISIBLE);
}
});
queue.add(stringRequest);
return null;
}
}