How to access android resource in java native extension....??
hi..
i want access android resource..
for example, res/menu/menu.xml, res/values/strings.xml ... etc...
- R.java -
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.flash.extension.nativelib;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int icon=0x7f020000;
public static final int notification_icon=0x7f020001;
}
public static final class layout {
public static final int main=0x7f030000;
}
public static final class string {
public static final int extension_app_name=0x7f040001; -> "hi extension"
public static final int extension_hello=0x7f040000;
}
}
so i used getResourceId("string.extension_app_name");
but it's not work.. throw NotFoundException error..
so i used context.getString(R.string.extension_app_name);
it's work, but return incorrect value.. -> return value is "0.0.0".. it's versionName in actionScript Client Project..
why can't access android resource in native extension?
how to get android resource in java natvie extension..??
Is there anyone who has a sample source??
help.. me.. please..
