this is gonna sounds stupid but i followed every step but i cant seem to get the file to be only ApplyRecovery.bat, thats how i named the files but it does only open notepad....like if it was reading ApplyRecovery.bat.txt
Step 5: create a text file using notepad, called ApplyRecovery.bat. Make sure it is not named "ApplyRecovery.bat.txt" . It will contain the following lines (copy/paste is fine)
i did it finally
For future reference, it might help others if you explained how you solved your problem. For example, given this issue where the file is opening in notepad, one of the following possibilities is apparent:
1. When saving the file, you did not enclose the file name in quotes, e.g. "ApplyRecovery.bat". Enclosing the file name in quotes overrides the automatic generation of extensions and saves the file exactly as you wish.
2. Batch files, files ending in .bat, were set to open in notepad instead of being ran when double-clicked. This would by necessity require you to delete the file association before the batch file would work.
This quick tutorial is based on google services and it's perfect for someone who has a few devices with different systems (f.ex Android)
1. make a complete copy of Your old nokia into .nbu file using Nokia PC Suite
2. use an Open Source NBU Explorer to open .nbu file and export your contacts to a folder (left click contacts, right click export)
3. form the command prompt (start run -> cmd) navigate to Your exported contacts folder and merge all files into one by executing command copy *.vcf all.vcf
4. open all.cvf file in the text editor and replace all TEL;CEL;WORK: strings with TEL;CEL: (since google will not regonize a nokia tags)
5. from Your computer login into Gmail, navigate to contacts and import all.vcf file
6. setup Your google account in Lumia
[MOD] Contacts backup&restore with photos and ringtones assigned
Wanted to restore contacts with photos and ringtones assigned? get it!!
Download archive
copy a 3 folder:
com.android.providers.contacts
com.android.providers.media
com.android.providers.telephony
in your phone from the directory data/user/0
puts it in the downloaded archive in the same path
and flash in cwm (installing all files are given their rights - so I do not recommend manually recover completely will kill phonebook)
now recover from a file *. vcf no longer necessary!!
restored everything:
1. ringtones
2. photos
3. groups
4. favorites
5. the default numbers
Has anyone ever Imported a VCF File Offline, Directly from their PC to their Android, and got the contacts with Unicode CJK (Chinese / Japanese / Korean) to display properly on import?
I have Android 4.2.2, and I've tried importing with 3 different programs (the Built-in Contacts Widget, Contacts VC, & vCardIO), and each one fails to retain the CJK Character Set Display when browsed through the phone
Of course, if a contact is added or edited individually with the CJK entered on the Device itself, it displays fine
Outlook has a similar problem by failing to display CJK properly when importing CSV contacts, however, in previous versions of Office you could import with Access which would retain the CJK Characters.. support for importing from Access & Excel DBs has been removed from Office 2013, which I assume is to boost the sales of their 30 dollar language support add on.. but I dont even know if buying that would help.
Anyway, the CSV file displays the CJK perfectly, and when converted to a single VCF, the CJK appears fine as well, when viewed in a txt editor
2 things I've tried and cant figure out is first, Converting the VCF to Unicode & saving as VCF creates a document which is not recognized by any of the 3 programs above, nor by Outlook.. Even though both files start with BEGIN:VCARD, and end with END:VCARD..
Doing a Notepadd++ file compare between the two documents, i notice a few extra lines and other differences beginning only at the point where the CJK contacts begin.. trying to fix the Unicode one up to match the original one also doesnt appear to have any effect. I HAVE NO IDEA why this happens.. it doesnt make any sense to me.. perhaps someone could explain it?
and Second, I've looked around in my phone for ways to add more support or fonts, but had no success.. perhaps someone could tell me how I might add in more support for CJK CharSets maybe in the Root, Either adding Fonts, or perhap there is something else I could add to make it more of a complete Chinese system
I'm a Windows user, and dont know much about the Linux Kernel, but its appearing to handle languages more like Apple does than like Microsoft.. Apple has a ton of programs that jumble all of my CJK files
In WinMo, i could install a "Chinese System" which gave it the same support the Chinese WinMo would have.. Android seems to support English, then selectively pick & choose whats going to be ported to a different language, not natively built to support other charsets
Perhaps also I could add CJK support to an existing open-source Contacts APK, or if someone has one in the works, maybe they could try and add it in? Let me know
thanks for any ideas
Here is my method I used to create my CSV & Convert it to a VCF
Start > Run
Type: Contacts & Hit Enter
Click "Import" on the bar above the window.. if you cant see it, make your window full screen, or click the ">>" arrows on the right
Browse to your CSV File & Click Import
Wait for them to all be imported, could take 5-15 minutes, depending on how many contacts you have
Hit Ctrl + A to select them all, and then click "Export", next to the Import button
Select "Vcards *.vcf"
Map all the fields, by dragging them from the left column to the closest similar column on the right
Browse to a New Folder just for your VCF Contacts
Click OK to Export, Export will be much faster than Import
There will be one VCF per contact, you could have thousands
Go to the folder where all the VCF files are
Right-Click, and go to Lopesoft File Menu Tools > and select "Command Line From Here"
Type the following:
copy *.vcf all.vcf
There will be new file named "all.vcf" in the file with all the other ones, but it will be much bigger, copy that to a new folder
Put that "all.vcf" file in your phone SD card
Import the VCF into your Phone Contacts
**If you need help getting a CSV file:
Outlook:
Export > Contacts to CSV
PIM Backup Database from Windows Mobile Phone
Use this Program to easily convert PimBackups from PPC to CSV files:
Thunderbird Contacts Export: http://www.freewarepocketpc.net/ppc-download-thunderbird-contacts-export.html
Other Phones >Export Contacts to CSV Files using the phones software
Other Email Services > All your web-email sites can export to CSV for you
I figured out a work around!!
I'm not sure which step was the most important, i suspect a few.. so here is what I did:
- I had a CSV File of my contacts
- I Changed the CSV to *.txt, since more programs readily support Unicode in TXT files
- I Opened the TXT file in Notepad, & did a "Save As" in Unicode UTF-8 Encoding, also *.txt
- I rolled back to Office 2007 from 2013 because of the Language incompatibility & Language packs apparently needed, and the removal of support, I suspected it also made things difficult for other work-arounds to get unicode working properly..
- I Opened Access 2007, Clicked "External Data", under "Import", then Selected "Text", then I browsed to my Unicode UTF-8 TXT file & Click OK
- IMMEDIATELY click "Advanced" on the bottom left, Click the "Code Page" drop-down box, and scroll down & Select "UTF-8", then Click OK
- Click "Delimited", then "Next"
- Tick "First Row Contains Field Names", Tick the "Comma" Radio Button, then select > " < as the Text Qualifier (your format may vary) & Click Next
- Select "No Primary Key"
- Continue Clicking Next until you get to Finish
- Highlight the Entire Table
- Go to "External Data > Export > Text File"
- Name it something *.CSV
- DESELECT "Export Data with Formatting & Layout" & Click OK
- IMMEDIATELY click "Advanced" on the bottom left, Click the "Code Page" drop-down box, and scroll down & Select "UTF-8", then Click OK
- Be sure "Delimited" is selected, click Next
- Tick "Include Field Names on First Row", Tick the "Comma" Radio Button, then select > " < as the Text Qualifier, & Click Next
- Click Finish
- Type "Contacts" in the address bar of a Windows Explorer Window
- Click "Import" on the bar
- Click CSV, & Click "Import"
- Browse to your New Unicode UTF-8 CSV File from Access & Click "Next"
- Map Fields to the closest similar field.. Include Pager, Web Page, Mobile, Name (First Name), Surname, Email, Home & Business Phone, Fax & Notes, or whatever Fields you think you might have ever added something to
- Click "Finish" and wait for the Import
- Select All, then click "Export" on the bar
- Select "vCards" & Click "Export"
- Browse to a Location & Create a New Folder for your vCards there & Click OK - Wait for it to complete exporting
- Right-click in the folder, go to Lopesoft File Menu Tools > "Command Line from Here"
- Type or Paste in: copy *.vcf ContactsUnicode.vcf Then hit Enter & wait for it to Complete
- Copy the new file "ContactsUnicode.vcf" to a new Sub-folder, then send it to your phones Internal Storage
- If you try to import these directly into Android Contacts at this point, you will fail to read the Unicode Properly.
- Open the free app "vCardIO"
- In the Import Window, browse to your ContactsUnicode.vcf file, then Click "Import"
- Wait for it to complete the Import..
- The Import is NOT in your Android "Phone Contacts", but if you open Android Contacts & click the Menu button, then go to "Contacts to Display" then click "All Contacts" they will show up, WITH the Unicode intact... I guess they are in vCardIO's own directory.. not sure now..
- & Voila! Unicode Contacts!
You might find an much, much easier solution!
Got it from code.google.com/p/android/issues/detail?id=10107
Notepad adds 3 bytes at the start of UTF-8 or Unicode files, which makes Unix (here, Android) not capable of reading Unicode/UTF-8 files.
If you edit your .vcf Vcard file with another editor, such as Notepad++ or Pspad, and save it as UTF-8 without BOM (implicit option in Pspad, explicit choice in the menu of Notepad++), then you will be able to import it on Android Kitkat 4.2 with the standard Vcard contact import option, and it will come into your Phone contacts naturally !
Hi, I am quite new to Android development. I need to share a text file from my Android app via WhatsApp, mail etc. I am using the below code:
File file = new File(stringFile);
Intent intentShare = new Intent(Intent.ACTION_SEND);
intentShare.setType("text/*");
intentShare.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+file));
startActivity(Intent.createChooser(intentShare, "Share the file ..."));
stringFile contains the full path of my file. The file is in internal storage. When I run the above code. I am getting the share apps like WhatsApp. gmail etc.
i am also able to select the requited app( say gmail) and proceed. But the thing is the file is not sent at all.
Is there anything I need to do in special? The file is created in internal storage. The path is /data/user/0/com.example.myappname/files/myfile.txt
Kindly help.Thanks
The receiving app has no permission to access the data your file://Uri points to.
I think you should store the data in your own ContentProvider or system MediaStore in order for the receiving app to have access to the text file.
If you will store the file in your own ContentProvider, you should pass the Content Uri into the function call intentShare.putExtra() then.