Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - exception
Search - exception - List
DL : 0
在以前的文章中,我已經表明,它可以連接一個藍牙模塊到ATMEGA微控制器通過 UART串行接口,甚至進一步,發現它使用藍牙功能的電腦或智能手機。 9600串行鏈路的建立,可以比用來交換數據。 使用Android手機用於此目的也不例外。我將用它來控制英仙座3機器人平台。我米做的是直接連接的Android與 ATMEGA單片機通過串口藍牙連接。所以,你可以使用這種技術用於其他目的不是機器人,因為 ATMEGA有一個大範圍可能的用途:控制光在家裡使用的Android手機,閱讀各種傳感器和收集數據的Android等。-In a previous article, I ve shown that it is possible to connect a bluetooth module to an ATMega micro controller via the UART serial interface and even further, discover it using a bluetooth enabled computer or smartphone. The 9600bps serial link established, can than be used to exchange data. Using an Android phone for this purpose is no exception. I will use it to control the Perseus 3 robot platform. What I m doing is directly interfacing the Android with the ATMega microcontroller via the serial bluetooth link. So you can use this technology for other purposes than robots, since the ATMega has a large range of possible uses: control the light in your home using the Android phone, read various sensors and gather the data on the Android, and more.
Date : 2026-01-03 Size : 591kb User : ckw

