Posted by 산사랑
Posted by 산사랑
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/263
| name="이름" |
|
| class="클래스명" |
|
| method="함수명" |
|
| var="반환되는 객체명" |
|
| g="x,y,width,height" |
|
| <arg>인수</arg> |
|
| <field name="state">변수값</field> |
|
| <transition to="다음 단계 이름"/> |
|
//--- processInfo는 Process를 처음 실행할 때 전달된 HashMap
<java name="step_2_1"
class="com.groupware.ApproveWorkflowManager"
method="documentMove"
var="answer"
g="200,300,200,50" >
<arg><string value="Drafter document move"/></arg>
<arg><object expr="#{processInfo}"/></arg>
<arg><object expr="#{processInfo.currentUserSeq}"/></arg>
<arg><object expr="#{processInfo.currentBox}"/></arg>
<arg><object expr="#{processInfo.currentUserSeq}"/></arg>
<arg><string value="Approve/Processing"/></arg>
<transition to="step_2_2"/>
</java>
import com.groupware;
public class ApproveWorkflowManager {
public String documentMove(String stepInfo,
HashMap<String, Object> processInfo,
String beforeUser, String beforeBox,
String afterUser, String afterBox) {
processInfo.put("result", "ok");
return "result";
}
}Posted by 산사랑
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/262
Posted by 산사랑
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/260
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
StringBuffer buf = null;
Cursor contacts = null;
long contactID = 0l;
buf = new StringBuffer();
// String sortOrder = Contacts.DISPLAY_NAME + " COLLATE LOCALIZED ASC";
// Cursor contactCursor = managedQuery(uri, projection, selection, selectionArgs, sortOrder);
contacts = getContentResolver().query(Contacts.CONTENT_URI,
new String[] {
Contacts._ID, Contacts.CONTACT_PRESENCE,
Contacts.CONTACT_STATUS,
Contacts.CONTACT_STATUS_ICON, Contacts.CONTACT_STATUS_LABEL,
Contacts.CONTACT_STATUS_RES_PACKAGE,
Contacts.CONTACT_STATUS_TIMESTAMP, Contacts.CUSTOM_RINGTONE,
Contacts.DISPLAY_NAME,
Contacts.HAS_PHONE_NUMBER, Contacts.IN_VISIBLE_GROUP,
Contacts.LAST_TIME_CONTACTED,
Contacts.LOOKUP_KEY, Contacts.PHOTO_ID,
Contacts.SEND_TO_VOICEMAIL,
Contacts.STARRED, Contacts.TIMES_CONTACTED
},
null, null, null);
contacts.moveToFirst();
if (!contacts.isAfterLast()) {
do {
contactID = contacts.getLong(0);
buf.append("--- Contacts Lists ---\n");
for (int idx = 0;idx < contacts.getColumnCount();idx++) {
if (contacts.getString(idx) != null) {
buf.append(contacts.getColumnName(idx).toUpperCase() + ": "
+ contacts.getString(idx) + "\n");
}
}
buf.append("\n");
} while (contacts.moveToNext());
}
contacts.close();
return buf.toString();
StringBuffer buf = null;
Cursor rawContacts = null;
long rawContactID = 0l;
buf = new StringBuffer();
rawContacts = getContentResolver().query(RawContacts.CONTENT_URI,
new String[] {
RawContacts._ID, RawContacts.ACCOUNT_NAME,
RawContacts.ACCOUNT_TYPE,
RawContacts.AGGREGATION_MODE, RawContacts.CONTACT_ID,
RawContacts.CUSTOM_RINGTONE,
RawContacts.DELETED, RawContacts.DIRTY,
RawContacts.LAST_TIME_CONTACTED,
RawContacts.SEND_TO_VOICEMAIL, RawContacts.SOURCE_ID,
RawContacts.STARRED,
RawContacts.SYNC1, RawContacts.SYNC2, RawContacts.SYNC3,
RawContacts.SYNC4, RawContacts.TIMES_CONTACTED,
RawContacts.VERSION
},
RawContacts.CONTACT_ID + "=?",
new String[] {String.valueOf(contactID)}, null);
rawContacts.moveToFirst();
if (!rawContacts.isAfterLast()) {
do {
rawContactID = rawContacts.getLong(0);
buf.append("--- RawContacts Lists ---\n");
for (int pos = 0;pos < rawContacts.getColumnCount();pos++) {
if (rawContacts.getString(pos) != null) {
buf.append(rawContacts.getColumnName(pos).toUpperCase()
+ ": " + rawContacts.getString(pos) + "\n");
}
}
buf.append("\n");
} while (rawContacts.moveToNext());
}
rawContacts.close();
return buf.toString();
StringBuffer buf = null;
Cursor contactData = null;
buf = new StringBuffer();
contactData = getContentResolver().query(Data.CONTENT_URI,
new String[] {
Data._ID, Data.MIMETYPE, Data.RAW_CONTACT_ID,
Data.IS_PRIMARY, Data.IS_SUPER_PRIMARY, Data.DATA_VERSION,
Data.DATA1, Data.DATA2, Data.DATA3, Data.DATA4, Data.DATA5
},
Data.RAW_CONTACT_ID + "=?",
new String[] {String.valueOf(rawContactID)}, null);
buf.append("--- Data Lists ---\n");
contactData.moveToFirst();
if (!contactData.isAfterLast()) {
do {
for (int idx = 0;idx < contactData.getColumnCount();idx++) {
if (contactData.getString(idx) != null) {
buf.append(contactData.getColumnName(idx).toUpperCase()
+ ": " + contactData.getString(idx) + "\n");
}
}
buf.append("\n");
} while (contactData.moveToNext());
}
contactData.close();
return buf.toString();
import ContactsContract.CommonDataKinds.Phone;
Cursor PhoneNumberCursor =
getContentResolver().query(Phone.CONTENT_URI, null, null, null, null);
ContentValues values = new ContentValues();
values.put(RawContacts.ACCOUNT_TYPE, "basic");
values.put(RawContacts.ACCOUNT_NAME, "test");
Uri rawContactUri =
getContentResolver().insert(RawContacts.CONTENT_URI, values);
long rawContactId = ContentUris.parseId(rawContactUri);
int resolver.update(Uri uri, ContentValues values, String where, String selectionArgs[])
int resolver.delete(Uri url, String where, String selectionArgs[])
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
TelephonyManager mTelephonyMgr =
(TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String myNumber = mTelephonyMgr.getLine1Number();
Posted by 산사랑
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/259
Posted by 산사랑
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/258
| Selector | Selector 설명 |
| * |
모든 Element |
| E |
예) element: <element>~</element> |
| .class |
예) .className: <element class="className">~</element> |
| #id |
예) #elementID: <element id="elementID">~</element> |
| [~] Attribute로 선택 |
|
| E ~ F Element의 관계로 선택 |
|
| E:~ 위치로 선택 |
|
| E:~ 링크 관계로 선택 |
|
| E::~ 확장 선택 |
|
| 기타 |
|
| Selector | Selector 설명 |
| input type에 따라 선택 |
|
| 활성, 선택 여부로 선택 |
|
| :animated |
|
| :contains(val) |
|
| :header |
|
| :not(filter) |
|
| :parent |
|
| Selector | Selector 설명 |
| E/F |
|
| E//F |
|
| E[@F] |
|
| E/* |
|
| E/.. |
|
| E[@attr=val] |
|
Posted by 산사랑
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/257
StringBuffer buf = null;
WindowManager wm = null;
Display display = null;
DisplayMetrics metrics = null;
wm = getWindowManager();
display = wm.getDefaultDisplay();
metrics = new DisplayMetrics();
display.getMetrics(metrics);
buf = new StringBuffer();
buf.append("Window display id: " + display.getDisplayId() + "\n");
buf.append("Window orientation: " + display.getOrientation() + "\n");
buf.append("Window width: " + display.getWidth() + "\n");
buf.append("Window height: " + display.getHeight() + "\n");
buf.append("Window pixel format: " + display.getPixelFormat() + "\n");
buf.append("Window refresh rate: " + display.getRefreshRate() + "\n");
buf.append("Window width pixels: " + metrics.widthPixels + "\n");
buf.append("Window height pixels: " + metrics.heightPixels + "\n");
testMsg.setText(buf.toString());
Posted by 산사랑
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/256
SELECT table_name, table_rows, avg_row_length, table_collation FROM information_schema.`TABLES` T where table_schema = '테이블명';
SELECT column_name, column_default, is_nullable, data_type, character_maximum_length,
numeric_precision, numeric_scale, collation_name
FROM information_schema.`COLUMNS` C
where table_schema = '스키마명'
and table_name = '테이블명'
order by ordinal_position;
Posted by 산사랑
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/255
Posted by 산사랑
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/254
Trackback URL : http://www.jopenbusiness.com/tc/oss/trackback/253
개인적인 글쓰기와 오픈소스 비즈니스 컨설팅 관련 글을 정리합니다. consult (골뱅이) jopenbusiness.com
- 산사랑