わからなかった・・・ ので、5.1.1とのdiffを眺めてみた
findViewTraversal
に@IdRes
アノテーションがついた
package com.example.bufferedreader_test; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import android.app.Activity; |
function sendReport(e) { | |
var rs = ""; | |
var name = e.namedValues["お名前入れてね!"]; | |
var date = e.namedValues["参加可能な日"]; | |
var other = e.namedValues["なんでも書いてね!"]; | |
rs += "■名前\n" | |
rs += name + "\n\n"; | |
rs += "■参加可能な日\n" |
class User < ActiveRecord::Base | |
end |
public static void dumpLastRecord(Cursor cursor) { | |
Log.d("dumpLastRecord", "============="); | |
if (cursor != null) { | |
cursor.moveToPosition(-1); | |
if (cursor.moveToLast()) { | |
String[] columnNames = cursor.getColumnNames(); | |
int length = columnNames.length; | |
for (int i = 0; i < length; i++) { | |
String value; | |
try { |
// context=Context helper=SQLiteOpenHelper | |
context.deleteDatabase(helper.getDatabaseName()); |
// String packageName = アンインストールするアプリのPackage名 | |
Uri uri = Uri.fromParts("package", packageName, null); | |
Intent intent = new Intent(Intent.ACTION_DELETE, uri); | |
context.startActivity(intent); |
fd = open("/dev/alarm", O_RDWR); | |
ts.tv_sec = tv.tv_sec; | |
ts.tv_nsec = tv.tv_usec * 1000; | |
res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts); | |
//res = settimeofday(&tv, NULL); | |
if(res < 0) { | |
fprintf(stderr,"settimeofday failed %s\n", strerror(errno)); | |
return 1; | |
} |
lint <アプリケーションのDirectory> |
package com.os.operando.sharedpreferences.sample; | |
// this -> Context | |
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); |