URL and Link repository

Friday, April 18, 2014

More Enhancements to the W.A.R. app at Google Play

The Widespread Augmented Reality networking app at Google Play allows both photos and notes to be posted at geographical points of interest.

The Camera activity implies an intent with:

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, pictureFile);
startActivityForResult(intent, TAKE_PICTURE);

The EXTRA_OUTPUT is passed as the "data" argument to:

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);

The data is then passed to the activity ImageView field with the following conversions:

case TAKE_PICTURE:
       
        try {
        Uri picFile = data.getData();
        String picPath = picFile.getPath();
        yourSelectedImage=BitmapFactory.decodeFile(picPath,ops);
        getChosenImage().setImageBitmap(yourSelectedImage);

The Note activity is proprietary, for now. Notes are saved as images and BLOBs and therefore not susceptible to nosy bots or web crawlers.

Sign up with an anonymous handle at SpiderOnFire (a reference to enhanced web crawling).

No comments:

Post a Comment