private void ShowSelectFiles(){ String actionName = "SelectFiles" // 动作名 Intent i=new Intent(actionName) // 以下参数都不是必须的,参数名区分大小写 i.putExtra("Single", true) // 是否只能选择一个文件 i.putExtra("Path", "/mnt/") // 起始目录 i.putExtra("Type", "File") // 允许选择文件(File) 还是目录(Folder) 还是都可以(All) i.putExtra("Pattern", "\\.(wma|mp3|mid|wav)$") // 文件名必须匹配的正则表达式 try{ startActivityForResult(i,0) }catch(Exception ex){ Toast t =Toast.makeText(this, "请安装文件选择器", 1000) t.setGravity(Gravity.CENTER, 0, 0) t.show() } } protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(resultCode==Activity.RESULT_OK){ ArrayList<String> listFile = data.getStringArrayListExtra("Result") //处理选中的文件.... }-file select this is file select
Date : 2026-01-03 Size : 42kb User : gz

DL : 0
Android异步加载,通过异步加载外部网站的多张图片,来介绍和演示Android环境下如何去实现文件异步加载功能,想搞Android软件开发的新手,有必要掌握的一个技巧。   程序中考虑到捕获RejectedExecutionException同时加载的图片过多而导致程序崩溃,附加了异常处理程序。-Android asynchronous load, and how to implement asynchronous loading external websites pictures, to introduce and demo Android environment file asynchronous loading function, want to get the Android software development novice, necessary to master a skill. Program considered to capture RejectedExecutionException simultaneously load the picture too much and cause the program to crash, the exception handler is attached.
Date : 2026-01-03 Size : 2.28mb User : 亓夂

Android相机拍照、相册选取后直接显示以及截图后显示,解决因Bitmap导致的内存溢出问题,源码实现过程部分注释讲解:   将保存在本地的图片取出并缩小后显示在界面上、由于Bitmap内存占用较大,这里需要回收内存,否则会报out of memory异常、将处理过的图片显示在界面上,并保存到本地、使用ContentProvider通过URI获取原始图片、为防止原始图片过大导致内存溢出,这里先缩小原图显示,然后释放原始Bitmap占用的内存、释放原始图片占用的内存,防止out of memory异常发生、指定照片保存路径(SD卡),image.jpg为一个临时文件,每次拍照后这个图片都会被替换-Android camera to take pictures the album directly select screenshots solve the problem of memory overflow due to Bitmap lead after source implementation process part of the annotation to explain: Remove and out will be saved in the local picture is displayed in the interface due to the Bitmap memory footprint than large, need to reclaim memory, otherwise it will be reported out of memory exception, the pictures are displayed in the interface and saved to the local use the ContentProvider through URI to get the original picture, in order to prevent the original image is too large lead to memory overflow here first narrow the artwork display, and then to release the original Bitmap occupied the memory, to release the memory occupied by the original picture, to prevent out of memory exception occurs, the path of the specified save photos (SD Card) image.jpg to a temporary file, every time you take a photo picture will be replaced
Date : 2026-01-03 Size : 1.13mb User : hpudn5

男人撑过二十秒源码android版,使用重力感应器来操控游戏。玩家要躲避丑女人,用到了Android检测碰撞技术,检测两个圆是否相交,如果出了边界就抛异常,看向一个人, 一般用于在刚刚出来的时候,将自己的方向朝向男人,检测与另一个人是否碰撞,学习游戏编写时定义各种控制器、游戏面板、感应器管理器、创建控制器及面板对象并关连、将事件交由controller捕获处理、系统初始化等。 -Men get through twenty seconds source android version, use the gravity sensor to control the game. Players who want to escape the ugly, use the Android collision detection technology to detect whether the intersection of two circles, if out of the border to throw an exception, look to a person, generally used in the just came out, his orientation toward man, detection whether the collision with another person, learning the game of writing define various controllers, game board, sensors Manager, create the controller and the panel object and connected, the event captured by controller processing, system initialization.
Date : 2026-01-03 Size : 78kb User : 李华

android任务管理器的源代码,包括查看、关闭以及卸载进程等功能。-Codes of task manager of android system, including viewing, turn off and uninstall process and other functions. http://www.pudn.com/downloads404/sourcecode/others/detail1724995.html 修改版,这个链接的可以在模拟器中运行,大事在真机上会有空指针异常问题,我添加了处理。-android Task Manager source code, including viewing, turn off and unloading process and other functions.-Codes of task manager of android system, including viewing, turn off and uninstall process and other functions. http://www.pudn.com/downloads404/sourcecode/others/detail1724995.html Modified version, this link can be run in the simulator, events in the real machine will empty pointer exception, I added the deal.
Date : 2026-01-03 Size : 233kb User : yaya

Anroid异常崩溃异常截获处理例子程序。-Anroid exception crash intercepted exception handling example program.
Date : 2026-01-03 Size : 366kb User : linzedong

Anroid异常崩溃异常截获处理例子,并通过邮件将异常信息发送到指定邮箱。-Anroid exception crash exception handling examples intercepted and sent to the specified mailbox exception information via e-mail.
Date : 2026-01-03 Size : 1.28mb User : linzedong

DL : 0
分享一个时间和日期操作的工具类,获取当前日期的字符串,DateUtil类包含了标准的时间和日期格式,以及这些格式在字符串及日期之间转换的方法,获取当前日期的邮戳,日期格式转换成时间戳,得到格式化后的系统当前日期,*@param strScheme 格式模式字符串,*@return 格式化后的系统当前时间,如果有异常产生,返回空串"";   转化日期格式"MM/dd/YY、MM.dd.YY、MM-dd-YY、MM/dd/YY",并输出为正常的格式yyyy-MM-dd   *@param strDate 待转换的日期格式   *@return 格式化后的日期,如果有异常产生,返回空串"",先把传入参数分格符转换成java认识的分格符;   将字符串数组使用指定的分隔符合并成一个字符串。   @param array 字符串数组   @param delim 分隔符,为null的时候使用""作为分隔符(即没有分隔符)-Share tools a time and date operation, get the string of the current date, DateUtil class contains the standard date and time formats, as well as methods of these formats conversion between string and date, access to the current date of the postmark, the date format converted into a timestamp, formatted system to get the current date,* @ param strScheme format pattern string, formatted system* @ return the current time, if there is an exception generated returns an empty string "" Conversion date format "MM/dd/YY, MM.dd.YY, MM-dd-YY, MM/dd/YY", and the output is the normal format yyyy-MM-dd * @ param strDate date format to be converted * @ return the formatted date, if there is an exception generated returns an empty string "", first passed in the parameter sub-grid operators convert java understanding of grid operators The string array using the specified separator meets and into a string. @ param array array of strings @ param delim delimiter is null when using the "" a
Date : 2026-01-03 Size : 3kb User : gpudn24

DL : 0
此类中收集Java编程中WEB开发常用到的一些工具。比如字符串的查找替换操作、将字符串中的特殊字符转换成Web页中可以安全显示的字符串,转换字符串,从UTF-8到GBK的编码转换,从“GBK”到“ISO8859_1”的字符串转换,大文本块处理(将字符集转成ISO),String型变量转换成int型变量,如果str不可以转换成int型数据,返回-1表示异常,否则返回转换后的值,long型变量转换成String型变量,sql语句 处理,如果longVal不可以转换成String型数据,返回空值表示异常,否则返回转换后的值等操作-Some of these were collected in the Java programming tools used to develop WEB. For example, the search string replacement operation in a string of special characters into a Web page String conversion can be safely displayed, encoding conversion from UTF-8 to GBK from " GBK" to " ISO8859_1" the string conversion, large blocks of text processing (convert character sets ISO), String type variable into a variable of type int, if str int data type can not be converted, return-1 indicates an exception, otherwise the value returned after conversion, long type variable into String variable, sql statement processing, if the value can not be converted into longVal String data type, returns a null value represents an exception, otherwise return after conversion and other operations
Date : 2026-01-03 Size : 4kb User : rpudn67

android错误集锦 最近在学习android时候,常常遇到Android程序异常错误,整理稍加封装与大家分享,希望对新手有帮助。-android error Highlights Recently learning android, I often encounter Android application exception error, finishing a little package to share with everyone, I hope to help novice.
Date : 2026-01-03 Size : 21kb User : 李里

DL : 0
自定义异常,抛出时输出文件,上传服务器!-Custom exception of the output file
Date : 2026-01-03 Size : 1.39mb User : ng

DL : 0
此为android项目,实现APP应用异常崩溃后,获得异常信息保存入SD卡的log文件中,方便查看异常信息进行调试。-This is the android projects to achieve APP application crashes after the exception, access exception information is saved into the SD card log files for easy viewing exception information for debugging.
Date : 2026-01-03 Size : 581kb User : 黄保聚

黑马培训机构的一个安卓练习项目。 功能描述: 会话列表 通过异步查询获取会话数据,不会导致ANR(Application Not Response)异常,对于会话可以进行单条和多条的删除,查看会话详情,我们在对ListView进行了优化。 文件夹视图 对信息进行了分类管理:收件箱 发件箱 已发送 草稿箱这四类,并且我们对信息进行了日期分隔显示。 群组 创建了群组数据库,里面有两张表:groups和thread_group,groups是用来存放群组的。 新建信息 号码的输入控件采用的是AutoCompelteTextView.透析filter的过滤机制。 短息搜索机制 应用能在应用的内部任何一个Activity进行搜索,并且支持全局搜索。 -function descriptor: The session list Get session data through asynchronous query does not cause ANR (Application Not Response) exception can be made for a single session and a number of delete, view session details, we have to ListView optimized. Folder View Information classified management: Inbox Outbox Sent Drafts of these four, and the information we display the date separator. Groups Create a group , there are two tables: groups and thread_group, groups are used to store the group. New Information Number of input control is used AutoCompelteTextView. Filtering mechanisms of the dialysis filter. Short interest search mechanism Applications within the application can search any Activity, and supports global search.
Date : 2026-01-03 Size : 2.43mb User : 勾祖超

DL : 2
捕获android crash异常,定位crash信息,是android中一个较好的crash解决案例。-Capture crash Android exception, positioning crash information, Android is a better solution for the case of crash.
Date : 2026-01-03 Size : 3.12mb User : 知行合一方

广东海洋大学图书馆安卓源码可以获取网站(http://210.38.138.1:81/)上的图书信息,直接通过get/post模拟浏览器与网站交互,非json或webview方式,获取到返回html字符串再去取里面的元素,本项目的服务端是asp.net写的实现了图书系统的登录查询等,在做与asp.net网站交互的朋友可以看一下,登录部分因为我没有测试帐号所以就没有测试。不过项目很多地方没有做异常处理,返回空数据的时候应用会直接异常停止退出-Guangdong Ocean University Library an Android source code can obtain the book information in the website (http://210.38.138.1:81/), browser interaction with the web site directly through the get/post simulations and non JSON or WebView, get the returned HTML string again to pick up the inside elements and the project server is asp.net write the book system login query, in do with the ASP. Net web interaction of friends can look at, log in part because I don t have a test account so there is no test. However, many parts of the project did not do exception handling, return to empty data when the application will directly stop the exit
Date : 2026-01-03 Size : 4.06mb User : 徐姗姗

百度云推聊天仿qq源码是基于百度云推送的轻量级IM工具,用户与服务器间的通讯都是通过json封装。UI很精致,功能实现的也比较完整,在做IM的朋友可以研究一下。 activity:是所有程序界面。 adapter:是适配器 app:,一个是Application,一个是异常处理类 baidupush.client:推送消息广播接收者-Baidu cloud push chat imitation QQ source is based on Baidu s cloud push the lightweight IM tool, the user and server communications are through the JSON package. UI is very delicate, functional implementation is also relatively complete, in doing IM friends can study. Activity: is all program interface. Adapter: it s an adapter. App: one is Application, one is exception handling class Baidupush.client: push message broadcast receiver
Date : 2026-01-03 Size : 5.65mb User : 陈晓

DL : 0
java的应用工厂,自己写着玩的,可以看看,编译通过(Java's application factory, which writes about it, can see, compile and pass)
Date : 2026-01-03 Size : 1kb User : 全桥
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.