Srikanth Houji's Blog
Android & Java - Examples & Interview Questions
Monday, December 30, 2013
Mount rooted Android device system folder with read and write permission (rw)
mount -o remount,rw -t yaffs2 /system
or
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
We have to make sure we are having su permission before executing this command.
$adb shell
$su
$mount -o remount,rw -t yaffs2 /system
$<do what ever you want with super user permission>
Resoruce String to Resource int value
We can covert String name to Resource intvalue using the below method.
int
resId = getResources().getIdentifier(“
<package_name>:<resource_folder>/resource_name
”,
null
,
null
);
exp
:
int
imageResId = getResources().getIdentifier(“
com.example1:drawable/myimage
”,
null
,
null
);
<view>.setBackgroundResource(imageResId);
Newer Posts
Older Posts
Home
Subscribe to:
Comments (Atom)