1

Reference of R.java file in Android is not working

view story
linux-howto

http://stackoverflow.com – I have this issue... My android app has a settings menu to set an IP address and an image. I can validate the IP address with a regex and look up for the image in the root directory of my device, but the idea is that the image set by the user has to replace the default image in the main activity of the app... to do so, I declare an ImageView and initialized with the proper id (the one that contains the default image) from R.java file, and then replace it with the following instructions: Bitmap bmap = BitmapFactory.decodeFile(selectedFile.getAbsolutePath()); Drawable dra = new BitmapDrawable( (HowTos)