![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android 编程
文章平均质量分 51
desaco
技术,产品,运营。安卓应用研发8年+。服务过多家上市公司。
展开
-
android - open failed: EROFS (Read-only file system)
》 将只读文件夹下的文件复制出来,然后自己来处理,即将原路径下文件读到相应文件夹下public static boolean copyFile(String oldPath, String newPath) {boolean bResult = false;try {int bytesum = 0;int byteread = 0;File oldfile = new Fi原创 2015-12-09 17:55:17 · 7235 阅读 · 1 评论 -
android - Dialogs(2)
> Note: The system calls onDismiss() upon each event that invokes the onCancel() callback. However, if you call Dialog.dismiss() or DialogFragment.dismiss(), the system calls onDismiss() but n翻译 2015-12-09 21:20:55 · 488 阅读 · 0 评论 -
android - Building Web Apps in WebView
》 When developing a web application that's designed specifically for the WebView in your Android application, you can create interfaces between your JavaScript code and client-side Android code. For e翻译 2015-12-09 22:57:04 · 649 阅读 · 0 评论 -
Web APP - Java和js交互(web app与native app)
》WebView控件:WebViewClient或者WebChromeClient。拦截URL请求,可以去请求网页,也可以进行其他处理(拼接参数 ,然后将参数拿出来)> WebView: A View that displays web pages. This class is the basis upon which you can roll your own web b原创 2015-12-11 09:34:30 · 746 阅读 · 0 评论 -
android-Intents and Intent Filters and Common Intents
You can deliver a broadcast to other apps by passing an Intent to sendBroadcast(), sendOrderedBroadcast(), or sendStickyBroadcast().Without a component name, the intent is implicit and the syste翻译 2015-11-24 11:14:08 · 544 阅读 · 0 评论 -
Android-Creating a Bound Service
When creating a service that provides binding, you must provide an IBinder that provides the programming interface that clients can use to interact with the service. There are three ways you can def转载 2015-11-24 10:16:55 · 548 阅读 · 0 评论 -
android compatibility and System Permissions
安卓的兼容性有:设备兼容性和App兼容性If necessary, however, you can restrict your app's availability to devices through Google Play Store based on the following device characteristics:Device featuresPlatform原创 2015-11-24 22:52:22 · 793 阅读 · 0 评论 -
android - Hybrid App
Hybrid App按网页语言与程序语言的混合,通常分为三种类型:多View混合型,单View混合型,Web主体型。PhoneGap框架《未完》原创 2015-12-11 16:31:43 · 479 阅读 · 0 评论 -
android夯实与晋级
1)Android App的生命周期是什么;>前台 后台 关闭 激活 未激活的状态等2)四大组件很熟悉了吧,ContentProvider的生命周期是什么;>ContentProvider通过工具ContentResolver激活,使用者自行管理cursor的生命周期.3)Android设备开机的启动过程; http://blog.jobbole.com/67931/》原创 2015-12-11 17:11:44 · 389 阅读 · 0 评论 -
android - Notifications
A notification is a message you can display to the user outside of your application's normal UI.> You specify the UI information and actions for a notification in a NotificationCompat.Builder object翻译 2015-12-12 15:03:41 · 399 阅读 · 0 评论 -
android - Searchable Configuration
In order to implement search with assistance from the Android system (to deliver search queries to an activity and provide search suggestions), your application must provide a search configuration i翻译 2015-12-12 21:55:27 · 413 阅读 · 0 评论 -
android-Creating a Search Interface
Android helps you implement the user interface with eithera search dialog that appears at the top of the activity window or a search widget that you can insert in your layout. Other featur翻译 2015-12-12 17:14:09 · 352 阅读 · 0 评论 -
android - Adding Custom Suggestions
The default behavior is for system to pass this URI and append it with the query text. For example:content://your.authority/optional.suggest.path/SUGGEST_URI_PATH_QUERY/puppiesInstead of using the翻译 2015-12-12 20:51:55 · 400 阅读 · 0 评论 -
android - Drag and Drop
> With the Android drag/drop framework, you can allow your users to move data from one View to another View in the current layout using a graphical drag and drop gesture. The framework includes a dr翻译 2015-12-12 23:00:49 · 512 阅读 · 0 评论 -
android-Supporting Different Devices
Some of the important variations that you should consider include different languages, screen sizes, and versions of the Android platform.> Supporting Different LanguagesLearn how to support m翻译 2015-12-27 21:16:59 · 396 阅读 · 0 评论 -
android-UI design(first app)
The graphical user interface for an Android app is built using a hierarchy of View and ViewGroup objects. View objects are usually UI widgets such as buttons or text fields. ViewGroupobjects are翻译 2015-12-27 20:11:07 · 648 阅读 · 0 评论 -
android-Managing the Activity Lifecycle
Within the lifecycle callback methods, you can declare how your activity behaves when the user leaves and re-enters the activity. There is a sequence of callback methods that start up an activity an翻译 2015-12-28 09:34:20 · 471 阅读 · 0 评论 -
android - Toasts
A toast provides simple feedback about an operation in a small popup.LayoutInflater inflater = getLayoutInflater();View layout = inflater.inflate(R.layout.custom_toast,翻译 2015-12-12 16:52:18 · 381 阅读 · 0 评论 -
android-Search Overview
> Search is a core user feature on Android. Users should be able to search any data that is available to them, whether the content is located on the device or the Internet. To help create a consiste翻译 2015-12-12 16:59:39 · 401 阅读 · 0 评论 -
android - Adding Recent Query Suggestions
Once the recent query suggestions are displayed, the following might happen:If the user types another key, or changes the query in any way, the aforementioned steps are repeated and the suggestion翻译 2015-12-12 19:30:38 · 384 阅读 · 0 评论 -
android-Accessible
Android provides accessibility features and services for helping these users navigate their devices more easily, including text-to-speech, haptic feedback, gesture navigation, trackball and directio翻译 2015-12-13 00:23:51 · 568 阅读 · 0 评论 -
android-Supporting Different Screens in Web Apps
Because Android is available on devices with a variety of screen sizes and pixel densities, you should account for these factors in your web design so your web pages always appear at the appropriate翻译 2015-12-13 15:59:25 · 725 阅读 · 0 评论 -
Activity Lifecycle-Stopping and Restarting an Activity
There are a few of key scenarios in which your activity is stopped and restarted:The user opens the Recent Apps window and switches from your app to another app. The activity in your app that's cu翻译 2015-12-28 13:54:12 · 489 阅读 · 0 评论 -
android-判断当前Fragment是否可见(Visible)
判断当前Fragment是否可见public abstract class BaseFragment extends Fragment { /** Fragment当前状态是否可见 */ protected boolean isVisible; @Override public void setUserVisibleHin原创 2015-12-28 14:48:12 · 11123 阅读 · 0 评论 -
android-Google Support Library及Android源码 兼容包下载
》Android一些SDK比较分裂,为此google官方提供了Android Support Library package 系列的包来保证高版本sdk开发的向下兼容性, 所以你可能经常看到v4,v7,v13等这些数字。support-v4用在API lever 4(即Android 1.6)或者更高版本之上。它包含了相对更多的内容,而且用的更为广泛,例如:Fragment转载 2015-12-28 15:03:58 · 2470 阅读 · 0 评论 -
android进阶-题目总结(进行中)
16)自定义动画玩过吗,里面的Matrix怎么控制。res里面的XML资源最终都要转化成JavaCode,怎么完全脱离 res,用纯代码的方式实现res资源的功能,怎么缩放一张点九图;> Matrix类:Translate—平移变换;Scale—缩放变换;Rotate—旋转变换;Skew————错切变换Matrix提供了一些方法来控制图片变换:setTranslate(float原创 2015-12-28 17:56:00 · 868 阅读 · 0 评论 -
android-Making Applications Accessible
Applications built for Android are more accessible to users with visual, physical or age-related limitations when those users activate accessibility services and features on a device. These services翻译 2015-12-13 00:47:26 · 347 阅读 · 0 评论 -
android-Debugging Web Apps
If you are testing your web app with a device running Android 4.4 or higher, you can remotely debug your web pages in WebView with Chrome Developer Tools, while continuing to support older versions翻译 2015-12-13 13:55:09 · 606 阅读 · 0 评论 -
android-Best Practices for Web Apps
Developing web pages and web applications for mobile devices presents a different set of challenges compared to developing a web page for the typical desktop web browser. To help you get started, th翻译 2015-12-13 15:44:21 · 392 阅读 · 0 评论 -
android-Styles and Themes
A style is a collection of properties that specify the look and format for a View or window. A style can specify properties such as height, padding, font color, font size, background color, and mu翻译 2015-12-13 16:16:13 · 442 阅读 · 0 评论 -
Android - Custom Components
Android offers a sophisticated and powerful componentized model for building your UI, based on the fundamental layout classes: View and ViewGroup. To start with, the platform includes a variety of p翻译 2015-12-13 17:02:44 · 340 阅读 · 0 评论 -
Android-Best Practices
BLOG ARTICLESImproving App QualityOne way of improving your app’s visibility in the ecosystem is by deploying well-targeted mobile advertising campaigns and cross-app promotions. However, there’翻译 2015-12-13 17:40:47 · 405 阅读 · 0 评论 -
Android-loader
Loaders have these characteristics:They are available to every Activity and Fragment.They provide asynchronous loading of data.They monitor the source of their data and deliver new results when th原创 2015-11-26 22:07:22 · 623 阅读 · 0 评论 -
android-Recreating an Activity
when the user presses the Back button or your activity signals its own destruction by calling finish(). The system may also destroy your activity if it's currently stopped and hasn't been used in翻译 2015-12-28 19:46:03 · 493 阅读 · 0 评论 -
android-Building a Dynamic UI with Fragments
You can create these modules with the Fragment class, which behaves somewhat like a nested activity that can define its own layout and manage its own lifecycle.This class shows you how to create a翻译 2015-12-28 20:38:30 · 476 阅读 · 0 评论 -
Android-Tasks and Back Stack
界面焦点和用户焦点When the current activity starts another, the new activity is pushed on the top of the stack and takes focus. Activity栈:"last in, first out"When all activities are removed from the st原创 2015-11-26 22:26:49 · 460 阅读 · 0 评论 -
Android-Overview Screen
学会使用Flag对Activity设置,然后可以更好的管理Activity 栈。With the Android 5.0 release (API level 21), multiple instances of the same activity containing different documents may appear as tasks in the overview scre原创 2015-11-26 23:32:41 · 498 阅读 · 0 评论 -
android-性能优化之集合类优化
优化包括:I/O的优化、网络操作的优化、内存的优化、数据结构的优化、代码层次的优化、UI渲染优化、CPU资源使用率的优化、异常处理的优化等》ArrayList和VectorArrayList和Vector都是内部以数组实现的List,它们两唯一的区别就是对多线程的支持,ArrayList是线程不安全的,而Vector内部对大多数方法都做了同步,是线程安全的,既然是线程安全的转载 2015-12-14 09:24:36 · 1762 阅读 · 0 评论 -
android-Computation(RenderScript)
RenderScript与二进制文件 系统升级或APP升级 可扩展性 (CPU GPU DSP等)》RenderScript provides a platform-independent computation engine that operates at the native level. Use it to accelerate your apps that require ext翻译 2015-12-14 12:16:07 · 420 阅读 · 0 评论 -
Android-App Widgets
Widgets:App Widget provider and An application component.AppWidgetHost and Widget Design. eg: android:resource="@xml/example_appwidget_info" />原创 2015-11-27 08:57:59 · 506 阅读 · 0 评论