-
android Sax解析实例源码下载
android Sax解析实例源码下载
- 2014-03-14下载
- 积分:1
-
android 播放网络MP3 音乐播放
简单的基本功能,实测可行。 核心代码:package com.sharpandroid.music.activity;import java.io.IOException;import android.app.Activity;import android.os.Bundle;import android.util.Log;import android.view.View;import android.widget.Button;import android.widget.ImageButton;import android.widget.SeekBar;import android.widget.TextView;import com.sharpandroid.music.R;import com.sharpandroid.music.StreamingMediaPlayer;public class MediaPlayer extends Activity { private Button streamButton; private ImageButton playButton; private boolean isPlaying; private TextView playTime; private StreamingMediaPlayer audioStreamer; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); initControls(); } private void initControls() { playTime=(TextView) findViewById(R.id.playTime); streamButton = (Button) findViewById(R.id.button_stream); streamButton.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { startStreamingAudio(); }}); playButton = (ImageButton) findViewById(R.id.button_play); playButton.setEnabled(false); playButton.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { if (audioStreamer.getMediaPlayer().isPlaying()) { audioStreamer.getMediaPlayer().pause(); playButton.setImageResource(R.drawable.button_play); } else { audioStreamer.getMediaPlayer().start(); audioStreamer.startPlayProgressUpdater(); playButton.setImageResource(R.drawable.button_pause); } isPlaying = !isPlaying; }}); } private void startStreamingAudio() { try { final SeekBar progressBar = (SeekBar) findViewById(R.id.progress_bar); if ( audioStreamer != null) { audioStreamer.interrupt(); } audioStreamer = new StreamingMediaPlayer(this, playButton, streamButton, progressBar,playTime); audioStreamer.startStreaming("http://192.168.64.1/xa.mp3",5208, 216); streamButton.setEnabled(false); } catch (IOException e) { Log.e(getClass().getName(), "读取音乐出错!", e); } }}
- 2014-05-26下载
- 积分:1
-
一种类似于Excel表格(网上找的,感觉还不错)
一种类似于Excel表格(网上找的,感觉还不错)
- 2014-04-04下载
- 积分:1
-
基于TCP socket,Android客户端与PC通信,客户端源码
基于TCP~socket,Android客户端与PC通信,客户端源码。已经测试,可用。附带apk,和网络调试助手,方便测试。只需提供服务器的IP和端口号,即可通信。客户端:一次连接,可发送多次数据。重点是客户端时时接收服务器端发送来的数据。采用 Handler和Thead结合。项目中包含了 网络调试助手V3.8.1.exe demoClientTcpIp.apk以及项目源码
- 2016-03-10下载
- 积分:1
-
android h263硬编码rtp打包
说明:该android代码h263硬编码rtp打包发送服务器,pc端建立sdp文件用vlc播放1、服务器ip为192.168.1.62、android手机ip为192.168.1.17,在小米1s测试通过,像三星等手机不支持h263编码3、android端修改net.config包下的Config类的url4、pc端用已有的sdp文件播放,修改ip为手机ip
- 2015-12-07下载
- 积分:1
-
android 异步 执行 任务 例子 附讲解
Rules::The AsyncTask instance must be created in UI thread. .execute must be invoked on the UI thread.Never call objMyTask.onPreExecute(), objMyTask.doInBackground(), objMyTask.onProgressUpdate(), objMyTask.onPostExecute manually.The AsyncTask can be executed only once (an exception will be thrown if a second execution is attempted.)AsyncTask have Four Main Method... onPreExecute() doInBackground() onProgressUpdate() onPostExecute() onPreExecute-This method is called first when you start AsyncTask using objAsync.execute().And mostly this method is use for initializing dialog(ProgressDialog,CustomDialog) and showing. doInBackground-The main purpose of AsyncTask is accomplished by this method.Any non-UI thread process is running in this method.Such as Rss Feed Reader,Image and video Uploading and Downloading.You cant handle your View in this method.Because this method is non-UI thread.While any background process is running if you want to handle UI therea are onProgressUpdate method. after completion of process this method send result to OnPostExecute. onProgressUpdate-While backgrounding task is running ,you can handle your UI using this method .Such as status of downloading or uploading task.and this method is called from doInBackground.Using publishProgress() you can call onProgressUpdate method to update UI while process is running. onPostExecute -This method is called after the background computation finishes.The result of background process in passed in this method as parameters.And now you can dismiss progress dialog ,to indicate that background task is completed. You can cancel AsyncTask using objAsyncTask.cancel().then you just check in doInBackground, if (isCancelled()) { break; } else { //continue... } See this Image For more Clear.
- 2013-07-05下载
- 积分:1
-
android视频录制(支持闪光灯以及前置后置摄像头拍摄) 实例源码下载
支持闪光灯、前置、后置摄像头拍摄,有预览功能,非常不错
- 2015-03-06下载
- 积分:1
-
fragment+viewpager+定位的代码
fragment viewpager 定位的代码
- 2015-05-15下载
- 积分:1
-
android 时间轴(listview实现) 例子源码
android 时间轴(listview实现) 例子源码
- 2014-12-04下载
- 积分:1
-
android 聊天(可发送 信息+录音+语音+文件)实例
android 聊天(可发送 信息+录音+语音+文件)实例
- 2015-01-08下载
- 积分:1