Can someone please point me in the right direction. I have been googling for ages and I'm not getting great results.
I want my app to allow the user to download a file from the USB/SDcard. Specifically an image, which then later gets used in my app.
I can't seem to find anything, been searching for open file dialogs and nothing..
So:
1) User inserts USB device/SDCard.
2) User gets file browser dialog.
3) User finds image from USB/SDCard
4) App grabs image and stores it for later use.
Thanks :)
I think what you are looking for is how to work with external storage in Android. there is a very good tutorial from android site: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal. hope this helps.
To browse for images on the SDCard this thread is very helpful:
How to pick an image from gallery (SD Card) for my app?
I would suggest using the Android Gallery interface for images as it is much easier for the user than browsing files.
Related
Currently I want to make a list like pictures and images on the server when I click on it, it will download the images to the memory device. If the image is downloaded, it will not download again and the image that is not there will be downloaded. Then I want to ask for a solution from everyone, how should I handle the download to be clean and good for performance. Or do you have an example for me to refer to? Thank you!
There are some ways to find out if your image already exists in your phone storage but the best way to find it out is by image name, compare image names before downloading.
I have been thinking about developing my own custom Viber sticker but I can't get to any good source to give me some information about this.
Does anyone know how to do this? Or is it possible at all? If yes, please let me know what do I need to do so.
Thanks.
When you send/recieve a sticker, it doesnt really send it, just opens the image from the local store from your phone.
What I did on my Android is download a stickers set that I dont like.
Connect the phone to the computer and open the vyber folder, and search for the folder containing the set I downloaded.
Then I uploaded my custom stickers to this folder using the same names to overwrite the files.
Since vyber doesnt send the stickers, when you send the custom sticker people dont see your stikers, they see the original files on their phones. So I repeat the process on the phones of my boyfriend and my sister.
I can only use the stickers with them, but it is better than nothing.
Also you can just have a folder in your gallery and send them as image files is not the same, but it works.
Am developing an offline pdf reader, which will download pdf files from remote and store inside the directory(say Android->data->com.example.test) and it will be shown in my app and i can read both in online and offline.
My issue is, If I open any PDFViewers like Adobe,Radaee viewers I can see my PDF's.
How can i avoid this. I dont want to show them in other apps.
This is not intended behaviour. we can control. Am looking for solution.
Example : Whatsapp's media like albums,profilepictures will be stored in device. We can view it. If you open any external Imageviewers we cant see the Profile Pictures. We can see the Media files. But Profile pics will be hidden. I need the exact solution.
Any help will be much appreciated.
Thanks in advance.
Imran.
Store the PDF on internal storage. You are presently storing the PDF on external storage.
I would like to be able to create an Android app that adds additional photo albums to the default android photo gallery. The content of these albums would be remote, similar to how the Picasa albums are handled. I have looked into the media scanner and it seems to not handle remote content and I have not been able to find any reference for the gallery itself or any other means of providing additional photo albums.
I have done some searching on the android developers site, here and general Googling and have come up short... does anyone have any suggestions about how this can be accomplished?
Thanks in advance.
If you are talking about the android stock gallery, this is what ive found out:
The android albums are not actually albums, but folders.
You justo need to create a folder with the name you want the album to show and there must be at least one picture in it.
Hope it helps!
How to implement SD Card Gallery into our application directly?
I know it is possible in iphone . We can implement and access photos of sdcard directly without any customization in iphone.
I want to implement the same interface of Gallery into android app.
Please let me know...
Thank you.
Here is a link to get you started.
http://developer.android.com/resources/tutorials/views/hello-gallery.html
and this one will give you a rough idea too. Of course, you will have to improvise later to make it function just the way you want it to.
Android How to preview an image, using its file path from SDcard, from my application