Android页面之间进行数据回传 要求:页面1跳转到页面2,页面2再返回页面1同时返回数据 页面1添加如下代码: Intent intent = new Intent(); intent.setClass(页面1.this, 页面2.class); Bundle bundle = new Bund ...
分类:
移动开发 时间:
2017-09-26 19:34:37
阅读次数:
168
Android的Acitivity启动大致有两种方式:显式启动与隐式启动。下面分别介绍: 1.显示启动: 清单文件注册Activity 启动方法: 2.隐式启动 隐式启动不同之处在于我们并不需要像Intent(MainActivity.this, SecondActivity.class)这样传参数 ...
分类:
其他好文 时间:
2017-09-25 11:51:53
阅读次数:
152
使用”react-native run-android”命令运行android应用时,如果常常出现如下错误: Starting the app (/home/xxx/soft/sdk//platform-tools/adb shell am start -n xxx/.MainActivity)… ...
分类:
移动开发 时间:
2017-09-25 01:00:19
阅读次数:
823
Intent intent = new Intent(Intent.ACTION_MAIN, null); intent.setPackage(getPackageName()); intent.addCategory(Intent.CATEGORY_SAMPLE_CODE); PackageMan... ...
分类:
移动开发 时间:
2017-09-24 13:40:32
阅读次数:
476
1 前言 数据库大并发操作要考虑死锁和锁的性能问题。看到网上大多语焉不详(尤其更新锁),所以这里做个简明解释,为下面描述方便,这里用T1代表一个数据库执行请求,T2代表另一个请求,也可以理解为T1为一个线程,T2 为另一个线程。T3,T4以此类推。下面以SQL Server(2005)为例。 1 前 ...
分类:
数据库 时间:
2017-09-23 18:45:41
阅读次数:
174
1.概述 最近越来越不想写代码了,特别是一些重复性的代码,比如由于每次启动一个 Activity,我们都会很习惯的在 Activity 中写下: public static void launch(Activity activity) { Intent intent = new Intent(); ...
分类:
移动开发 时间:
2017-09-23 16:18:51
阅读次数:
171
1 /** 2 * IntentService is a base class for {@link Service}s that handle asynchronous 3 * requests (expressed as {@link Intent}s) on demand. Clients s... ...
分类:
其他好文 时间:
2017-09-22 10:18:29
阅读次数:
177
第二章 构建布局良好的Windows程序 第一节 菜单栏和工具栏(一) MenuStrip的类型: 菜单项 MenuItem 文本框 TextBox 组合框 ComboBox 分割线 Separator 前面都有ToolStrip作前缀 退出整个应用程序,关闭所有窗体 Applaction.Exit ...
分类:
其他好文 时间:
2017-09-21 20:54:17
阅读次数:
150
1.public static final String separator 表示路径分隔符 "\" 2.public File(String pathname) 构造File类实例,要传入路径 3.public boolean createNewFile() 创建新的文件 4.public boo ...
分类:
编程语言 时间:
2017-09-21 18:03:29
阅读次数:
169
package com.coolweather.android;import android.content.Intent;import android.content.SharedPreferences;import android.preference.PreferenceManager;imp ...
分类:
其他好文 时间:
2017-09-20 20:49:42
阅读次数:
138