Activity和Service通信方式总结

最近在研究Android系统的APK安装过程。由于是新手,所以在看源码时碰到很多基础问题。其中跨进程交互的问题就让我很纠结,于是干脆把Service和Activity之间的交互方式进行了一个总结。但由于网上相关帖子很多,不想重复造轮子,所以就将我认为写得挺好的两篇博客进行了融合。由于本文跟原文重合度大于80%,所以不敢称为原创。

原文1地址:http://blog.csdn.net/xiaanming/article/details/9750689

原文2地址:http://blog.csdn.net/stonecao/article/details/6425019

  • 通过Binder对象

1.进程内通信

当Activity通过调用bindService(Intent service, ServiceConnection conn,int flags),我们可以得到一个Service的一个对象实例,然后我们就可以访问Service中的方法,我们还是通过一个例子来理解一下吧,一个模拟下载的小例子,带大家理解一下通过Binder通信的方式

首先我们新建一个工程Communication,然后新建一个Service类

[java]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. <span style="font-family:System;">package com.example.communication;  
  2.   
  3. import android.app.Service;  
  4. import android.content.Intent;  
  5. import android.os.Binder;  
  6. import android.os.IBinder;  
  7.   
  8. public class MsgService extends Service {  
  9.     /** 
  10.      * 进度条的最大值 
  11.      */  
  12.     public static final int MAX_PROGRESS = 100;  
  13.     /** 
  14.      * 进度条的进度值 
  15.      */  
  16.     private int progress = 0;  
  17.   
  18.     /** 
  19.      * 增加get()方法,供Activity调用 
  20.      * @return 下载进度 
  21.      */  
  22.     public int getProgress() {  
  23.         return progress;  
  24.     }  
  25.   
  26.     /** 
  27.      * 模拟下载任务,每秒钟更新一次 
  28.      */  
  29.     public void startDownLoad(){  
  30.         new Thread(new Runnable() {  
  31.               
  32.             @Override  
  33.             public void run() {  
  34.                 while(progress < MAX_PROGRESS){  
  35.                     progress += 5;  
  36.                     try {  
  37.                         Thread.sleep(1000);  
  38.                     } catch (InterruptedException e) {  
  39.                         e.printStackTrace();  
  40.                     }  
  41.                       
  42.                 }  
  43.             }  
  44.         }).start();  
  45.     }  
  46.   
  47.   
  48.     /** 
  49.      * 返回一个Binder对象 
  50.      */  
  51.     @Override  
  52.     public IBinder onBind(Intent intent) {  
  53.         return new MsgBinder();  
  54.     }  
  55.       
  56.     public class MsgBinder extends Binder{  
  57.         /** 
  58.          * 获取当前Service的实例 
  59.          * @return 
  60.          */  
  61.         public MsgService getService(){  
  62.             return MsgService.this;  
  63.         }  
  64.     }  
  65.   
  66. }</span>  
上面的代码比较简单,注释也比较详细,最基本的Service的应用了,相信你看得懂的,我们调用startDownLoad()方法来模拟下载任务,然后每秒更新一次进度,但这是在后台进行中,我们是看不到的,所以有时候我们需要他能在前台显示下载的进度问题,所以我们接下来就用到Activity了

[java]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. Intent intent = new Intent("com.example.communication.MSG_ACTION");    
  2. bindService(intent, conn, Context.BIND_AUTO_CREATE);  

通过上面的代码我们就在Activity绑定了一个Service,上面需要一个ServiceConnection对象,它是一个接口,我们这里使用了匿名内部类

[java]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. <span style="font-family:System;">  ServiceConnection conn = new ServiceConnection() {  
  2.           
  3.         @Override  
  4.         public void onServiceDisconnected(ComponentName name) {  
  5.               
  6.         }  
  7.           
  8.         @Override  
  9.         public void onServiceConnected(ComponentName name, IBinder service) {  
  10.             //返回一个MsgService对象  
  11.             msgService = ((MsgService.MsgBinder)service).getService();  
  12.               
  13.         }  
  14.     };</span>  

在onServiceConnected(ComponentName name, IBinder service) 回调方法中,返回了一个MsgService中的Binder对象,我们可以通过getService()方法来得到一个MsgService对象,然后可以调用MsgService中的一些方法,Activity的代码如下

