1、获得当前应用包名 public static String getRunningActivityName(Context context) { ActivityManager activityManager=(ActivityManager) context.getSystemService(C ...
分类:
移动开发 时间:
2017-05-29 11:54:06
阅读次数:
422
转载请注明:大飞 http://blog.csdn.net/rflyee/article/details/47441405 Activity之间使用Parcel传递大量数据产生的问题。 Activity之间通过intent传递大量数据,导致新Activity无法启动。 Activity之间数据传递方 ...
分类:
其他好文 时间:
2017-05-29 11:06:00
阅读次数:
283
本文转载自:http://blog.csdn.net/fireroll/article/details/8607903 写makefile时出现这个错误提示 是表示makefile中的命令前没有使用TAB。 造成的原因可能有: 1. 命令前没有使用TAB, 2. 在VIM的配置文件"/etc/vim ...
分类:
其他好文 时间:
2017-05-28 23:11:05
阅读次数:
203
一:广播的发送 简单几行代码,只需要注意发送需要上下文 public void sendBC(View v){ System.out.println("send bc : "); Intent intent = new Intent(); intent.setAction("com.luo.bc") ...
分类:
其他好文 时间:
2017-05-28 19:35:40
阅读次数:
151
在自己的项目中。我须要使用Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK来開始新的activity同一时候移除之前全部的activity。我使用这个intent flag的代码例如以下: Intent intent = ...
分类:
其他好文 时间:
2017-05-25 23:27:20
阅读次数:
2161
字符串分割split() 知识讲解: split() 方法将字符串分割为字符串数组,并返回此数组。 语法: stringObject.split(separator,limit) 参数说明: 注意:如果把空字符串 ("") 用作 separator,那么 stringObject 中的每个字符之间都 ...
分类:
其他好文 时间:
2017-05-24 19:15:35
阅读次数:
138
Activity跳转与传值。主要是通过Intent类。Intent的作用是激活组件和附带数据。 一、Activity跳转 方法一 Intent intent = new Intent(A.this, B.class); startActivity(intent) 方法二 Intent intent ...
分类:
移动开发 时间:
2017-05-24 18:30:22
阅读次数:
208
LUIS 实验手册 1. 新建LUIS服务 打开链接https://www.luis.ai/ 并注册一个新账号,然后点击“New App”创建新应用: 在“Add a new application”对话框中,输入应用程序名称、用途等基本信息,然后在“Choose Application Cultu ...
分类:
其他好文 时间:
2017-05-24 16:00:37
阅读次数:
2460
<activity android:name=".类名" android:label="@string/app_name"> <!--如果是主程序入口,则写上,否则删除--> <intent-filter> <!--程序主入口--> <action android:name="android.int ...
分类:
其他好文 时间:
2017-05-24 12:39:14
阅读次数:
113
public boolean isUriReturnedForThirdApp() { String action = getIntent().getAction(); if (action != null) { return action.equals(Intent.ACTION_GET_CONT... ...
分类:
其他好文 时间:
2017-05-24 00:42:09
阅读次数:
175