Category : android

Original address:Build App using reactive Recently, due to the needs of the project, in-depth studyReactAndReact Native,ReactI have mastered it, and now concentrate onReactNativeThe development of the project. Here we need to record the technical details in the learning process. A good memory is not as good as a bad written one. It is always good ..

Read more

该文章属于<简书 — 刘小壮>原创,转载请注明: < Jianshu-Liu Xiaozhuang > https://www.jianshu.com/p/54da18ed1a9e FlutterThe default is single-threaded task processing. If no new thread is opened, the task is processed in the main thread by default. event queue Much like iOS applications, inDartThe concepts of event loop and message queue also exist in the thread ofDartThe middle thread is calledisolate. After ..

Read more

Introduction to Android Knowledge1.1 Android System Architecture: 1. Application layer 2. Application Framework Layer 3, the system runtime library layer 4. System kernel layer 1.2 Android Privilege System: Android operating system is actually a multi-user linux operating system. Each Android application uses different users and runs in its own safety sand table. The system sets ..

Read more

At present, the mainstream platforms on the mobile market mainly include Android and IOS. In order to reuse code and save development costs as much as possible, each major giant has developed its own cross-platform framework, such as Facebook’s React-Native, Ali’s Weex, Cordova, and Flutter framework introduced at this year’s Google Developer Conference. These frameworks ..

Read more

domain public class Known extends RealmObject{ @PrimaryKey private String id; private String title; private String content; private Date createTime; private String tag; public Known() { } public Known(String id, String title, String content, Date createTime) { this.id = id; this.title = title; this.content = content; this.createTime = createTime; } public String getTag() { return tag; ..

Read more

Order For android applications, a formal signature is required when releasing the release version, and the jarsigner command is required at this time. step signSigning is to add a signature to apk according to the keystore. it should be noted that the debug version of apk will automatically add a signature. alignAlign is to optimize ..

Read more

Preface InLast articleWe have explained in detail the process of implementing iOS message push with Leancloud, and today this article will continue to explain the implementation of Android message push. Access to Leancloud Before accessing the Leancoud, it is recommended to read the Leancoud official first.Android Message Push Development Guide. Install Leancloud SDK There are ..

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

listview.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<? > parent, View view, int position, long id) { Intent it = new Intent(getActivity(), ReleaseDetail.class); final SerializableMap myMap = new SerializableMap(); myMap.setMap(tempList); //add map data to the encapsulated myMap Bundle bundle = new Bundle(); bundle.putSerializable(“map1”, myMap); it.putExtras(bundle); startActivity(it); getActivity().finish(); bracket }); public class SerializableMap implements Serializable { private ..

Read more

The error was reported as follows: The code is as follows: public class httpRequest { OkHttpClient client = new OkHttpClient(); String run(String url) throws IOException { Request request = new Request.Builder().url(url).build(); Response response = client.newCall(request).execute(); if (response.isSuccessful()) { return response.body().string(); } else { Throw new io exception (“unexpected code” plus response); bracket bracket bracket @Override ..

Read more