登录
首页 » Android » WIFI-Direct

WIFI-Direct

于 2022-06-27 发布 文件大小:339.75 kB
0 218
下载积分: 2 下载次数: 1

代码说明:

支持WIFI-Direct, 直传,是一款android软件, demo, 支持单个发送和多个发送,采用socket链接,建立在wifi的基础上实现的。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • MemoryGame
    memory games sample code for eclipse open source program
    2012-04-16 03:29:28下载
    积分:1
  • 微信抢红包源码
    关于AccessibilityService 先看看官网的介绍Accessibility Many Android users have different abilities that require them to interact with their Android devices in different ways. These include users who have visual, physical or age-related limitations that prevent them from fully seeing or using a touchscreen, and users with hearing loss who may not be able to perceive audible information and alerts... Android官网详解accessibility 上面大概的意思就是Accessibility是一个辅助服务,主要是面向一些使用Android手机的用户有相关障碍(年龄、视觉、听力、身体等),这个功能可以更容
    2022-10-15 20:15:04下载
    积分:1
  • android 酒店应用源码实例 含数据库以及web端
    android 酒店应用源码实例
    2013-01-10下载
    积分:1
  • pmic8058
    lib kenel linux for android
    2013-11-04 19:40:36下载
    积分:1
  • compass
    简单指南针,实现指南针的功能,新手使用 Android Studio(Simple compass, realize the function of compass, novice use)
    2018-12-25 11:38:41下载
    积分:1
  • 求原根指数表的android APP
    资源描述如果你是学习信息安全专业的学生,你肯定会学习信息安全数学基础,这样就会接触到原根和指数表的概念,这个app简单而且能助你快速的求出原根和指数表,操作界面简单易懂。
    2022-08-10 14:38:35下载
    积分:1
  • 远程视频监控
    【核心代码】 public interface CameraSource {  static final String LOG_TAG = "camera";  /**  * Open the camera source for subsequent use via calls to capture().  *   * @return true if the camera source was successfully opened.  */  boolean open();  /**  * Close the camera source. Calling close on a closed CameraSource is  * permitted but has no effect. The camera source may be reopened after  * being closed.  */  void close();  /**  * The width of the captured image.  *   * @return the width of the capture in pixels  */  int getWidth();  /**  * The height of the captured image.  *   * @return the height of the capture in pixels  */  int getHeight();  /**  * Attempts to render the current camera view onto the supplied canvas.  * The capture will be rendered into the rectangle (0,0,width,height).  * Outstanding transformations on the canvas may alter this.  *   * @param canvas the canvas to which the captured pixel data will be written  * @return true iff a frame was successfully written to the canvas  */  boolean capture(Canvas canvas);  boolean saveImage(String savePath, String fileName); }
    2013-12-04下载
    积分:1
  • android 短信拦截 实例完整源码下载
    可实现拦截短信,自动转发的功能。 部分代码:import android.app.AlarmManager;import android.app.PendingIntent;import android.app.Service;import android.content.Context;import android.content.Intent;import android.content.IntentFilter;import android.os.IBinder;import android.os.PowerManager;import android.os.PowerManager.WakeLock;public class MyService extends Service{ SMSReceiver rs=null; static MyService service; private static PendingIntent pi = null; public static AlarmManager am = null; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } @Override public void onCreate() { // TODO Auto-generated method stub super.onCreate(); service=this; pm = (PowerManager) getSystemService(Context.POWER_SERVICE); registerAlarm(); acquireWakeLock(this); registerRecever(); } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); releaseWakeLock(); unregisterAlarm(); } private void registerRecever(){ rs=new SMSReceiver(); IntentFilter filter=new IntentFilter(); filter.addAction("android.provider.Telephony.SMS_RECEIVED"); filter.setPriority(1000); registerReceiver(rs, filter); } @Override public int onStartCommand(Intent intent, int flags, int startId) { // TODO Auto-generated method stub if(rs==null)registerRecever(); return START_STICKY; } public static WakeLock wakeLock = null; private static PowerManager pm = null; public static synchronized void acquireWakeLock(Context c) { if (null == wakeLock) { wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "smslock"); wakeLock.acquire(); } } public static synchronized void releaseWakeLock() { if (wakeLock == null) return; if (wakeLock.isHeld()) { wakeLock.release(); wakeLock = null; } } /** * 启动重复型定时器 */ public static void registerAlarm() { if(Config.getAlarm())return; Intent intent = new Intent(service, AlarmReceiver.class); pi = PendingIntent.getBroadcast(service, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); // 设置一个PendingIntent对象,发送广播 am = (AlarmManager) service.getSystemService(Context.ALARM_SERVICE); // 获取AlarmManager对象, Config.setAlarm(true); am.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), 30*60*1000, pi); } /** * 取消定时器 */ public static void unregisterAlarm() { am.cancel(pi); am = null; Config.setAlarm(false); }}
    2014-05-21下载
    积分:1
  • android仿淘宝购物物流时间轴效果
    android仿淘宝购物物流时间轴效果,用来显示物流的listview,自定义的物流跟踪状态显示的view,时间轴的定义代码如下:   protected void onCreate(Bundle savedInstanceState) {   super.onCreate(savedInstanceState);   setContentView(R.layout.activity_main);   timeLine=(TimeLineView) findViewById(R.id.tv_timelines);   timeLine.setTimelineCount(6);//设置显示多少个时间轴   timeLine.setTimelineRadius(8);//设置下面那些轴的圆点直径   timeLine.setTimelineWidth(3);//设置时间轴的宽度   timeLine.setTimelineRadiusDistance(80);//设置时间轴的高度   }   默认设置时间轴的位置位于view的中间,设置第一个节点的颜色mPaint.setColor(timelineHeadColor);根据时间轴的节点数目,画对应的节点和轴,当j==1,画第一个节点的时候,有点特殊,我们需要在节点的外面再换一个圆环,画时间轴的节点,即画圆形 圆心的x都是一样的,view的中间, 圆心的y的计算是根据节点的位置来计算的,例如:第一个节点的y是根据第一个节点距离上面的距离加上第一个节点的半径   :timelineHeadRadius + marginTop   其余的节点就是在一个节点的y的基础上,加上两倍半径和节点之间的轴的长度*节点数,画其余的轴 left:每个轴距离左边距离都是一样的,时间轴的中心位置-1/2的时间轴的宽度。
    2023-09-02 02:45:03下载
    积分:1
  • 安卓文件浏览器
    安卓文件浏览器,实现简单的文件浏览功能,并且已经实现调用合适的应用程序打开已选的文件。通过编程练习安卓开发能力。增强编码能力。
    2023-06-07 06:50:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载