[java]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. <span style="font-family:System;">package com.example.communication;  
  2.   
  3. import android.app.Activity;  
  4. import android.content.ComponentName;  
  5. import android.content.Context;  
  6. import android.content.Intent;  
  7. import android.content.ServiceConnection;  
  8. import android.os.Bundle;  
  9. import android.os.IBinder;  
  10. import android.view.View;  
  11. import android.view.View.OnClickListener;  
  12. import android.widget.Button;  
  13. import android.widget.ProgressBar;  
  14.   
  15. public class MainActivity extends Activity {  
  16.     private MsgService msgService;  
  17.     private int progress = 0;  
  18.     private ProgressBar mProgressBar;  
  19.       
  20.   
  21.     @Override  
  22.     protected void onCreate(Bundle savedInstanceState) {  
  23.         super.onCreate(savedInstanceState);  
  24.         setContentView(R.layout.activity_main);  
  25.           
  26.           
  27.         //绑定Service  
  28.         Intent intent = new Intent("com.example.communication.MSG_ACTION");  
  29.         bindService(intent, conn, Context.BIND_AUTO_CREATE);  
  30.           
  31.           
  32.         mProgressBar = (ProgressBar) findViewById(R.id.progressBar1);  
  33.         Button mButton = (Button) findViewById(R.id.button1);  
  34.         mButton.setOnClickListener(new OnClickListener() {  
  35.               
  36.             @Override  
  37.             public void onClick(View v) {  
  38.                 //开始下载  
  39.                 msgService.startDownLoad();  
  40.                 //监听进度  
  41.                 listenProgress();  
  42.             }  
  43.         });  
  44.           
  45.     }  
  46.       
  47.   
  48.     /** 
  49.      * 监听进度,每秒钟获取调用MsgService的getProgress()方法来获取进度,更新UI 
  50.      */  
  51.     public void listenProgress(){  
  52.         new Thread(new Runnable() {  
  53.               
  54.             @Override  
  55.             public void run() {  
  56.                 while(progress < MsgService.MAX_PROGRESS){  
  57.                     progress = msgService.getProgress();  
  58.                     mProgressBar.setProgress(progress);  
  59.                     try {  
  60.                         Thread.sleep(1000);  
  61.                     } catch (InterruptedException e) {  
  62.                         e.printStackTrace();  
  63.                     }  
  64.                 }  
  65.                   
  66.             }  
  67.         }).start();  
  68.     }  
  69.       
  70.     ServiceConnection conn = new ServiceConnection() {  
  71.         @Override  
  72.         public void onServiceDisconnected(ComponentName name) {  
  73.               
  74.         }  
  75.           
  76.         @Override  
  77.         public void onServiceConnected(ComponentName name, IBinder service) {  
  78.             //返回一个MsgService对象  
  79.             msgService = ((MsgService.MsgBinder)service).getService();  
  80.               
  81.         }  
  82.     };  
  83.   
  84.     @Override  
  85.     protected void onDestroy() {  
  86.         unbindService(conn);  
  87.         super.onDestroy();  
  88.     }  
  89.   
  90.   
  91. }</span><span style="font-family: simsun;">  
  92. </span>  
其实上面的代码我还是有点疑问,就是监听进度变化的那个方法我是直接在线程中更新UI的,不是说不能在其他线程更新UI操作吗,可能是ProgressBar比较特殊吧,我也没去研究它的源码,知道的朋友可以告诉我一声,谢谢!

上面的代码就完成了在Service更新UI的操作,可是你发现了没有,我们每次都要主动调用getProgress()来获取进度值,然后隔一秒在调用一次getProgress()方法,你会不会觉得很被动呢?可不可以有一种方法当Service中进度发生变化主动通知Activity,答案是肯定的,我们可以利用回调接口实现Service的主动通知,不理解回调方法的可以看看http://blog.csdn.net/xiaanming/article/details/8703708

新建一个回调接口

[java]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. public interface OnProgressListener {  
  2.     void onProgress(int progress);  
  3. }  
MsgService的代码有一些小小的改变,为了方便大家看懂,我还是将所有代码贴出来

