Android 的進程間通信 Binder——AIDL的入門使用(一)

進程間通信系列

AIDL的入門使用(一)
AIDL的入門使用(二)
AIDL的入門使用(三)
Messenger的入門使用

目錄

image.png

序言

什么概念都省了盒至,直接看怎么使用,主要分兩部分,一個是服務端烛卧,一個是客戶端晃痴。更多使用請持續(xù)關注。

AIDL通信的服務端

1缰趋、創(chuàng)建AIDL 的服務端的Moudle 捧杉;

2、在aidl包下創(chuàng)建需要傳遞的對象Book類秘血,并實現Parcelable 接口(使用Android Studio 的Parcelable 接口生成插件)

package com.ljp.aidl_server.aidl;
import android.os.Parcel;
import android.os.Parcelable;
/**
 * Created by yuxue on 2017/11/28.
 */
public class Book implements Parcelable {
    public int id;
    public String name;
    public double price;
    //省略set 味抖、get、構造灰粮、toString等方法
    @Override
    public int describeContents() {
        return 0;
    }
    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeDouble(this.price);
    }
    public Book() {
    }
    protected Book(Parcel in) {
        this.id = in.readInt();
        this.name = in.readString();
        this.price = in.readDouble();
    }
    public static final Parcelable.Creator<Book> CREATOR = new Parcelable.Creator<Book>() {
        @Override
        public Book createFromParcel(Parcel source) {
            return new Book(source);
        }
        @Override
        public Book[] newArray(int size) {
            return new Book[size];
        }
    };
}

3仔涩、鼠標右鍵單擊aidl包——>new ——>AIDL——>AIDL File——>輸入接口名稱:IMyAidlInterface——>Finish

image.png
image.png
image.png
//Book.aidl文件
package com.ljp.aidl_server.aidl;//在這里一定要標注包名,與 IMyAidlInterface.aidl文件中的包名相同粘舟,否則編譯報錯
//注意  parcelable的p字母是小寫   ,聲明已序列化的類
parcelable Book; 

4熔脂、在新生成的aidl包上鼠標右鍵新建文件要傳遞的類名.adil文件正驻,這里要傳遞的對象為Book類宛乃,因此新建Book.aidl,在Book.aidl文件中聲明包名和已序列化對應的類。

image.png
image.png

5、編寫IMyAidlInterface.aidl文件焕梅,聲明客戶端調用AIDL的接口,編寫好IMyAidlInterface.aidl文件以后 Build——>Make Project(一定要先Make Project以后編譯器才不會報錯)

// IMyAidlInterface.aidl
package com.ljp.aidl_server.aidl;
// Declare any non-default types here with import statements
import com.ljp.aidl_server.aidl.Book;//雖然在同一個包中巍佑,但還是要進行導包操作纷宇,否則會報錯。
interface IMyAidlInterface {
    /**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     */
    void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat,
            double aDouble, String aString);
    //編寫客戶端可以調用的AIDL接口秽荞,
    void addBook(in Book book);//一定要加 in
    List<Book> getBooks();
    void setTag(in String tag);
    String getTag();
    void setNum(in int num);
    int getNum();
}

6骤公、創(chuàng)建服務端的Service并編寫內容,右鍵單擊aidl包——>New ——> Service——> Service——>輸入文件名AidlSerVerService,創(chuàng)建IMyAidlInterface.Stub的對象并在onBind方法中返回扬跋。(注:IMyAidlInterface.java文件有編譯器在Make Project 過程中自動生成淋样,即我們可以不編寫前面的aidl文件,只需要編寫IMyAidlInterface.java文件也是可以進行進程間通信的)

image.png

