Android Forums

Go Back   Android Forums > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
Reply
 
LinkBack Thread Tools Display Modes
Old 03-12-2010, 12:26 AM   #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
Reply With Quote
Reply

Thread Tools
Display Modes



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


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

All times are GMT -6. The time now is 12:21 AM.


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