Understand hiding process in android - android

There is someting i'm not guessing. How does photo lock apps work. In which directory do they move the photos so that they are no longer available in the gallery?

There are a lot of ways to do that. I think the simplest solution is to make the image not recognizable for the system, in that way the gallery app won't be able to find it. Simple encryption algorithm should do it.

Related

how to make folders in my android app

i have spent a lot of time now on searching on how to make folders in my app, what i usually found was how to make folders for my activities or for layout files but what i couldn't make google understand was i need folders just like we open the gallery in our phones and it has many folders like screenshots, whatsapp images, facebook images, camera images etc.. My query is somewhat similar.. I know in technical language it is called something else but i now wonder whether it is possible in android. If it is please enlighten me about it.
Any help is appreciated.
The gallery consists presumably of a GridView, GridLayout or TableLayout. There are no "folders" in Android.

Detecting photo action in android

Hey I'm stuck with this problem for quite a while
I need to have a backround activity in android which will be running to detect any photo/video activity, the minute a photo or video is taken it should make an entry into a text file:
The entry should look like this : [uri_of_new_photo, time, gps-location]
What are the possible ways in which i can achieve this, I was looking at the BroadcastReciever, but was not sure if that would work.
Are there any tutorials/links which can give me a solution. A direct solution to this problem would be great!! (rather than alternatives, as this is a small part of a bigger project)
What are the possible ways in which i can achieve this
Technically, it's not possible. Anyone is welcome to write a camera application that takes photos or videos and does not tell you about them.
I was looking at the BroadcastReciever, but was not sure if that would work.
I am not sure what "the BroadcastReceiver" is that you are referring to.
You are welcome to use FileObserver to try to monitor likely places for photos and recorded videos. However, there is no guarantee that apps will write their photos or recorded videos in the places that you are looking. And, just because there is a new file in one of those directories does not mean that the user took a photo or recorded a video -- they could have simply copied a file into that directory, or obtained the file from the Internet (e.g., Flickr sync). And, this will only work while your app is running.
You are welcome to use a ContentObserver on MediaStore. It will suffer from the same basic problems as would the FileObserver approach that I mentioned.
If you want to reliably log information about the time and location of photos and videos, write your own camera app.

Pdf in android without other applications

I want to show pdf file in android, but this must work without Internet connection and other appliacation. Can I show pdf file in webView or other view?
Yes you can show your PDF to your custom view. For, this you've to use one External Jar file for that. I've already answered like similar to your question. Just check it out.
Hope this helps you.
Using another app to display your PDFs is a really nice way to do it. Unless you have superiors forcing you to avoid other apps, I'd do it that way. There are good, free pdf viewing apps available so it won't cost your users anything.
The transition when opening a pdf in another app is pretty seamless and it's not always obvious that another app is being used.
The alternative, as SpK said, is to use a jar and write the extra pdf viewing functionality that you need. This is a much harder way to do it.

saving the images with in application - android

i am developing an application where i need to capture the pictures from camera and save them with in application like in this location "/data/data/com...../images" - what i want to know is this the right approach . if not please suggest but my images should not be available to other app's.
Thanks and Regards,
puneeth
I think every approach have their drawbacks. If the picture should always be there (unless delete through app), I feel it may not be best approach. Otherwise it is Ok to use this approach (which is what I am doing too). Only caution I took was, if picture was deleted by someone, always have a default picture to display there (which saves application crash and other alignment issues).
You’re talking about the Context.getFilesDir() directory. Note that, on older phones with separate SD card storage, this area is likely to be quite limited in size, so be careful about saving lots of images here. You may want to use getExternalCacheDir() or getExternalFilesDir() instead.

android app memory question

Can an android app read the memory (the RAM meory) of another app that is running?
Appreciate any pointers.
Do you mean the part of the memory that another app is using for code? Then No.
I assume that someone might find a way, but that would be a security issue, a bug in the system and something that would be adressed in an update. You should stay out of 'other' pieces of RAM.
Or do you mean something like internal memory where you can store a file? An app can save a file in several ways, including some that let other apps read them (example: if you take a picture with a cam-app, you can read it with any gallery app).

Categories

Resources