image and file reference android

i'm making a hand-outs reader, i have an xml file contains the file link and the file thumbnail, i managed to parse the data inside the xml and save it in the sdcard. having a /mnt/sdcard/App/File directory for the downloaded files(.pdf, .ppt files) and /mnt/sdcard/App/Thumbnail for the downloaded thumbnails(.png, .jpeg/.jpg files)

i want to reference the image to the downloaded file (like when i click the image the file will show or open the referenced file) is it possible? if yes how can i do that?

-------------Problems Reply------------

This tutorial should get you started on how to read/write from the SD card (if you don't already know how to do so), and this tutorial should show you how to retrieve and display images stored on the SD card.

Category:android Views:0 Time:2012-01-03

Related post

  • Undefined reference error while compiling C files with android ndk 2012-04-16

    I have a bunch of C files with extensions .c and .h. I want to compile these files with Android NDK. When I tried with only one file, NDK worked perfectly, but when I tried including other files inside this main C files with includes, I get an error.

  • How to delete internal storage file in android? 2010-08-24

    I have used the Android internal storage to save a file for my application (using openFileOutput) but I would like to delete that file, is it possible and how? --------------Solutions------------- File dir = getFilesDir(); File file = new File(dir, "

  • Having Trouble Referencing Files in Android 2010-10-16

    I'm working in a group right now, writing an app that needs to be able to reference a file which is not written at runtime. Essentially, the file stores data which the app (a game) uses at certain points. I don't have any trouble saving files at runt

  • How to get `File` reference to external disk? 2010-11-17

    I would like to get in my file browser File reference to external disk not SD Card. I mean I know that there is method Environment.getExternalStorageDirectory(); But to my knowledge this will get reference to SD Card. But how to get external disk (sa

  • How to open local .html file in Android and Blackberry emulators, for testing? 2010-12-28

    How to open local .html file in Android and Blackberry emulators? I'm able to open any url from internet, but I'm developing a site for mobile on my local PC and I want to run my locally developed HTML files in emulators. --------------Solutions-----

  • What is mainfest file in android? 2011-02-11

    Can anybody explain me in simple words what is the use of Mainfest file and file in android. Why do we need these files while making an application? --------------Solutions------------- check this link,

  • how to record .wav format file in android 2011-03-09

    I would like to record .wav files using android. is there any way to do this? --------------Solutions------------- After a quick google I found out that there is a direct support for wave recording. Most common wave format is PCM. The

  • Open an activity without declaring it in the manifest file in ANDROID? 2011-04-04

    I want to open an activity without declaring it in an manifest file. I don't know if it is possible or not. What I actually want is to dynamically open an activity from my program using intents. Can anyone help me if it is possible. --------------Sol

  • How to save data to a text file on Android? 2011-04-16

    I need to save user-entered data like name and age to a text file on Android, in order that I can then save it to MySQL. How can I do this? Any help please thank you. --------------Solutions------------- Filesystems of Android phone/emulator and of y

  • accessing sqlite file in android 2011-06-02

    I have a sqlite file. I want to use it in my application. Can anyone share proper example as how I can do that. I was not sure if .sqlite file can be used so I have also made .db file. --------------Solutions------------- I think you need this.. http

  • How to zip the files in android 2011-06-29

    I have a requirement to zip the text files programatically. I have created text files at files directory(context.getFilesDirectory()), I want zip the text files and add the zipped file to the Intent object. Please provide me a piece of code to how to

  • Reference not found 2011-07-22

    I'm working on an Ant script for an Android build, but am coming up against the error Reference not found I can't find any information on what is or where it is set. Does anyone know? --------------So

  • How to transfer files between Android applications running on the same device? 2011-08-31

    I am writing an Android application that interfaces with a RESTful service. This web service essentially fronts a file system, and provides metadata as well CRUD access to the files. My application retrieves the metadata, and exposes it to 3rd party

  • Memory problems when posting files from android 2011-09-06

    When I try to upload images or larger files from my android app it crashes with an OutOfMemoryException. Im wondering if there are any alternate ways of doing this. Ive had the application crash in two different spots: Base64.encodeToString(bytes, Ba

  • Creating temporary files in Android with NDK 2011-09-29

    I am currently working on a C-based, NDK-based, Android application. This application needs to create temporary files. On a regular Linux system, I would use tmpfile to ensure that these files are properly created in a temporary directory and cleaned

  • Create Jar file for android project 2011-10-07

    I want to create a jar file from one android project for another android project.I want select only certain classes not all classes from project.I tried eclipse-export way to create a jar.Jar file is created and it also contains all selected class fi

  • how to parse local xml file in android using dom and saxparser? 2011-12-07

    how to parse local xml file in android using dom and sax? --------------Solutions------------- Android provides a simple SAXParser for developers: So use the SAXParserFactory to

  • Create View-Object from XML file in android 2011-12-12

    I only want to get an object from a xml layout file without having to implement it into the current layout. I know the way with LayoutInflater.from(context).inflate(R.layout.myfile, myparent, true); but after execution of the above the layout will be

  • Playing mp4 and avi files in android 2012-01-17

    I have mp4 and avi, two types of files on sdcard. Should I need to give full name with extension in code to play this file? Please help me regarding this. --------------Solutions------------- You will get IOException. You are setting the path in setD

Copyright (C), All Rights Reserved.

processed in 0.139 (s). 11 q(s)