Delete eclipse appcompat_v7 package - Android Q&A, Help & Troubleshooting

I accidentally deleted appcompat_v7 from package explorer, now my android projects have errors in folder values (styles.xml) and src folder. How can i fix this mistake. I tryed to import android-support-v7-mediarouter, my error from project scr gone, but i still have errors in styles.xml,and i have error too in android-support-v7-mediarouter in res/value/styles.xml . i fix a error , another one apears. Sorry for my bad english .

ImP4Kter said:
I accidentally deleted appcompat_v7 from package explorer, now my android projects have errors in folder values (styles.xml) and src folder. How can i fix this mistake. I tryed to import android-support-v7-mediarouter, my error from project scr gone, but i still have errors in styles.xml,and i have error too in android-support-v7-mediarouter in res/value/styles.xml . i fix a error , another one apears. Sorry for my bad english .
Click to expand...
Click to collapse
Add the appcompat_v7 project to your application project as a library:
In the Project Explorer, right-click your project and select Properties.
In the category panel on the left side of the dialog, select Android.
In the Library pane, click the Add button.
Select the library project and click OK. For example, the appcompat project should be listed as android-support-v7-appcompat.
In the properties window, click OK.
https://developer.android.com/tools/support-library/setup.html#libs-with-res
(ref, from http://stackoverflow.com/questions/...mpat-v7-and-now-my-android-projects-wont-work)
btw, u have to import the whole appcompat_v7 but not only android-support-v7-mediarouter, so if you didn't download whole android-support-v7 then download in sdk manager!
hope this can help your problem!

Related

Eclipse Question

I'm in the process of figuring out how to develop for android...and I'm trying to add an EditText field but I get and error. Looking at the graphical layout, the screen fades out. Is there a reason this would happen.
I am also getting an error that says "Failed to load properties file for android project".
Any help is welcomed.
Thanks in advance.
ok
jacari91 said:
I'm in the process of figuring out how to develop for android...and I'm trying to add an EditText field but I get and error. Looking at the graphical layout, the screen fades out. Is there a reason this would happen.
I am also getting an error that says "Failed to load properties file for android project".
Any help is welcomed.
Thanks in advance.
Click to expand...
Click to collapse
if you what to write something on a button on your app screen,,,, it's not directly done for android
so you have to go to a "Value" folder of your project and u will find a "string.xml " file
here you can add what ever text you want to use it on your app screen where ever you wanna
1- click on string file and you will see an interface and an add button
2- click on add button -> select string
3- now you have to enter a string NAME and string Value
4- string NAME is an ID of this string
5- string Value is an Value that you can use it on your app screen
NOW save your project
and go to main.xml
right click on button -> edit text
and you will see add ID's that you interned in string .xml
<<<<this is used for managing app's that have Multi Languages :good:>>>>
click on THANKS button if you find it helpful
osama_m2s said:
if you what to write something on a button on your app screen,,,, it's not directly done for android
so you have to go to a "Value" folder of your project and u will find a "string.xml " file
here you can add what ever text you want to use it on your app screen where ever you wanna
1- click on string file and you will see an interface and an add button
2- click on add button -> select string
3- now you have to enter a string NAME and string Value
4- string NAME is an ID of this string
5- string Value is an Value that you can use it on your app screen
NOW save your project
and go to main.xml
right click on button -> edit text
and you will see add ID's that you interned in string .xml
<<<<this is used for managing app's that have Multi Languages :good:>>>>
click on THANKS button if you find it helpful
Click to expand...
Click to collapse
Thanks. Let's say I'm making a to-do app...would this allow me to make an area where the user would enter their task?

Fix for trouble installing DSXIDA'a kitchen [Windows]

This is a problem i encountered while installing android kitchen, i searched a lot and found many people had this same issue where the kitchen would say Java not found, but when done editing the bash_profile (fix by dsixda for java not found error) cygwin would come up with an error with a bunch of chmod command not found bla bla and that application clear not found.
So heres a simple fix, follow these steps;
1)go to my computer>system properties from the top menu>advanced system settings from sidepanel>open advanced tab
2)at the bottom click on environment variables> the add a new USER variable, and enter the following inside:
Variable name : path
Variable value : C:\Program Files\Java\jdk1.7.0_03\bin;
replace the bold part with your version of JDK (check from program files), and make sure ur directory is same, if its not then change it.
Now run cygwin, then try to open the menu and VOILA!
zeeshanhassan nice post. is it you zeeshu007 ????
this is wrong section to post this.
mor_1228 said:
zeeshanhassan nice post. is it you zeeshu007 ????
this is wrong section to post this.
Click to expand...
Click to collapse
nope this my first account, and i thought the kitchen is related to rom making so i put it in development section
not worked

[Q] Android Unicode VCF Support

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 !

how to add directory to include_paths?

I have multiple errors like this
frameworks/av/media/libstagefright/ACodec.cpp:39:24: fatal error: QCMetaData.h: No such file or directory
this file located in hardware/qcom/media/mm-core/inc/ directory
how i can add this directory to include_paths?
if it is to a linux computer, you would add this to your /home/user/.bashrc file <- notice the dot.
export PATH=$PATH:/path/to/whatever/file/you/need
you can add this line below the same line, if you have one like this already.
to test, youc an also type it on the CLI, if it works, and you needed it permanent, then add it to the file mentioned.
no. it not about PATH variable
on UT compilation i have multiple errors like this
frameworks/av/media/libstagefright/ACodec.cpp:39:24: fatal error: QCMetaData.h: No such file or directory
becouce including header file QCMetaData.h locating in hardware/qcom/media/mm-core/inc/ directory that was not in <<includes_directories>>
how i can add this includes directory to each project which include files from it?
i dont want to catch all dependencies. how get it automatics?
ah I see. that's beyond my sys admin knowledge. someone with programming (gcc) skills can help you. Sorry
Hi Maybe this can help http://stackoverflow.com/questions/...odec-cpp-in-android-sources-in-libstagefright
gazhead said:
Hi Maybe this can help http://stackoverflow.com/questions/...odec-cpp-in-android-sources-in-libstagefright
Click to expand...
Click to collapse
nope

[SOLVED][Q] Help adding Gradle based library to my non-Gradle non-Eclipse project

I'm trying to use HoloColorPicker by Lars Werkman, now I'm not using Eclipse or the Android Studio, I'm doing everything via command line and advanced text editors (that's just how I like it). Now the problem I'm running into is HoloColorPicker uses Gradle, so it doesn't have a build.xml file, giving me this error when I try to build:
Invalid file: /HOMEFOLDER/DevTools/AndroidLibs/HoloColorPicker/build.xml
I used the `android update project` command to add the library to my project, so how do I either convert the Gradle project to a standard android proect, or get it to build the library with gradle instead of build.xml???
Any help is greately apprecieated, thanks.
Well, I think I figured it out, all I had to do was open a terminal in the folder of library project and run this:
android update lib-project --path . --target 1
Afterwards it created the appropriate files that were needed and it now compiles, of course I won't know for 100% certainty until I actually use some things from the library and get it to run.
Well, I've tested it and this did fix my issue, I was able to successfully import the library.

Categories

Resources