[java]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. <span style="font-family:System;">package com.example.communication;  
  2.   
  3. import android.app.Service;  
  4. import android.content.Intent;  
  5. import android.os.Binder;  
  6. import android.os.IBinder;  
  7.   
  8. public class MsgService extends Service {  
  9.     /** 
  10.      * 进度条的最大值 
  11.      */  
  12.     public static final int MAX_PROGRESS = 100;  
  13.     /** 
  14.      * 进度条的进度值 
  15.      */  
  16.     private int progress = 0;  
  17.       
  18.     /** 
  19.      * 更新进度的回调接口 
  20.      */  
  21.     private OnProgressListener onProgressListener;  
  22.       
  23.       
  24.     /** 
  25.      * 注册回调接口的方法,供外部调用 
  26.      * @param onProgressListener 
  27.      */  
  28.     public void setOnProgressListener(OnProgressListener onProgressListener) {  
  29.         this.onProgressListener = onProgressListener;  
  30.     }  
  31.   
  32.     /** 
  33.      * 增加get()方法,供Activity调用 
  34.      * @return 下载进度 
  35.      */  
  36.     public int getProgress() {  
  37.         return progress;  
  38.     }  
  39.   
  40.     /** 
  41.      * 模拟下载任务,每秒钟更新一次 
  42.      */  
  43.     public void startDownLoad(){  
  44.         new Thread(new Runnable() {  
  45.               
  46.             @Override  
  47.             public void run() {  
  48.                 while(progress < MAX_PROGRESS){  
  49.                     progress += 5;  
  50.                       
  51.                     //进度发生变化通知调用方  
  52.                     if(onProgressListener != null){  
  53.                         onProgressListener.onProgress(progress);  
  54.                     }  
  55.                       
  56.                     try {  
  57.                         Thread.sleep(1000);  
  58.                     } catch (InterruptedException e) {  
  59.                         e.printStackTrace();  
  60.                     }  
  61.                       
  62.                 }  
  63.             }  
  64.         }).start();  
  65.     }  
  66.   
  67.   
  68.     /** 
  69.      * 返回一个Binder对象 
  70.      */  
  71.     @Override  
  72.     public IBinder onBind(Intent intent) {  
  73.         return new MsgBinder();  
  74.     }  
  75.       
  76.     public class MsgBinder extends Binder{  
  77.         /** 
  78.          * 获取当前Service的实例 
  79.          * @return 
  80.          */  
  81.         public MsgService getService(){  
  82.             return MsgService.this;  
  83.         }  
  84.     }  
  85.   
  86. }</span>  
Activity中的代码如下

[java]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. <span style="font-family:System;">package com.example.communication;  
  2.   
  3. import android.app.Activity;  
  4. import android.content.ComponentName;  
  5. import android.content.Context;  
  6. import android.content.Intent;  
  7. import android.content.ServiceConnection;  
  8. import android.os.Bundle;  
  9. import android.os.IBinder;  
  10. import android.view.View;  
  11. import android.view.View.OnClickListener;  
  12. import android.widget.Button;  
  13. import android.widget.ProgressBar;  
  14.   
  15. public class MainActivity extends Activity {  
  16.     private MsgService msgService;  
  17.     private ProgressBar mProgressBar;  
  18.       
  19.   
  20.     @Override  
  21.     protected void onCreate(Bundle savedInstanceState) {  
  22.         super.onCreate(savedInstanceState);  
  23.         setContentView(R.layout.activity_main);  
  24.           
  25.           
  26.         //绑定Service  
  27.         Intent intent = new Intent("com.example.communication.MSG_ACTION");  
  28.         bindService(intent, conn, Context.BIND_AUTO_CREATE);  
  29.           
  30.           
  31.         mProgressBar = (ProgressBar) findViewById(R.id.progressBar1);  
  32.         Button mButton = (Button) findViewById(R.id.button1);  
  33.         mButton.setOnClickListener(new OnClickListener() {  
  34.               
  35.             @Override  
  36.             public void onClick(View v) {  
  37.                 //开始下载  
  38.                 msgService.startDownLoad();  
  39.             }  
  40.         });  
  41.           
  42.     }  
  43.       
  44.   
  45.     ServiceConnection conn = new ServiceConnection() {  
  46.         @Override  
  47.         public void onServiceDisconnected(ComponentName name) {  
  48.               
  49.         }  
  50.           
  51.         @Override  
  52.         public void onServiceConnected(ComponentName name, IBinder service) {  
  53.             //返回一个MsgService对象  
  54.             msgService = ((MsgService.MsgBinder)service).getService();  
  55.               
  56.             //注册回调接口来接收下载进度的变化  
  57.             msgService.setOnProgressListener(new OnProgressListener() {  
  58.                   
  59.                 @Override  
  60.                 public void onProgress(int progress) {  
  61.                     mProgressBar.setProgress(progress);  
  62.                       
  63.                 }  
  64.             });  
  65.               
  66.         }  
  67.     };  
  68.   
  69.     @Override  
  70.     protected void onDestroy() {  
  71.         unbindService(conn);  
  72.         super.onDestroy();  
  73.     }  
  74.   
  75.   
  76. }  
  77. </span>  