image.png
package com.ljp.aidl_server.aidl;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
public class AidlSerVerService extends Service {
    private List<Book> mBookList = new ArrayList<>();
    private String tag = "empty";
    private int num = -1;
    IMyAidlInterface.Stub stub_binder = new IMyAidlInterface.Stub() {//IMyAidlInterface.Stub實際為android.os.Binder 的子類并實現了com.ljp.aidl_server.aidl.IMyAidlInterface接口
        @Override
        public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException {
        }
        @Override
        public void addBook(Book book) throws RemoteException {
            synchronized (this) {//同步操作胁住,有可能有多個客戶端共同訪問
                if (book != null) {
                    mBookList.add(book);
                }
            }
        }
        @Override
        public List<Book> getBooks() throws RemoteException {
            return mBookList;
        }
        @Override
        public void setTag(String tag) throws RemoteException {
            synchronized (this) {
                if (!TextUtils.isEmpty(tag)) {
                    AidlSerVerService.this.tag = tag;
                }
            }
        }
        @Override
        public String getTag() throws RemoteException {
            return tag;
        }
        @Override
        public void setNum(int num) throws RemoteException {
            synchronized (this) {
                AidlSerVerService.this.num = num;
            }
        }
        @Override
        public int getNum() throws RemoteException {
            return num;
        }
    };
    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        return stub_binder;
    }
}

7趁猴、在AndroidMainfest文件中注冊服務端的Service并對外暴露,至此服務端的代碼就編寫完成了彪见。

        <!--process:單獨為一個進程儡司;enabled:啟用;exported:對外暴露 余指;
        注:服務端的包名為:com.ljp.aidl_server捕犬,客戶端綁定Service的時候是使用程序的包名,不是使用AidlSerVerService類的包名  -->
        <service
            android:name=".aidl.AidlSerVerService"
            android:process=":remote"
            android:enabled="true"
            android:exported="true">
            <intent-filter >
                <action android:name="server.aidl.service.action"/>
            </intent-filter>
        </service>

AIDL通信的客戶端

1酵镜、將服務端 main文件夾下的aidl文件夾復制到客戶端的main文件夾下碉碉,將服務端的Book類復制到客戶端的對應包名下,然后Build——>Make Project 淮韭;

image.png

2垢粮、測試調用服務端的AIDL接口進行通信;

