-
androidapp
学习Android最快的方法就是先研究例子,下面是十个打包好的案例,供大家下载学习。
1、 图片浏览器(Picture Viewer)
2 、文件浏览器(File Browser)
3 、通讯录(Contact)
4 、任务管理器(Task Manager)
5 、音乐播放器(Rock Player)
6 、天气预报(Android Weather Forecast)
7 、多媒体播放器(Android Media Player)
8、短信语音播报(Speak Message Service)
9、手机远程监控(Cam Monitor)
10、贪吃蛇游戏(Snake)(Android is the fastest way to learn first case study, following the ten-packaged case, for all to download the study. 1, Picture Viewer (Picture Viewer) 2, File Browser (File Browser) 3, address book (Contact) 4, Task Manager (Task Manager) 5, music player (Rock Player) 6, weather (Android Weather Forecast) 7, multimedia player (Android Media Player) 8, SMS voice broadcast (Speak Message Service) 9, mobile remote monitoring (Cam Monitor) 10, Snake Game (Snake))
- 2011-11-24 03:07:16下载
- 积分:1
-
android3_10
android 2d 图形绘制,小球不停地跳转(android small program)
- 2012-05-09 22:09:52下载
- 积分:1
-
图书馆系统
仅供学习,基于jsp的小型图书馆管理系统+mysql
- 2022-08-13 22:59:28下载
- 积分:1
-
TouchActivity
触屏触摸活动测试代码,声明ImageView变量,声明相关变量作为存储图片宽高,位置使用,声明存储屏幕的分辨率变量,取得屏幕对象,取得屏幕解析像素,通过findViewById构造器创建ImageView对象,将图片从Drawable赋值给ImageView来呈现,当点击ImageView,还原初始位置,取得手指触控屏幕的位置,覆盖触控事件,防图片超过屏幕的相关处理,防止屏幕向右超过屏幕,以setLayoutParams方法,重新安排Layout上的位置,以setLayoutParams方法,重新安排Layout上的位置...
(Weather Android source code, obtained Google s weather API data themselves may again be extended run shot more difficult to grasp here, an environmental source test it on the download, Android Weather WeatherForecast seems to be common and the primary example of a simple Android , but would like to develop a beautiful and feature-rich weather application, it requires a lot of knowledge of the perfect combination.)
- 2013-08-01 18:19:48下载
- 积分:1
-
android 仿微信浏览相册图片例子源码下载
[实例简介] 仿微信浏览相册图片, 相册浏览 [实例截图] [核心代码]import java.io.File;import java.io.FilenameFilter;import java.util.ArrayList;import java.util.Arrays;import java.util.HashSet;import java.util.List;import android.app.Activity;import android.app.ProgressDialog;import android.content.ContentResolver;import android.database.Cursor;import android.net.Uri;import android.os.Bundle;import android.os.Environment;import android.os.Handler;import android.provider.MediaStore;import android.util.DisplayMetrics;import android.util.Log;import android.view.LayoutInflater;import android.view.View;import android.view.View.OnClickListener;import android.view.ViewGroup.LayoutParams;import android.view.WindowManager;import android.widget.GridView;import android.widget.PopupWindow.OnDismissListener;import android.widget.RelativeLayout;import android.widget.TextView;import android.widget.Toast;import com.zhy.bean.ImageFloder;import com.zhy.imageloader.ListImageDirPopupWindow.OnImageDirSelected;public class MainActivity extends Activity implements OnImageDirSelected{ private ProgressDialog mProgressDialog; /** * 存储文件夹中的图片数量 */ private int mPicsSize; /** * 图片数量最多的文件夹 */ private File mImgDir; /** * 所有的图片 */ private List mImgs; private GridView mGirdView; private MyAdapter mAdapter; /** * 临时的辅助类,用于防止同一个文件夹的多次扫描 */ private HashSet mDirPaths = new HashSet(); /** * 扫描拿到所有的图片文件夹 */ private List mImageFloders = new ArrayList(); private RelativeLayout mBottomLy; private TextView mChooseDir; private TextView mImageCount; int totalCount = 0; private int mScreenHeight; private ListImageDirPopupWindow mListImageDirPopupWindow; private Handler mHandler = new Handler() { public void handleMessage(android.os.Message msg) { mProgressDialog.dismiss(); // 为View绑定数据 data2View(); // 初始化展示文件夹的popupWindw initListDirPopupWindw(); } }; /** * 为View绑定数据 */ private void data2View() { if (mImgDir == null) { Toast.makeText(getApplicationContext(), "擦,一张图片没扫描到", Toast.LENGTH_SHORT).show(); return; } mImgs = Arrays.asList(mImgDir.list()); /** * 可以看到文件夹的路径和图片的路径分开保存,极大的减少了内存的消耗; */ mAdapter = new MyAdapter(getApplicationContext(), mImgs, R.layout.grid_item, mImgDir.getAbsolutePath()); mGirdView.setAdapter(mAdapter); mImageCount.setText(totalCount "张"); }; /** * 初始化展示文件夹的popupWindw */ private void initListDirPopupWindw() { mListImageDirPopupWindow = new ListImageDirPopupWindow( LayoutParams.MATCH_PARENT, (int) (mScreenHeight * 0.7), mImageFloders, LayoutInflater.from(getApplicationContext()) .inflate(R.layout.list_dir, null)); mListImageDirPopupWindow.setOnDismissListener(new OnDismissListener() { @Override public void onDismiss() { // 设置背景颜色变暗 WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = 1.0f; getWindow().setAttributes(lp); } }); // 设置选择文件夹的回调 mListImageDirPopupWindow.setOnImageDirSelected(this); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); DisplayMetrics outMetrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(outMetrics); mScreenHeight = outMetrics.heightPixels; initView(); getImages(); initEvent(); } /** * 利用ContentProvider扫描手机中的图片,此方法在运行在子线程中 完成图片的扫描,最终获得jpg最多的那个文件夹 */ private void getImages() { if (!Environment.getExternalStorageState().equals( Environment.MEDIA_MOUNTED)) { Toast.makeText(this, "暂无外部存储", Toast.LENGTH_SHORT).show(); return; } // 显示进度条 mProgressDialog = ProgressDialog.show(this, null, "正在加载..."); new Thread(new Runnable() { @Override public void run() { String firstImage = null; Uri mImageUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; ContentResolver mContentResolver = MainActivity.this .getContentResolver(); // 只查询jpeg和png的图片 Cursor mCursor = mContentResolver.query(mImageUri, null, MediaStore.Images.Media.MIME_TYPE "=? or " MediaStore.Images.Media.MIME_TYPE "=?", new String[] { "image/jpeg", "image/png" }, MediaStore.Images.Media.DATE_MODIFIED); Log.e("TAG", mCursor.getCount() ""); while (mCursor.moveToNext()) { // 获取图片的路径 String path = mCursor.getString(mCursor .getColumnIndex(MediaStore.Images.Media.DATA)); Log.e("TAG", path); // 拿到第一张图片的路径 if (firstImage == null) firstImage = path; // 获取该图片的父路径名 File parentFile = new File(path).getParentFile(); if (parentFile == null) continue; String dirPath = parentFile.getAbsolutePath(); ImageFloder imageFloder = null; // 利用一个HashSet防止多次扫描同一个文件夹(不加这个判断,图片多起来还是相当恐怖的~~) if (mDirPaths.contains(dirPath)) { continue; } else { mDirPaths.add(dirPath); // 初始化imageFloder imageFloder = new ImageFloder(); imageFloder.setDir(dirPath); imageFloder.setFirstImagePath(path); } int picSize = parentFile.list(new FilenameFilter() { @Override public boolean accept(File dir, String filename) { if (filename.endsWith(".jpg") || filename.endsWith(".png") || filename.endsWith(".jpeg")) return true; return false; } }).length; totalCount = picSize; imageFloder.setCount(picSize); mImageFloders.add(imageFloder); if (picSize > mPicsSize) { mPicsSize = picSize; mImgDir = parentFile; } } mCursor.close(); // 扫描完成,辅助的HashSet也就可以释放内存了 mDirPaths = null; // 通知Handler扫描图片完成 mHandler.sendEmptyMessage(0x110); } }).start(); } /** * 初始化View */ private void initView() { mGirdView = (GridView) findViewById(R.id.id_gridView); mChooseDir = (TextView) findViewById(R.id.id_choose_dir); mImageCount = (TextView) findViewById(R.id.id_total_count); mBottomLy = (RelativeLayout) findViewById(R.id.id_bottom_ly); } private void initEvent() { /** * 为底部的布局设置点击事件,弹出popupWindow */ mBottomLy.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { mListImageDirPopupWindow .setAnimationStyle(R.style.anim_popup_dir); mListImageDirPopupWindow.showAsDropDown(mBottomLy, 0, 0); // 设置背景颜色变暗 WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = .3f; getWindow().setAttributes(lp); } }); } @Override public void selected(ImageFloder floder) { mImgDir = new File(floder.getDir()); mImgs = Arrays.asList(mImgDir.list(new FilenameFilter() { @Override public boolean accept(File dir, String filename) { if (filename.endsWith(".jpg") || filename.endsWith(".png") || filename.endsWith(".jpeg")) return true; return false; } })); /** * 可以看到文件夹的路径和图片的路径分开保存,极大的减少了内存的消耗; */ mAdapter = new MyAdapter(getApplicationContext(), mImgs, R.layout.grid_item, mImgDir.getAbsolutePath()); mGirdView.setAdapter(mAdapter); // mAdapter.notifyDataSetChanged(); mImageCount.setText(floder.getCount() "张"); mChooseDir.setText(floder.getName()); mListImageDirPopupWindow.dismiss(); }}
- 2015-04-08下载
- 积分:1
-
High performance in multipoint system using PVSN approach
最近,有一个
- 2022-12-12 15:20:03下载
- 积分:1
-
hotel宾馆服务系统
资源描述大家可以看看大家可以看看大家可以看看大家可以看看大家可以看看大家可以看看大家可以看看大家可以看看大家可以看看大家可以看看大家可以看看大家可以看看大家可以看看
- 2023-07-14 10:25:03下载
- 积分:1
-
图像融合的应用
图像融合是从两个或更多个图像组合相关的信息到单个图像的处理。所产生的图像将是比任何输入图像的更多的信息。在遥感应用,空间载传感器的日益普及提供了一个动机不同的图像融合算法。在图像处理中的几种情况需要在一个单一的图像中的高空间和高光谱分辨率。大部分的现有的设备是不能够令人信服提供这种数据。图像融合技术允许不同信息源的集成。融合图像可以具有互补的空间和光谱分辨率特性。但是,标准图像融合技术可以扭曲多光谱数据的光谱信息,同时合并。在卫星图像,提供了两种类型的图像。通过卫星获得的全色图像传输的最大分辨率可与多光谱数据与较粗的分辨率传输。这通常是较低的两个或四倍。在接收站,全色图像融合与多光谱数据传达更多的信息。
- 2022-08-19 18:01:57下载
- 积分:1
-
Android仿饿了么APP源码
说明: Android应用程序仿饿了么,没有实现网络编程,可用于学习交流(Suitable for novice study, graduation project, major assignment)
- 2020-12-02 10:19:26下载
- 积分:1
-
Swing UI Task
应用背景这是一个包装了Callable的Dialog,可以快速启动一个滚动进度条。这是一个包装了Callable的Dialog,可以快速启动一个滚动进度条。关键技术主要应用Java Swing,兼容所有JDK版本。主要应用Java Swing,兼容所有JDK版本。主要应用Java Swing,兼容所有JDK版本。
- 2022-12-27 03:35:03下载
- 积分:1