用回调接口是不是更加的方便呢,当进度发生变化的时候Service主动通知Activity,Activity就可以更新UI操作了
2.进程间通信(aidl方式)

1.什么是aidl:aidl是 Android Interface definition language的缩写,一看就明白,它是一种android内部进程通信接口的描述语言,通过它我们可以定义进程间的通信接口
icp:interprocess communication :内部进程通信

 

2.既然aidl可以定义并实现进程通信,那么我们怎么使用它呢?文档/android-sdk/docs/guide/developing/tools/aidl.html中对步骤作了详细描述:

--1.Create your .aidl file - This file defines an interface (YourInterface.aidl) that defines the methods and fields available to a client. 
创建你的aidl文件,我在后面给出了一个例子,它的aidl文件定义如下:写法跟java代码类似,但是这里有一点值得注意的就是它可以引用其它aidl文件中定义的接口,但是不能够引用你的java类文件中定义的接口

[java]  view plain copy
  1. package com.cao.android.demos.binder.aidl;    
  2. import com.cao.android.demos.binder.aidl.AIDLActivity;  
  3. interface AIDLService {     
  4.     void registerTestCall(AIDLActivity cb);     
  5.     void invokCallBack();  
  6. }    

--2.Add the .aidl file to your makefile - (the ADT Plugin for Eclipse manages this for you). Android includes the compiler, called AIDL, in the tools/ directory. 
编译你的aidl文件,这个只要是在eclipse中开发,你的adt插件会像资源文件一样把aidl文件编译成java代码生成在gen文件夹下,不用手动去编译:编译生成AIDLService.java如我例子中代码


--3.Implement your interface methods - The AIDL compiler creates an interface in the Java programming language from your AIDL interface. This interface has an inner abstract class named Stub that inherits the interface (and implements a few additional methods necessary for the IPC call). You must create a class that extends YourInterface.Stub and implements the methods you declared in your .aidl file. 
实现你定义aidl接口中的内部抽象类Stub,public static abstract class Stub extends android.os.Binder implements com.cao.android.demos.binder.aidl.AIDLService
Stub类继承了Binder,并继承我们在aidl文件中定义的接口,我们需要实现接口方法,下面是我在例子中实现的Stub类:
 

[java]  view plain copy
  1. private final AIDLService.Stub mBinder = new AIDLService.Stub() {  
  2.   
  3.     @Override  
  4.     public void invokCallBack() throws RemoteException {  
  5.         Log("AIDLService.invokCallBack");  
  6.         Rect1 rect = new Rect1();  
  7.         rect.bottom=-1;  
  8.         rect.left=-1;  
  9.         rect.right=1;  
  10.         rect.top=1;  
  11.         callback.performAction(rect);  
  12.     }  
  13.   
  14.   
  15.     @Override  
  16.     public void registerTestCall(AIDLActivity cb) throws RemoteException {  
  17.         Log("AIDLService.registerTestCall");  
  18.         callback = cb;  
  19.     }  
  20. };  

Stub翻译成中文是存根的意思,注意Stub对象是在被调用端进程,也就是服务端进程,至此,服务端aidl服务端得编码完成了。

