android 播放视频 Android 播放音频

摘要: PhoneGap API帮助文档翻译Notification提醒是本文要介绍的内容,主要是来了解PhoneGap API文档的内容,具体PhoneGap API文档内容的详解来看本文,设备的视觉、听觉和触觉通知。方法:notification.alert notification.confirm notification.beep notification.vibrate notification.alert显示一个定制的警告或对话框。navigator.notification.alert(message,alertCallback,[title],[buttonName]); naviga 阅读全文
posted @ 2013-03-04 16:11 残星 阅读(28) | 评论 (0) 编辑
 
摘要: 做完一个Android项目之后,如何才能把项目发布到Internet上供别人使用呢?我们需要将自己的程序打包成Android安装包文件 --APK(Android Package),其后缀名为".apk"。将APK文件直接上传到Android模拟器或Android手机中执行即可进行安装。Android系统要求具有其开发者签名的私人密钥的应用程序才能够被安装。生成数字签名以及打包项目成APK都可以采用命令行的方式,但是通过Eclipse中的向导我们会更加方便地完成整个流程,打包发布的过程非常简单。下面以前面开发的"Hello World"为例,演示如何生成 阅读全文
posted @ 2013-02-20 10:09 残星 阅读(52) | 评论 (0) 编辑
 
摘要: <script type="text/javascript" charset="utf-8" > //Sample use: /** * Display an intent to play the video. * * @param url The url to play */ //play(url) //window.plugins.videoPlayer.play("http://path.to.my/video.mp4"); //window.plugins.videoPlayer.play("file:/ 阅读全文
posted @ 2013-02-01 14:38 残星 阅读(36) | 评论 (0) 编辑
 
摘要: 1. 需求Eclipse 3.4+本教程还有另外一个不使用Eclipse的版本,参照这里。2. 安装SDK + PhoneGap下载并安装Eclipse Classic。下载并安装Android SDK。下载并安装ADT Plugin。下载最新版本的PhoneGap并解压,我们将使用其中的Android目录。3. 新项目设置启动Eclipse,然后在菜单“File”下选择“New > Android Project”。在项目根目录下,创建两个新目录:/libs/assets/www复制phonegap.js(从PhoneGap解压缩后的Android目录中,将解压缩后的带版本号的js文件 阅读全文
posted @ 2013-01-29 17:51 残星 阅读(34) | 评论 (0) 编辑
 
摘要: package com.example.test2;import android.media.AudioManager;import android.media.MediaPlayer;import android.os.Bundle;import android.app.Activity;import android.app.Service;import android.view.Menu;import android.view.View;import android.widget.Button;import android.widget.CompoundButton;import andr 阅读全文
posted @ 2013-01-26 20:09 残星 阅读(19) | 评论 (0) 编辑
 
摘要: webview ,用网页来布局。 Android 的 webview 是基于 webkit 内核,不过他的运行效果和 firefox 上一模一样,所以写的时候都是先用 firefox 测试,测试 OK 了再放到程序里面看效果,基本上不会有什么问题。其实 android 的 webview 跟 iphone 的 webview 差不多, iphone 上的 webview 比 android 上的强大多了。谈一下研究 webview 的一些成果:一. 加载资源的速度不慢,但是资源多了,就很慢。图片、 css 、 js 、 html 这些资源每个大概需要 10-200ms ,一般都是 30ms 就 阅读全文
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值