Android :: Access Files That Works Both On Droid And PC?
May 11, 2010
I'm writing an application that will ship in two versions: Android and PC version.
Is there a simple way to access files from the shared code?
Using Java.io is simple, but I don't know how to access android resources or assets using it. And I can't write methods that operate on FileInputStreams instead, because some files contain references to another ones, so I need a way to access them from the method code. Any suggestions?
View 1 Replies
Jul 19, 2010
I'm having problems trying to use files after moving them.
Example:
I took a bunch of pictures at an event, the created a folder for that event and moved the pictures into it. I can still open the pictures one at a tiem by navigsting too them, but the galleary app still shows the thumbs, but cannot find them.
Example 2:
I downloaded an mp3 for a ring tone, and while in the downloads folder the music player found it and I was able to set it at a ring tone. But I tried to create a ringtones folder, and then music could not find it, and just playing it by opening the file would not allow me to set a ring tone.
So how does this work? I have seen references here to folders called Media and ring tones, but I see nothing like that in the file system on my phone. Where does one put music if they want to actually use the music player?
Is the DCIM folder the ONLY one that works with the photo gallery? Is the Downloads folder the ONLY one that works with the music player?
View 10 Replies
View Related
Nov 4, 2010
I am working on an android app. Where i need to parse some plist files from assets folder. I do understand how to use assets in android but now problem is that file sizes are more than 1MB and so android gives error Data Exceeds UNCOMPRESS_DATA_MAX (2183588 vs 1048576). how to access such larger files from assets? Also I cant reduce a file into small buffers because i am just sending it to "DocumentBuilder.parse(in)" as a whole so can not use buffer. The error is on line: Document doc = db.parse(in).
View 1 Replies
View Related
May 12, 2010
access home computer/files via droid? is there such an app?
View 7 Replies
View Related
Feb 11, 2010
I have to make a dedicated image viewer app for Android 2.x.
There are too many jpeg image files: about 2000~ jpegs, over 100MB.
I want access the image files with their file names,
but I couldn't find such an example.
By the way, is it okay to put many image files in /res/drawable folder?
I heard that the android application cannot be installed on sdcard and
the program repository is very small so 100MB app cannot be installed generally.
I found some examples which download the large data files on sdcard online,
but I cannot run a web server to host the data files,
and I must upload the fully packaged program on Android Market. (Should I build one apk file?)
What are the best practices for managing too many resource images (or something) in Android?
View 4 Replies
View Related
Mar 25, 2010
I want to access files in the /sys, to be exact in the /sys/class folder. I just need to read some values there. I tried the Context.openFileInput method, but got only exceptions and I understand this is not the right way.
View 1 Replies
View Related
Oct 5, 2010
I'm using HTC Dream and trying to read the images stored in the "default" album folder of this phone. But I've yet to found out what's the folder path to those images file. do you know what's the path to that image folder? What would be the path patterns (if any) in other Android phones? I don't need to set any additional permission to access those files, do I? Do you know how I can build a "file browsing" widget in my activity? I've searched and seems like there is no such widget and I've to install app that does file browsing. In any case, how to incorporate that as a file-browsing view in my current activity?
View 1 Replies
View Related
Aug 5, 2010
I have the Samsung Captivate, and I'm having a bit of an issue with my company's Exchange server. I don't want to sync it with my phone, I prefer to keep my work email separate, but I do occasionally need to use the Outlook Web Access portal on the server. When I'm on any WiFi connection, and I browse to my server's OWA, I get the login prompt, and I can successfully log in and do whatever I need to.
However, when on 3g, I get simply "Access Denied" without a login prompt at all. I've tried rebooting the phone, killing the browser process, clearing the caches in the browser, etc. None of that works. I administer this server myself, and it works with my wife's iphone just fine, as well as other android phones in the office.
View 1 Replies
View Related
Aug 13, 2010
I am trying to find the path for the android database files on Ubuntu 10.4, because I want to access with SQLite Browser. Someone can tell?
View 2 Replies
View Related
Mar 17, 2009
I'm currently hosting an app on my own server so my beta testers can test it. I've set up the apk MIME type to be application/ vnd.android.package-archive, and when I try to download the app from the emulator, it downloads the 53KB apk file and installs it. When I try to do the same thing from a real ADP1 device, it only loads 43KB. When I try to install it, the system says that I'm trying to install an app that already exists (called "Android System") and that doesn't require any permissions, but nothing happens when I proceed. logcat tells me
"D/asset (16379): failed to open Zip archive '/ sdcard/download/[name of the app].apk'
Bonus points! When I try to download the app from the emulator, I can see that in the accesslog of my server. Not so when I download it from the device, even after deleting /sdcard/download/* and clearing the cache through the settings. Almost as if the device was loading an old copy from a proxy server. I'm not sure which APN I'm using, but none of the T-Mobile APNs have a proxy AFAICS. Is there a way to circumvent the proxy, assuming that this is the case? And/or tell the proxy not to cache this apk file?
View 7 Replies
View Related
Jan 12, 2010
I've two phones, the HTC Magic and since today also the Motorola
Milestone.
While the Magic works perfectly, I'm not able to access the Milestone
via USB (adb devices).
Here are my log outputs and settings for both:
HTC Magic
lsusb:
Bus 001 Device 009: ID 0bb4:0c02 High Tech Computer Corp.
CODE:.............
Motorola Milestone
lsusb:
CODE:................
Notes
USB Debugging is enabled on both phones. After changing the udev rules I did a "service udev reload" and
"adb kill-server" -> didn't help. I even tried to restart the whole machine. Without success.
View 3 Replies
View Related
Mar 20, 2010
I recently upgraded my Android app to support multiple resolutions. Previously, my Android.manifest file had a line:
To support multiple density and resolution devices, I changed this to:
CODE:............
I then added a couple of new directories, like drawable-hdpi-v4 and drawable-long-hdpi-v4 that includes the high-res versions of the graphics. That's about it.
Ever since releasing this update, there have been a decent number of users complaining about various problems:
the app icon doesn't appear (I did not create a high res version of the icon)
the home screen widget no longer works, even if they delete and re-add it (this code did not change with the update). I've had a user send me their error log, which shows:
CODE:................
There is one questionable section in my existing widget code that may be relevant:
CODE:..........
And perhaps most troublesome: the sqlite database is no longer accessible/writeable for some users so their data is no longer available. I did add the WRITE_EXTERNAL_STORAGE permission to the manifest. This is only happening to certain users and it tends to be HTC Eris users. In that error log I see things such as:
CODE:.........
It's as if the update has caused a new process and it can't access the old process's data, or something.
View 1 Replies
View Related
Apr 5, 2010
Is there any app that, without using a remote desktop client (VNC/RDB), you can use to access files on your PC?
View 9 Replies
View Related
Feb 19, 2009
I tried to access the data from "data/data" folder from emulator memory and it worked fine but when i created the same structure in android phone then (1). It didn't gave me permissions to create the directory "files" in phone memory ( data/data/package name/) (2) any how i created the (data/data/package name//files/album) structure through coding but now i am unable to do "cd files" I need to push some image files in the folder data/data/package name// files/album.
View 3 Replies
View Related
Feb 4, 2010
I'm lost here.
I create files using this (stripped) code...
But I get a FileNotFoundException on the FileOutputStream creation...
View 2 Replies
View Related
Nov 13, 2009
Is there a program for the Android OS that allows to to access your files and directories, like 'Windows Explorer' does on your desktop pc? I have some audio files that I would like to move to the ringtone directory.
View 4 Replies
View Related
Oct 27, 2009
From what I've been able to find, Android apps are sandboxed, and can only list, read, and write files within the application's data directory (e.g. /data/data/<pkgname>). but, what about an application that allows users to view photos on an SD card (or play music, etc)? Surely this must be possible. Does one have to write a Service Provider for this?
View 2 Replies
View Related
May 24, 2009
I'm trying to find a way to access private files created by other packages.According to the dev site (plz see the following), I can read/write files of other packages if some flags are set on the create of those files, but I don't know how. Can I just open those files with Context.openFileInput(or Context.openFileOutput)? Do I need a different way for those three cases? By three cases, I mean getSharedPreferences(String, int), openFileOutput(String, int), openOrCreateDatabase(String, int, SQLiteDatabase.CursorFactory).
View 5 Replies
View Related
Oct 26, 2010
I am creating an SDK .I have got some problems as follows:
i need to have some predefined images along with the jar.please suggest any method to do this thing. like 1) how to keep the files in jar and 2) how to use it in code.
If any code is very helpful or just any information is very helpful.
View 3 Replies
View Related
Feb 11, 2010
So I just got my Nexus One (like literally a few hours ago) and yay everything is nice (well not everything - for some reason I can't download apps from the market). Anyways, I figure, let's see how this thing is for reading pdfs.
I mounted it as a drive via usb. Created a docs directory, and place a pdf book in it.
Ok...Now how do I open that file?
Again we're talking Nexus One
2.1-update1
Kernel 2.6.29-01117
Build ERE27 (who the hell has letters in their build names!?)
View 5 Replies
View Related
May 7, 2009
Can any one tell me which is the best way to access the file system in android device, also i want to list all the files in the application directory.
View 3 Replies
View Related
Jul 27, 2009
I don't how to do this task.using the getpath() method i can get the path of the database.In the Terminal Emulator using commends i can see the database file which contains the queries what i have executed,that file is saved in the emulator memory.How can i access that file from an anroid application.
View 1 Replies
View Related
Sep 21, 2010
Some html files are in my sd card. I am using qualcomm surfs. By using adb shell commands or "adb shell am start -n com.android.browser/.BrowserActivity file://sdcard/example.html" how can i access or open that html files. Is there any method for accessing sd card files.
View 4 Replies
View Related
Sep 19, 2010
I"m always connected by wifi at home and i would like to access my files through wifi. There are a lot of web browser based wifi apps (like Websharing) but I was wondering if there are any drag and drop methods as if I was connected by the USB cable. I want to access the SD card through My Computer and not Firefox.
View 19 Replies
View Related
Mar 3, 2010
I have some data files that I need to install together with my application on the emulator for easy testing my app on a device.
Where can I put files in a way that Eclipse will include them into my apk and how can I access those files after my application is installed on the device?
View 1 Replies
View Related
Jul 21, 2013
I'm wondering is there a way to access system files of Android (JB version) and make changes from Windows? Is it possible do that in fastboot mode, without switching on?
View 2 Replies
View Related
Nov 17, 2009
Does anybody know of an app that can view Microsoft Access Snapshot (.snp) files? I think they're basic images, but a proprietary format. I haven't seen anything in the market that looks like it would do the trick. I get these emailed to me from work and would love to be able to open them on my phone!
View 1 Replies
View Related
Feb 28, 2009
I just received my unlocked g1 the other day. I was a hardcore i phone owner but now switched over. I am trying to find out all of the useful apps and if there is anyway i can get access to the paid apps? Also is there anyway i can download and read pdf or doc files?
View 2 Replies
View Related
Jun 30, 2010
A question about the internal storage that's private to each application (especially when storing files with Context.MODE_PRIVATE).
How is that storage actually assigned to the application? Just by package name or also somehow bound to the sign key of the app?
Let's say I have installed application 1 and then write another application 2 with the same name and package name (just differently signed with different keys) and install it (app 2 replacing app 1), would that application 2 get access to the /data/data/[app]/files ?
Or would I not even be able to replace app1 with app2 due to different sign keys in the first place?
View 2 Replies
View Related
May 22, 2010
Is there an app that can help me access my computer's files or just make my phone become an external disk over the wifi? if so can u plz tell me which apps or software i need to install?
View 7 Replies
View Related