This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void dispatchActivityResult(String who, int requestCode, int resultCode, | |
Intent data) { | |
if (who != null) { | |
Activity act = mLocalActivityManager.getActivity(who); | |
// if (true) Log.v( | |
// TAG, "Dispatching result: who=" + who + ", reqCode=" + requestCode | |
// + ", resCode=" + resultCode + ", data=" + data | |
// + ", rec=" + act); | |
if (act != null) { | |
// act.onActivityResult(requestCode, resultCode, data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LDPI should be 36 x 36. | |
MDPI should be 48 x 48. | |
TVDPI should be 64 x 64. | |
HDPI should be 72 x 72. | |
XHDPI should be 96 x 96. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static jstring getpkg(JNIEnv* env, jobject thiz, jobject activity) { | |
jclass android_content_Context =env->GetObjectClass(activity); | |
jmethodID midGetPackageName = env->GetMethodID(android_content_Context,"getPackageName", "()Ljava/lang/String;"); | |
jstring packageName= (jstring)env->CallObjectMethod(activity, midGetPackageName); | |
return packageName; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextView | |
android:id="@+id/textView" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:scrollbars="vertical" | |
android:singleLine="false" | |
/> | |
TextView textView = (TextView)findViewById(R.id.textView); |
NewerOlder