예제 #1
0
func assetInit() {
	err := mobileinit.RunOnJVM(func(vm, env, ctx uintptr) error {
		C.asset_manager_init(C.uintptr_t(vm), C.uintptr_t(env), C.jobject(ctx))
		return nil
	})
	if err != nil {
		log.Fatalf("asset: %v", err)
	}
}
예제 #2
0
func assetInit() {
	ctx := mobileinit.Context{}
	C.asset_manager_init(ctx.JavaVM(), ctx.AndroidContext())
}