난 내 PhoneGap 응용 프로그램과 함께이 타사 서명 캡처 안드로이드 응용 프로그램을 사용하려고합니다. 내 PhoneGap App에서 "적절한 활동 호출"하는 방법을 모르겠습니다. 내 신청서는 HTML과 자바 스크립트로 작성되었습니다.Signature Capture in PhoneGap 안드로이드 어플 리케이션
도와주세요!
내 Droid X에 응용 프로그램을 설치했으며 내 손가락으로 내 서명을 캡처합니다. 그것의 최고 매끄럽고 빠르다. 여기
http://www.binarysolutions.biz/
은 자신의 웹 사이트의 지침이다. 그들은 매우 자세하지 않습니다.String key = ""; // set the key, any string you find suitable
String fileName = ""; // set the file name (global write permissions)
Intent intent = new Intent("biz.binarysolutions.signature.CAPTURE");
intent.putExtra(key, fileName);
intent.setComponent(
new ComponentName(
"biz.binarysolutions.signature",
"biz.binarysolutions.signature.Capture"
)
);
startActivityForResult(intent, CAPTURE_REQUEST_CODE);
Receiving the result
@Override
protected void onActivityResult
(
int requestCode,
int resultCode,
Intent data
) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == CAPTURE_REQUEST_CODE &&
resultCode == RESULT_OK) {
String fileName = ""; // the same file name as above
Bitmap bitmap = BitmapFactory.decodeFile(fileName);
// do with bitmap whatever you like
}
}
아이디어를 자세히 설명해 주시겠습니까? –
Android 인 텐트가 무엇인지 (developer.android.com 참조) 및 Android 아키텍처에 맞는 방법을 조사해야한다고 생각합니다. 그것은 다른 응용 프로그램 내에서 안드로이드 장치에 응용 프로그램을 호출하는 방법입니다. 이것이 당신이하려는 일입니다. WebIntent는 Android Intent를 생성 할 수있는 Android 애플리케이션에 추가 할 수있는 플러그인입니다. 시그너처 앱으로 발송하려는 인 텐트에 설정해야하는 매개 변수를 파악하기 만하면됩니다. 질문에 이미 모든 지시 사항이 게시되어 있으므로 가까이에 있습니다! –
필 - 필자는 이것을 며칠 동안 연구하고 Pro Web Android 앱 책을 구입했습니다 (Webintent 플러그인을 더 잘 설명하기를 바랍니다). 나는 아직도 그것을 얻지 못하고있다. 나는 좋은 고객과 마감 기한이있다. 어떤 심층적 인 조언도 크게 감사 할 것입니다. –