package com.ljp.aidl_client;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import com.ljp.aidl_server.aidl.Book;
import com.ljp.aidl_server.aidl.IMyAidlInterface;
import java.util.List;
public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    private IMyAidlInterface mService_face;
    private static final String TAG = "Main_Client";
    ServiceConnection mConnection = new ServiceConnection() {
        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
            Log.e(TAG, "onServiceConnected: ");
            mService_face = IMyAidlInterface.Stub.asInterface(service);
        }
        @Override
        public void onServiceDisconnected(ComponentName name) {
            Log.e(TAG, "onServiceDisconnected: ");
        }
    };
    public void bindAidlService(View view) {
        Intent intent_service = new Intent();
        intent_service.setPackage("com.ljp.aidl_server"); //設置需要綁定的服務端的包名靠粪,不是服務端Service的包名
        intent_service.setAction("server.aidl.service.action");//設置你所需調用服務的意圖
        boolean successful = bindService(intent_service, mConnection, BIND_AUTO_CREATE);
        Log.e(TAG, "bindAidlService: successful=" + successful);
    }
    public void UnbindAidlService(View view) {
        if(mConnection!=null){
            unbindService(mConnection);
            Log.e(TAG, "UnbindAidlService: ");
        }
    }
    public void addBook_AidlService(View view) {
        try {
            if (mService_face != null) {
                mService_face.addBook(new Book(0, "book0", 30.5));
                Log.e(TAG, "addBook_AidlService: ");
            }
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
    public void getBooks_AidlService(View view) {
        try {
            if (mService_face != null) {
                List<Book> books = mService_face.getBooks();
                Log.e(TAG, "addBook_AidlService: books[0]=" + books.get(0));
            }
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
    public void setTag_AidlService(View view) {
        try {
            if (mService_face != null) {
                mService_face.setTag("setTag_AidlService");
                Log.e(TAG, "setTag_AidlService: ");
            }
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
    public void getTag_AidlService(View view) {
        try {
            if (mService_face != null) {
                String tag = mService_face.getTag();
                Log.e(TAG, "getTag_AidlService: tag=" + tag);
            }
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
    public void setNum_AidlService(View view) {
        try {
            if (mService_face != null) {
                mService_face.setNum(27);
                Log.e(TAG, "setNum_AidlService: ");
            }
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
    public void getNum_AidlService(View view) {
        try {
            if (mService_face != null) {
                int num = mService_face.getNum();
                Log.e(TAG, "getNum_AidlService: num=" + num);
            }
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
}

測試結果如下:

image.png

IMyAidlInterface.java 文件詳解蜡吧,實際有用的是這個文件,有編寫的aidl文件經過編譯器自動生成(注:可以單獨編寫該文件那就不需要aidl文件了)

package com.ljp.aidl_server.aidl;
public interface IMyAidlInterface extends android.os.IInterface {
    /**
     * Stub是存根占键,Proxy是代理,Stub是服務端實現的存根昔善,而Proxy則是Stub的代理。
     * Local-side IPC implementation stub class.
     */
    public static abstract class Stub extends android.os.Binder implements com.ljp.aidl_server.aidl.IMyAidlInterface {
        //Binder的唯一標識畔乙,一般使用類名標識
        private static final java.lang.String DESCRIPTOR = "com.ljp.aidl_server.aidl.IMyAidlInterface";
        /**
         * Construct the stub at attach it to the interface.
         */
        public Stub() {
            this.attachInterface(this, DESCRIPTOR);
        }
        /**
         * 將服務端的Binder對象轉換為客戶端需要的AIDL接口類型的對象君仆,
         * 如果在同一個進程下的話,那么asInterface()將返回服務端的Stub對象本身,因為此時根本不需要跨進稱通信返咱,那么直接調用Stub對象的接口就可以了氮帐,返回的實現就是服務端的Stub實現,也就是根本沒有跨進程通信洛姑;
         * 如果不是同一個進程上沐,那么asInterface()返回是Stub.Proxy對象,該對象持有著遠程的Binder引用(服務端)楞艾,因為現在需要跨進程通信参咙,所以如果調用Stub.Proxy的接口的話,那么它們都將是IPC調用硫眯,它會通過調用Stub.Proxy的transact方法去與服務端通信
         * Cast an IBinder object into an com.ljp.aidl_server.aidl.IMyAidlInterface interface,generating a proxy if needed.
         *
         * @param obj
         * @return 若位于同一進程中則返回的是服務端的Stub對象本身蕴侧,否則返回的是系統(tǒng)封裝后的Stub.Proxy對象
         */
        public static com.ljp.aidl_server.aidl.IMyAidlInterface asInterface(android.os.IBinder obj) {
            if ((obj == null)) {
                return null;
            }
            android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
            if (((iin != null) && (iin instanceof com.ljp.aidl_server.aidl.IMyAidlInterface))) {
                return ((com.ljp.aidl_server.aidl.IMyAidlInterface) iin);
            }
            return new com.ljp.aidl_server.aidl.IMyAidlInterface.Stub.Proxy(obj);
        }
        /**
         * 返回當前的Binder對象,在客戶端連接成功時使用:IMyAidlInterface iMyAidlInterface = IMyAidlInterface.Stub.asInterface(service);
         * 檢索與此接口相關聯的綁定器對象两入。您必須使用這個而不是普通的cast净宵,這樣代理對象才能返回正確的結果。
         *
         * @return
         */
        @Override
        public android.os.IBinder asBinder() {
            return this;
        }
        /**
         * 運行在服務端的Binder線程池中裹纳,當客戶端發(fā)起跨進程請求時择葡,遠程請求會通過底層封裝后交由此方法處理
         * 默認實現是返回false的存根。您將希望覆蓋此操作剃氧,以完成事務的適當解組敏储。 如果你想調用這個,調用交易()朋鞍。
         *
         * @param code
         * @param data
         * @param reply
         * @param flags
         * @return 如果返回false客戶端就會請求失敗可用作權限驗證
         * @throws android.os.RemoteException
         */
        @Override
        public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException {
            switch (code) {
                case INTERFACE_TRANSACTION: {
                    reply.writeString(DESCRIPTOR);
                    return true;
                }
                case TRANSACTION_basicTypes: {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    long _arg1;
                    _arg1 = data.readLong();
                    boolean _arg2;
                    _arg2 = (0 != data.readInt());
                    float _arg3;
                    _arg3 = data.readFloat();
                    double _arg4;
                    _arg4 = data.readDouble();
                    java.lang.String _arg5;
                    _arg5 = data.readString();
                    this.basicTypes(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5);
                    reply.writeNoException();
                    return true;
                }
                case TRANSACTION_addBook: {
                    data.enforceInterface(DESCRIPTOR);
                    com.ljp.aidl_server.aidl.Book _arg0;
                    if ((0 != data.readInt())) {
                        _arg0 = com.ljp.aidl_server.aidl.Book.CREATOR.createFromParcel(data);//調用Book類中的Parcelable的工廠方法生成一個Book對象已添,下同
                    } else {
                        _arg0 = null;
                    }
                    this.addBook(_arg0);
                    reply.writeNoException();
                    return true;
                }
                case TRANSACTION_getBooks: {
                    data.enforceInterface(DESCRIPTOR);
                    java.util.List<com.ljp.aidl_server.aidl.Book> _result = this.getBooks();
                    reply.writeNoException();
                    reply.writeTypedList(_result);
                    return true;
                }
                case TRANSACTION_setTag: {
                    data.enforceInterface(DESCRIPTOR);
                    java.lang.String _arg0;
                    _arg0 = data.readString();
                    this.setTag(_arg0);
                    reply.writeNoException();
                    return true;
                }
                case TRANSACTION_getTag: {
                    data.enforceInterface(DESCRIPTOR);
                    java.lang.String _result = this.getTag();
                    reply.writeNoException();
                    reply.writeString(_result);
                    return true;
                }
                case TRANSACTION_setNum: {
                    data.enforceInterface(DESCRIPTOR);
                    int _arg0;
                    _arg0 = data.readInt();
                    this.setNum(_arg0);
                    reply.writeNoException();
                    return true;
                }
                case TRANSACTION_getNum: {
                    data.enforceInterface(DESCRIPTOR);
                    int _result = this.getNum();
                    reply.writeNoException();
                    reply.writeInt(_result);
                    return true;
                }
            }
            return super.onTransact(code, data, reply, flags);
        }
        /**
         * 一個運行在客戶端的代理,持有服務端的Binder應用
         * Stub是存根滥酥,Proxy是代理,Stub是服務端實現的存根更舞,而Proxy則是Stub的代理。
         */
        private static class Proxy implements com.ljp.aidl_server.aidl.IMyAidlInterface {
            private android.os.IBinder mRemote;
            Proxy(android.os.IBinder remote) {
                mRemote = remote;
            }
            @Override
            public android.os.IBinder asBinder() {
                return mRemote;
            }
            public java.lang.String getInterfaceDescriptor() {
                return DESCRIPTOR;
            }
            /**
             * Demonstrates some basic types that you can use as parameters
             * and return values in AIDL.
             */
            @Override
            public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, java.lang.String aString) throws android.os.RemoteException {
                android.os.Parcel _data = android.os.Parcel.obtain();
                android.os.Parcel _reply = android.os.Parcel.obtain();
                try {
                    _data.writeInterfaceToken(DESCRIPTOR);
                    _data.writeInt(anInt);
                    _data.writeLong(aLong);
                    _data.writeInt(((aBoolean) ? (1) : (0)));
                    _data.writeFloat(aFloat);
                    _data.writeDouble(aDouble);
                    _data.writeString(aString);
                    mRemote.transact(Stub.TRANSACTION_basicTypes, _data, _reply, 0);
                    _reply.readException();
                } finally {
                    _reply.recycle();
                    _data.recycle();
                }
            }
            @Override
            public void addBook(com.ljp.aidl_server.aidl.Book book) throws android.os.RemoteException {
                android.os.Parcel _data = android.os.Parcel.obtain();
                android.os.Parcel _reply = android.os.Parcel.obtain();
                try {
                    _data.writeInterfaceToken(DESCRIPTOR);
                    if ((book != null)) {
                        _data.writeInt(1);
                        book.writeToParcel(_data, 0);
                    } else {
                        _data.writeInt(0);
                    }
                    mRemote.transact(Stub.TRANSACTION_addBook, _data, _reply, 0);
                    _reply.readException();
                } finally {
                    _reply.recycle();
                    _data.recycle();
                }
            }
            @Override
            public java.util.List<com.ljp.aidl_server.aidl.Book> getBooks() throws android.os.RemoteException {
                android.os.Parcel _data = android.os.Parcel.obtain();
                android.os.Parcel _reply = android.os.Parcel.obtain();
                java.util.List<com.ljp.aidl_server.aidl.Book> _result;
                try {
                    _data.writeInterfaceToken(DESCRIPTOR);
                    mRemote.transact(Stub.TRANSACTION_getBooks, _data, _reply, 0);
                    _reply.readException();
                    _result = _reply.createTypedArrayList(com.ljp.aidl_server.aidl.Book.CREATOR);
                } finally {
                    _reply.recycle();
                    _data.recycle();
                }
                return _result;
            }
            @Override
            public void setTag(java.lang.String tag) throws android.os.RemoteException {
                android.os.Parcel _data = android.os.Parcel.obtain();
                android.os.Parcel _reply = android.os.Parcel.obtain();
                try {
                    _data.writeInterfaceToken(DESCRIPTOR);
                    _data.writeString(tag);
                    mRemote.transact(Stub.TRANSACTION_setTag, _data, _reply, 0);
                    _reply.readException();
                } finally {
                    _reply.recycle();
                    _data.recycle();
                }
            }
            @Override
            public java.lang.String getTag() throws android.os.RemoteException {
                android.os.Parcel _data = android.os.Parcel.obtain();
                android.os.Parcel _reply = android.os.Parcel.obtain();
                java.lang.String _result;
                try {
                    _data.writeInterfaceToken(DESCRIPTOR);
                    mRemote.transact(Stub.TRANSACTION_getTag, _data, _reply, 0);
                    _reply.readException();
                    _result = _reply.readString();
                } finally {
                    _reply.recycle();
                    _data.recycle();
                }
                return _result;
            }
            @Override
            public void setNum(int num) throws android.os.RemoteException {
                android.os.Parcel _data = android.os.Parcel.obtain();
                android.os.Parcel _reply = android.os.Parcel.obtain();
                try {
                    _data.writeInterfaceToken(DESCRIPTOR);
                    _data.writeInt(num);
                    mRemote.transact(Stub.TRANSACTION_setNum, _data, _reply, 0);
                    _reply.readException();
                } finally {
                    _reply.recycle();
                    _data.recycle();
                }
            }
            @Override
            public int getNum() throws android.os.RemoteException {
                android.os.Parcel _data = android.os.Parcel.obtain();
                android.os.Parcel _reply = android.os.Parcel.obtain();
                int _result;
                try {
                    _data.writeInterfaceToken(DESCRIPTOR);
                    mRemote.transact(Stub.TRANSACTION_getNum, _data, _reply, 0);
                    _reply.readException();
                    _result = _reply.readInt();
                } finally {
                    _reply.recycle();
                    _data.recycle();
                }
                return _result;
            }
        }
        //聲明binder接口的方法的ID坎吻,用于標志方法
        static final int TRANSACTION_basicTypes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
        static final int TRANSACTION_addBook = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
        static final int TRANSACTION_getBooks = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
        static final int TRANSACTION_setTag = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
        static final int TRANSACTION_getTag = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
        static final int TRANSACTION_setNum = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
        static final int TRANSACTION_getNum = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
    }
    /**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     */
    public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, java.lang.String aString) throws android.os.RemoteException;
    //下面是Binder 通信的接口
    public void addBook(com.ljp.aidl_server.aidl.Book book) throws android.os.RemoteException;
    public java.util.List<com.ljp.aidl_server.aidl.Book> getBooks() throws android.os.RemoteException;
    public void setTag(java.lang.String tag) throws android.os.RemoteException;
    public java.lang.String getTag() throws android.os.RemoteException;
    public void setNum(int num) throws android.os.RemoteException;
    public int getNum() throws android.os.RemoteException;
}

我的CSDN博客地址:http://blog.csdn.net/wo_ha/article/details/78655896

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
  • 序言:七十年代末缆蝉,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子禾怠,更是在濱河造成了極大的恐慌返奉,老刑警劉巖,帶你破解...
    沈念sama閱讀 216,591評論 6 501
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件吗氏,死亡現場離奇詭異,居然都是意外死亡雷逆,警方通過查閱死者的電腦和手機弦讽,發(fā)現死者居然都...
    沈念sama閱讀 92,448評論 3 392
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人往产,你說我怎么就攤上這事被碗。” “怎么了仿村?”我有些...
    開封第一講書人閱讀 162,823評論 0 353
  • 文/不壞的土叔 我叫張陵锐朴,是天一觀的道長。 經常有香客問我蔼囊,道長焚志,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,204評論 1 292
  • 正文 為了忘掉前任畏鼓,我火速辦了婚禮酱酬,結果婚禮上,老公的妹妹穿的比我還像新娘云矫。我一直安慰自己膳沽,他們只是感情好,可當我...
    茶點故事閱讀 67,228評論 6 388
  • 文/花漫 我一把揭開白布让禀。 她就那樣靜靜地躺著挑社,像睡著了一般。 火紅的嫁衣襯著肌膚如雪巡揍。 梳的紋絲不亂的頭發(fā)上滔灶,一...
    開封第一講書人閱讀 51,190評論 1 299
  • 那天,我揣著相機與錄音吼肥,去河邊找鬼录平。 笑死,一個胖子當著我的面吹牛缀皱,可吹牛的內容都是我干的斗这。 我是一名探鬼主播,決...
    沈念sama閱讀 40,078評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼啤斗,長吁一口氣:“原來是場噩夢啊……” “哼表箭!你這毒婦竟也來了?” 一聲冷哼從身側響起钮莲,我...
    開封第一講書人閱讀 38,923評論 0 274
  • 序言:老撾萬榮一對情侶失蹤免钻,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后崔拥,有當地人在樹林里發(fā)現了一具尸體极舔,經...
    沈念sama閱讀 45,334評論 1 310
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 37,550評論 2 333
  • 正文 我和宋清朗相戀三年链瓦,在試婚紗的時候發(fā)現自己被綠了拆魏。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片盯桦。...
    茶點故事閱讀 39,727評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖渤刃,靈堂內的尸體忽然破棺而出拥峦,到底是詐尸還是另有隱情,我是刑警寧澤卖子,帶...
    沈念sama閱讀 35,428評論 5 343
  • 正文 年R本政府宣布略号,位于F島的核電站,受9級特大地震影響洋闽,放射性物質發(fā)生泄漏玄柠。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,022評論 3 326
  • 文/蒙蒙 一喊递、第九天 我趴在偏房一處隱蔽的房頂上張望随闪。 院中可真熱鬧,春花似錦骚勘、人聲如沸铐伴。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,672評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽当宴。三九已至,卻和暖如春泽疆,著一層夾襖步出監(jiān)牢的瞬間户矢,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,826評論 1 269
  • 我被黑心中介騙來泰國打工殉疼, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留梯浪,地道東北人。 一個月前我還...
    沈念sama閱讀 47,734評論 2 368
  • 正文 我出身青樓瓢娜,卻偏偏與公主長得像挂洛,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子眠砾,可洞房花燭夜當晚...
    茶點故事閱讀 44,619評論 2 354