--4.Expose your interface to clients - If you're writing a service, you should extend Service and override Service.onBind(Intent) to return an instance of your class that implements your interface. 
第四步告诉你怎么在客户端如何调用服务端得aidl描述的接口对象,doc只告诉我们需要实现Service.onBind(Intent)方法,该方法会返回一个IBinder对象到客户端,绑定服务时不是需要一个ServiceConnection对象么,在没有了解aidl用法前一直不知道它是什么作用,其实他就是用来在客户端绑定service时接收service返回的IBinder对象的:

[java]  view plain copy
  1. AIDLService mService;  
  2. private ServiceConnection mConnection = new ServiceConnection() {  
  3.     public void onServiceConnected(ComponentName className, IBinder service) {  
  4.         Log("connect service");  
  5.         mService = AIDLService.Stub.asInterface(service);  
  6.         try {  
  7.             mService.registerTestCall(mCallback);  
  8.         } catch (RemoteException e) {  
  9.   
  10.         }  
  11.     }  
  12.   
  13.   
  14.     public void onServiceDisconnected(ComponentName className) {  
  15.         Log("disconnect service");  
  16.         mService = null;  
  17.     }  
  18. };  

 

mService就是AIDLService对象,具体可以看我后面提供的示例代码,需要注意在客户端需要存一个服务端实现了的aidl接口描述文件,但是客户端只是使用该aidl接口,不需要实现它的Stub类,获取服务端得aidl对象后mService = AIDLService.Stub.asInterface(service);,就可以在客户端使用它了,对mService对象方法的调用不是在客户端执行,而是在服务端执行。

4.aidl中使用java类,需要实现Parcelable接口,并且在定义类相同包下面对类进行声明:

上面我定义了Rect1类
之后你就可以在aidl接口中对该类进行使用了
package com.cao.android.demos.binder.aidl;  
import com.cao.android.demos.binder.aidl.Rect1;
interface AIDLActivity {   
    void performAction(in Rect1 rect);   
}  
注意in/out的说明,我这里使用了in表示输入参数,out没有试过,为什么使用in/out暂时没有做深入研究。

5.aidl使用完整示例,为了清除说明aidl使用,我这里写了一个例子,例子参考了博客:

http://blog.csdn.net/saintswordsman/archive/2010/01/04/5130947.aspx

作出说明

例子实现了一个AIDLTestActivity,AIDLTestActivity通过bindservice绑定一个服务AIDLTestService,通过并获取AIDLTestActivity的一个aidl对象AIDLService,该对象提供两个方法,一个是registerTestCall注册一个aidl对象,通过该方法,AIDLTestActivity把本身实现的一个aidl对象AIDLActivity传到AIDLTestService,在AIDLTestService通过操作AIDLActivity这个aidl远端对象代理,使AIDLTestActivity弹出一个toast,完整例子见我上传的资源:

http://download.csdn.net/source/3284820

文章仓促而成,有什么疑问欢迎大家一起讨论。


当我们的进度发生变化的时候我们发送一条广播,然后在Activity的注册广播接收器,接收到广播之后更新ProgressBar,代码如下

