Android File object mkdirs with accents - Android Q&A, Help & Troubleshooting

Hi,
I'm using the Java File object to create diretories, however a folder containing an accent won't be created, for example
File f = new File ("/sdcard/sécurité/");
f.mkdirs();
the folder sécurité won't be created and no error will be raisen
however
File f = new File ("/sdcard/securite/");
f.mkdirs();
does work
Any idea ?
Thank you !

Related

folder icon

do you guys know how to change the folder icon in the start program menu?
inside any folder ... creat a file and name it icon.lnk ... in this file you should type a name of any DLL and a refernce to the icon ID inside it (ex: ceshell.dll, 162) and make sure this dll file is in \windows directory ... whenever you browse, this folder will have this icon in the explorer. you can use Resource Hacker s/w to get this data from any exe or dll file

Android FileOutStream: can not find my saved txt file

hello, everyone,
I'm an newbie developer for android device.
Recently I want to save my data into an txt file using FileOutputStream.
Here is my code:
Code:
FileOutputStream outStream=this.openFileOutput("2222.txt",Context.MODE_APPEND + Context.MODE_WORLD_READABLE);
String data1 = Float.toString(cpuUsage);
Log.i("savedata",data1);
outStream.write(data1.getBytes());
outStream.close();
The code worked perfectly.
But the problem is I can not find where to see this file on my computer.
I was told that the fileoutstream will ususally save file in data/(packages name)/files.
But data directory is empty in file explorer on Eclipse.
Anybody please help..
Best

certificate in ota rom

there are 2 important certificate in ota rom file
1:com.sony.tablet
this is sony's ket to sign rom files,you can get it this way
unzip file rom\META-INF\CERT.RSA
rename to cert.rsa.p7b
double click to open
in system certmgr,you can find certificate file
this file only have public key,use to verify file.
only with private key,you can sign new file.
2:test key
in rom\system\etc\security\otacerts.zip\testkey.x509.pem
to open it,just change ext name to .crt,windows will open it
you can also file this key in allinone\files\,and it's private key .pk8
aio use this key to resign custom rom.you can flash custom rom with condi fixed recovery.
View attachment cert.zip
last,there are many other certificate in system\etc\security\cacerts
to open in windows,add ext name .crt
but it's not important
-----------------------------------------------------------------
PS:the rule of sign apk/zip file
android sdk have file signapk.jar to sign file.
it does:
1,calc sha1 hash for all files in zip,write it to MANIFEST.MF
2,calc sha1 hash for manifest,write to CERT.SF
3,write public part of certificate to CERT.RSA
4,append sign data at last of zip file

. zip.001 & *. solutions zip.002 type of file compression

*. zip.001 & *. solutions zip.002 type of file compression
Various sub-volume compression format
********rar sub-volume format is *. part1.rar, *. part2.rar so .
*******Out of 360 sub-volume compressed file name is *. Zip.001, * form . Zip002 like .
*******WinZip volume compression out of the file name is *. Zip, *. Z01, *. Z02 and the like .
*******7z format is named from the first sub-volume ge begin with * .001 , * .002 is the second , and so on .
Sometimes the downloaded *. Zip.001 & *. Zip.002 type of file can not use winrar to decompress , of course, you can format under the appropriate software to decompress , if you do not , there is a simple way to put * . zip.001 & *. zip.002 types of files before copying into a *. zip file after use winrar decompress .
******1 . Pretreatment
otona-jelly-beans-1.3.zip.001 otona-jelly-beans-1.3.zip.002 otona-jelly-beans-1.3.zip.003
******
*First, the first move these files to the root directory of a partition under ( for example, I would move to the root directory of drive E ) .
*******Then rename all files , change the more simple as possible, for example, I would have changed 1.zip.001, 1.zip.002 and 1.zip.003 ( file name without any impact on the final unpacked ) in fact, it does not change the name of the line , you can copy the file name in Windows Explorer , and then paste the command line using the right mouse button ) .
*******2 merge files
*******Open a command prompt window , type E: E into the root directory ,
*******Then enter this command : copy / B 1.zip.001 + 1.zip.002 + 1.zip.003 1.zip
*****Wait a merger is completed.
*****3 Close the command prompt window , in the root directory of E will be a good merger 1.zip file using WinRAR normal decompress , you can

Watchface designer issue

Hi folks
Having issues with repacking a BIN after editing a watchface from https://amazfitwatchfaces.com/bip/ the issue occurs regardless of whether I have edited or simply unpacked and then repacked the BIN file
Fatal|System.ArgumentException: File 'header.json' or 'version' should exists in the folder with unpacked images. Res-file couldn't be created
at WatchFace.Program.PackResources(String inputDirectory)
at WatchFace.Program.Main(String[] args)
Fatal|System.ArgumentException: File 'header.json' or 'version' should exists in the folder with unpacked images. Res-file couldn't be created
at WatchFace.Program.PackResources(String inputDirectory)
at WatchFace.Program.Main(String[] args)
ALL the files are in the correct folder and as I have stated this even occurs if I simply try repacking an unedited/unpacked BIN file..
any ideas?
regards
Lohtse
SOOOOOOOOOOOOOOOOOOOO no one has any ideas???
lohtse said:
SOOOOOOOOOOOOOOOOOOOO no one has any ideas???
Click to expand...
Click to collapse
Drag and drop useless. : D
Simple example.
Open and edit the 1234567890xyz.bin interface file.
Open the command line
"watchface.exe 1234567890xyz\1234567890xyz.json"
Enjoy. :iyi:

Categories

Resources