Tag : Android

As UE, do a survey and ask engineers and brothers to spit out their grievances ~ 1: If there are strict requirements on the spacing, font color and so on of various graphs, be sure to mark them, shake your hands, be very tired in measurement, and always BB when there are errors.2. The ideal ..

Read more

That’s trueNow I want to use Android to pass Http post requests to Node.jsI have tried to receive Http requests in PHP before, and it looks like this: $data = $_POST[‘data’]; Android is like this HttpPost httpRequest = new HttpPost(“192.168.1.174:3001”); List<NameValuePair > params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair(“data”,etv.getText().toString())); try{ httpRequest.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8)); HttpResponse httpResponse = ..

Read more

First, create demo to call PrinterShare service. Although the corresponding classes and methods can be found, there is no response after the call. //print the picture, enter the PrinterShare print picture preview interface. public static void printPicture(File file,Context context,AlertDialog.Builder builder){ Log.e(“test”, “printPicture”); if (! CheckAPK.appIsInstalled(context)) { builder.show(); return; bracket Intent intent = new Intent(); ComponentName ..

Read more

Well, there is a question, please grant instruction from the great god.MyHandler inherits from Handler: class MyHandler extends Handler { @Override public void dispatchMessage(Message msg) { super.dispatchMessage(msg); Log.e(TAG, “disaptch message”); bracket @Override public void handleMessage(Message msg) { super.handleMessage(msg); Log.e(TAG, “handle message”); bracket bracket Then write a Message, set its callback, and send the message. mMyHandler ..

Read more