美文网首页
安卓入门资料

安卓入门资料

作者: Ivy_2016 | 来源:发表于2017-03-31 16:52 被阅读49次

    构建工具

    1.Groovy语法
    http://wiki.jikexueyuan.com/project/deep-android-gradle/three-one.html

    2.gradle 介绍
    http://wiki.jikexueyuan.com/project/deep-android-gradle/four-one.html

    简单的gradle构建文件
    http://avatarqing.github.io/Gradle-Plugin-User-Guide-Chinese-Verision/basic_project/simple_build_files.html

    Product flavors(不同定制的产品)
    http://avatarqing.github.io/Gradle-Plugin-User-Guide-Chinese-Verision/build_variants/product_flavors.html

    QQ截图20170331164923.png 构建不同应用

    Android程序

    1.Android程序入口以及项目文件夹的含义和使用总结—入门
    http://www.cnblogs.com/mingjiatang/p/5978538.html

    应用基础知识:应用组件和启动组件,清单文件
    https://developer.android.com/guide/components/fundamentals.html

    Activity,Service,BroadcaseReceiver(全局的监听器),应用程序采用了一致的方式来启动它们,都是依靠Intent来进行启动的,Intent就封装了想要启动程序的意图,还可用于被启动组件交换信息。
    启动 Activity:
    Activity 表示应用中的一个屏幕。通过将 Intent 传递给 startActivity(),您可以启动新的 Activity 实例。Intent 描述了要启动的 Activity,并携带了任何必要的数据。
    如果您希望在 Activity 完成后收到结果,请调用 startActivityForResult()。在 Activity 的 onActivityResult() 回调中,您的 Activity 将结果作为单独的 Intent 对象接收。如需了解详细信息,请参阅 Activity 指南。
    启动服务:
    Service 是一个不使用用户界面而在后台执行操作的组件。通过将 Intent 传递给 startService(),您可以启动服务执行一次性操作(例如,下载文件)。Intent 描述了要启动的服务,并携带了任何必要的数据。
    如果服务旨在使用客户端-服务器接口,则通过将 Intent 传递给 bindService(),您可以从其他组件绑定到此服务。如需了解详细信息,请参阅服务指南。
    传递广播:
    广播是任何应用均可接收的消息。系统将针对系统事件(例如:系统启动或设备开始充电时)传递各种广播。通过将 Intent 传递给 sendBroadcast()、sendOrderedBroadcast() 或 sendStickyBroadcast(),您可以将广播传递给其他应用。

    2.Activity
    https://developer.android.com/guide/components/activities.html

    activity_lifecycle.png

    任务和返回栈
    https://developer.android.com/guide/components/tasks-and-back-stack.html

    向用户发送通知

    一旦运行起来,服务即可使用 Toast 通知或状态栏通知来通知用户所发生的事件。

    Toast 通知是指出现在当前窗口的表面、片刻随即消失不见的消息,而状态栏通知则在状态栏中随消息一起提供图标,用户可以选择该图标来采取操作(例如启动 Activity)。

    通常,当某些后台工作已经完成(例如文件下载完成)且用户现在可以对其进行操作时,状态栏通知是最佳方法。 当用户从展开视图中选定通知时,通知即可启动 Activity(例如查看已下载的文件)。

    状态栏通知
    https://developer.android.com/guide/topics/ui/notifiers/notifications.html

    访问资源

    https://developer.android.com/guide/topics/resources/accessing-resources.html

    BroadcaseReceiver(广播):

    注册方式区别
    http://www.cnblogs.com/net168/p/3980068.html

    详细介绍,系统广播,开机自启动demo
    http://www.vogella.com/tutorials/AndroidBroadcastReceiver/article.html#life-cycle-of-a-broadcast-receiver

    广播接收次序
    http://www.cnblogs.com/net168/p/3980068.html

    api:
    https://developer.android.com/reference/android/content/BroadcastReceiver.html

    intent:

    https://developer.android.com/guide/components/intents-filters.html
    匹配原则
    http://blog.csdn.net/mynameishuangshuai/article/details/51673273

    service:

    https://developer.android.com/guide/components/services.html

    Android进程保活招式大全

    http://dev.qq.com/topic/57ac4a0ea374c75371c08ce8

    https://developer.android.com/guide/components/processes-and-threads.html?hl=zh-cn
    http://blog.csdn.net/primer_programer/article/details/25987439

    Android Studio打包,jar,arr,apk

    http://www.jianshu.com/p/24c7f990e94d

    相关文章

      网友评论

          本文标题:安卓入门资料

          本文链接:https://www.haomeiwen.com/subject/nzyvottx.html