[java]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. package com.example.communication;  
  2. <span style="font-family:System;">  
  3. import android.app.Activity;  
  4. import android.content.BroadcastReceiver;  
  5. import android.content.Context;  
  6. import android.content.Intent;  
  7. import android.content.IntentFilter;  
  8. import android.os.Bundle;  
  9. import android.view.View;  
  10. import android.view.View.OnClickListener;  
  11. import android.widget.Button;  
  12. import android.widget.ProgressBar;  
  13.   
  14. public class MainActivity extends Activity {  
  15.     private ProgressBar mProgressBar;  
  16.     private Intent mIntent;  
  17.     private MsgReceiver msgReceiver;  
  18.       
  19.   
  20.     @Override  
  21.     protected void onCreate(Bundle savedInstanceState) {  
  22.         super.onCreate(savedInstanceState);  
  23.         setContentView(R.layout.activity_main);  
  24.           
  25.         //动态注册广播接收器  
  26.         msgReceiver = new MsgReceiver();  
  27.         IntentFilter intentFilter = new IntentFilter();  
  28.         intentFilter.addAction("com.example.communication.RECEIVER");  
  29.         registerReceiver(msgReceiver, intentFilter);  
  30.           
  31.           
  32.         mProgressBar = (ProgressBar) findViewById(R.id.progressBar1);  
  33.         Button mButton = (Button) findViewById(R.id.button1);  
  34.         mButton.setOnClickListener(new OnClickListener() {  
  35.               
  36.             @Override  
  37.             public void onClick(View v) {  
  38.                 //启动服务  
  39.                 mIntent = new Intent("com.example.communication.MSG_ACTION");  
  40.                 startService(mIntent);  
  41.             }  
  42.         });  
  43.           
  44.     }  
  45.   
  46.       
  47.     @Override  
  48.     protected void onDestroy() {  
  49.         //停止服务  
  50.         stopService(mIntent);  
  51.         //注销广播  
  52.         unregisterReceiver(msgReceiver);  
  53.         super.onDestroy();  
  54.     }  
  55.   
  56.   
  57.     /** 
  58.      * 广播接收器 
  59.      * @author len 
  60.      * 
  61.      */  
  62.     public class MsgReceiver extends BroadcastReceiver{  
  63.   
  64.         @Override  
  65.         public void onReceive(Context context, Intent intent) {  
  66.             //拿到进度,更新UI  
  67.             int progress = intent.getIntExtra("progress"0);  
  68.             mProgressBar.setProgress(progress);  
  69.         }  
  70.           
  71.     }  
  72.   
  73. }  
  74. </span>  

[java]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. <span style="font-family:System;">package com.example.communication;  
  2.   
  3. import android.app.Service;  
  4. import android.content.Intent;  
  5. import android.os.IBinder;  
  6.   
  7. public class MsgService extends Service {  
  8.     /** 
  9.      * 进度条的最大值 
  10.      */  
  11.     public static final int MAX_PROGRESS = 100;  
  12.     /** 
  13.      * 进度条的进度值 
  14.      */  
  15.     private int progress = 0;  
  16.       
  17.     private Intent intent = new Intent("com.example.communication.RECEIVER");  
  18.       
  19.   
  20.     /** 
  21.      * 模拟下载任务,每秒钟更新一次 
  22.      */  
  23.     public void startDownLoad(){  
  24.         new Thread(new Runnable() {  
  25.               
  26.             @Override  
  27.             public void run() {  
  28.                 while(progress < MAX_PROGRESS){  
  29.                     progress += 5;  
  30.                       
  31.                     //发送Action为com.example.communication.RECEIVER的广播  
  32.                     intent.putExtra("progress", progress);  
  33.                     sendBroadcast(intent);  
  34.                       
  35.                     try {  
  36.                         Thread.sleep(1000);  
  37.                     } catch (InterruptedException e) {  
  38.                         e.printStackTrace();  
  39.                     }  
  40.                       
  41.                 }  
  42.             }  
  43.         }).start();  
  44.     }  
  45.   
  46.       
  47.   
  48.     @Override  
  49.     public int onStartCommand(Intent intent, int flags, int startId) {  
  50.         startDownLoad();  
  51.         return super.onStartCommand(intent, flags, startId);  
  52.     }  
  53.   
  54.   
  55.   
  56.     @Override  
  57.     public IBinder onBind(Intent intent) {  
  58.         return null;  
  59.     }  
  60.   
  61.   
  62. }</span>  

总结:

1. Activity调用bindService (Intent service, ServiceConnection conn, int flags)方法,得到Service对象的一个引用,这样Activity可以直接调用到Service中的方法,如果要主动通知Activity,我们可以利用回调方法

 2. ServiceActivity发送消息,可以使用广播,当然Activity要注册相应的接收器。比如Service要向多个Activity发送同样的消息的话,用这种方法就更好

PS

1. ServiceActivity之间进行交互也可以在Service中注册一个aidl回调,在Service完成某个任务之后回调相应的接口。系统包管理服务PackageManagerService跟系统应用PackageInstaller交互时采用的就是这种方式。

2. 不同的应用程序之间需要共享数据时,可以使用Content Provider来实现


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值