Hello,
i want to use a property file in my application.
I putted config.properties in my application package. When i try to open it by
Code:
getApplicationContext().openFileInput("config.properties")
exception was catched. The message is "unable to find config.properties in /data/data/myapplication/files/confi.properties".
I can put the file in that folder in emulator and, so, it will find the file. My problem is real device, how i can put config.properties in that folder on real device?
Thanks in advice, regards.
Related
My phone got all screwed up, so I copied as many files off of it as I could using the Windows "Mobile Device" folder (no programs will run on the phone, but I could see the files). I copied pim.vol and cemail.vol among others. I hard reset the phone and copied pim.vol back onto the phone, and now my contacts, calendar, call history, are all restored. I'd like to restore the cemail.vol file also, but when I try to delete the default one I get:
Cannot delete 'cemail':
There has been a sharing violation.
The source or destination file may be in use.
Click to expand...
Click to collapse
When I try to delete it from the computer, I get the same thing:
Cannot delete file cemail: There has been a sharing violation.
The source or destination file may be in use.
Click to expand...
Click to collapse
How do I get around this?
Answer: Remove "messaging" from the Today screen so that it is not in use, and restart.
Long path tool
Hi Guys, just to update you, finally I found a way to solve it
Do you have error messages?, like :
* Path too long
* Error cannot delete file: cannot read from source file or disk
* Cannot delete file: Access is denied
* There has been a sharing violation.
* Cannot delete file or folder The file name you specified is not valid or too long. Specify a different file name.
For that I tried it with LONG PATH TOOL
Hi people. I can't download Web Tv on my HTC Fuze anymore. I downloaded it once and it work with the zip file. I somehow deleted something from my files and now when i try to download the zip file my phone tells me that..... Ok here it is step by step. Im cliking on the Web tv zip file and it promps me to save or save as. I piked save as and saved it on my Personal Folder. When i hit save it tells me that,''This file already exist and if i want to replace it. I hit yes replace my file. After it shows that its loading to my phone. When done a nother window pops out telling me that,'' The central directory was not found in the archive (or you were trying to open a disk other then the last disk of a multi-disk archive.) Plz help
Sometimes You want to install an App on more than an android device, but the App data is Big, so it would take long to download
My Problem For Example, I Want to Install Several Offline Language packs For Google Translate for each Device, on my Connection it would take Forever
Now The Thing That You Need these File's to Be Downloaded Once, Copied To your PC, Plus Knowing From Where the files Being Downloaded
For My Case the File's are "ar.zip" and "c.zip" And they are being Downloaded From:
http://dl.google.com/translate/offline/v3/r1/ar.zip
http://dl.google.com/translate/offline/v3/r1/c.zip
Now the idea is:
1.Get a Copy of the Files to your PC
2.Make a Local WebServer
3.Edit Hosts file in Your Android (Require Root)
and Simply Download the Files Using your App as Normal But it will download rather than internet it will download from your PC
Now you'll Need Reactor, Get it From: https://app.box.com/s/brvhhzr72220n1w1mao6
Simply After you Download it, Run it and Install it, Run It, Run the WebServer
Now when you open localhost or 127.0.0.1 in your Browser it will open you an automatically Generated page by Reactor
Now you need to store Files in the WebServer, or whatever you call it, To Do this, Go to the Folder where you installed Reactor, Open "Core" Folder and then "htdocs" Folder, Now For Example if you Put a Folder called "hello", and Put a File Called "a.mp3", if you Opened with your Browser, localhost/hello/a.mp3 you will be able to download it!
Now For My Case i made the "ar.zip" and "c.zip" in translate/offline/v3/r1/
So the Path of the Files are:
\Reactor\Core\htdocs\translate\offline\v3\r1\ar.zip
\Reactor\Core\htdocs\translate\offline\v3\r1\c.zip
while in the Browser They Would be:
localhost/translate/offline/v3/r1/ar.zip
localhost/translate/offline/v3/r1/c.zip
Now The Next Step is to redirect the Website The App Will download From to Your PC Server, Which is you PC IP Address
My PC IP Address is 192.168.1.106,. So For my Case i want dl.google.com to be redirected to 192.168.1.106
"hosts" File will do the Job!, You'll need root for this Step, Open up a File Manager in your android, navigate to /etc/ and Open up "hosts" file with a Text Editor
and add the Following Line:
HTML:
<For (IP)> <From>
For My case i will add:
HTML:
192.168.1.106 dl.google.com
Now if i Opened dl.google.com in your android Browser it will open the WebSever you made with your PC!
Now For My Case When Google Translate Try to Access:
HTML:
http://dl.google.com/translate/offline/v3/r1/ar.zip
HTML:
http://dl.google.com/translate/offline/v3/r1/c.zip
dl.google.com --> is the WebServer Now
/translate/offline/v3/r1/ --> Entering the Folders I Made the ZIP Files In
<file>.zip is the Files
So the it will now download Rather from the Internet it will be Directed to My PC hooray!:victory:
Now you Bring Every Droid You have, Add a Single Line, and Download the File you want Normally! Amazing!:victory:
Please Suggest me A Better Title:good:
This Is My First Tutorial Thread So Don't Blame me:fingers-crossed:, Just tell me what is Wrong
Please Rate The Thread For Me
And Hit that Thanks Button if i Helped, i really Appreciate this!
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
To edit any apk is necessary Apktool. Look this guide and try edit:
http://www.xda-developers.com/decompile-edit-and-recompile-in-one-tool-with-apk-studio/
gamer22881 said:
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
Click to expand...
Click to collapse
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
ИΘΘK¡€ said:
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
Click to expand...
Click to collapse
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
gamer22881 said:
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
Click to expand...
Click to collapse
It will help you with actually being able to make edits to text files without screwing up all of the line endings and encoding.
So, I edited a word doc from an email, using the built-in Hancom HWord viewer/editor. I used Save As from the menu. I wasn't paying attention to the file path and just added a suffix to the file name. Turns out I was saving in a protected folder. HWord cannot be opened directly from the Applications on the phone, but only by opening a Word doc from email, etc., but that doesn't present an Open option.
So, since I can't open the app and get an Open option, and because the file is in a protected folder, I can't get to this file.
The only method I've found out there for rooting my phone involves deleting the phone. Not an option when all I need to do is get to the file and copy it somewhere else.
I tried installing the latest HWord, and of course it does not have access to the original HWord's folder.
Do any of you know a method I can get to the file? Again, just need to copy it to a readily accessible folder.
Thanks in advance for any help you can offer.