Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 03-11-2010, 11:26 PM   #1
New Member
 
Join Date: Mar 2010
Posts: 3
Friends: 0
View jhoondlani's Profile   View jhoondlani's Photo Album   View jhoondlani's Blog   View Social Groups
Hi All,

I need two things :


1) I want to open a file from open a file that is stored somewhere in android phone from my application. I am able to get the location of the fie but it is not opening.

This is what i have tried:

Intent myIntent = new Intent(android.content.Intent.ACTION_PICK,
Uri.parse("file:/" + aDirectory.getAbsolutePath())); // file://sdcard/Test/abc.txt
startActivity(myIntent);


2) In the same way if this file is opened in the phone, i want to close it using my application.


Please help me out.

Thanks
Jaya
jhoondlani is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling Default Messages kristicakes19 Droid Eris 0 12-07-2009 06:20 PM
Thinkfree mobile - office editor nesita Android Games And Applications 2 10-26-2009 05:23 PM
Office word excel document editor dang Android Games And Applications 18 05-22-2009 02:36 AM
Configure default SMSC on G1 / Dev 1? maik Android Hardware 0 12-23-2008 02:35 PM
Change Default Start Up Class for Android Project baran_khan Android Development, Answers, Tutorials, and Code Snippets 0 08-01-2008 01:56 AM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 06:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.