I can't drag and drop .9.pngs to the res/drawable folder! I don't know why, but when the file shows up under /drawable, it suddenly pops up with a red x and says that all the other drawables can't be found. What is happening? I'm trying to use a .9.png as a background for a view, but I can't seem to get eclipse to recognize the .9.pngs Thanks in advance
have you tried Project > Clean
?
It's a good first line of defense for weird Eclipse errors
I tried that. It still doesn't work The only way to get it to recognize the image isbto rename it as a PNG instead of a nine-patch
what is the error that eclipse shows?
I had your same error before I used the tool provided for ninepatch building.
If you use the tool, no problem.
You can find it in: ...\android-sdk-windows\tools\draw9patch.bat
It's really easy to use. Google for a tutorial.
Make sure you don't have any other drawable file with the same name as your nine patch or the name doesn't contain uppercase characters.
edit:
or you've just created your nine patch incorrectly
Why do you want it to be called .9.png? Cant you just rename it or is it a best practices kind of thing?
Or is this a type of png? A bit confused...
nvm.. its a stretchable png
From something awesome
Related
Thanks to the great job from all the greater guys for the Blackstone dialer.
But I am thinking whether anyone has a way to change the current white-based dialer to a black-based colour scheme. Thanks.
hotiron07 said:
Thanks to the great job from all the greater guys for the Blackstone dialer.
But I am thinking whether anyone has a way to change the current white-based dialer to a black-based colour scheme. Thanks.
Click to expand...
Click to collapse
yes unpack the folder of the dialer and go through and manually change each and every part of the dialer using your favourite image editor. Repackage it up and wait for the adulation of the masses, or more likely someone to start moaning at you because you haven't done it exactly as they want you to... ;p
you mean the folder on the ppc itself or the cab provider ? ...
i don't mind doing the photoshop work if i have the jpg/gif/etc ... but i still need someone to package it into a cab ... as i don't know how
I too would like to know if there's a simpler way to do this.
I'm happy to edit all the files myself in photoshop, but...
When I extract the cab file i recieve alot of files with numerical extensions.
Fine and dandy, i've gone through a few of them and changed the extensions so that they are jpg/png etc just so i can view what they are.
Can anyone with previous experience of editing cab files like this write a simple howto, i.e. how to know which files are which and what format they should be saved in jpg/png/bmp/ico etc.
i saw from the _setup.xml file that all the filename are mentioned inside but was wondering if the marker of this cab can release the original package before cab-ing so that I can photoshop all the image file individual before they cab it again ...
THJahar said:
I too would like to know if there's a simpler way to do this.
I'm happy to edit all the files myself in photoshop, but...
When I extract the cab file i recieve alot of files with numerical extensions.
Fine and dandy, i've gone through a few of them and changed the extensions so that they are jpg/png etc just so i can view what they are.
Can anyone with previous experience of editing cab files like this write a simple howto, i.e. how to know which files are which and what format they should be saved in jpg/png/bmp/ico etc.
Click to expand...
Click to collapse
It sounds like you didn't use a decent program to extract the cabs...
Try http://www.codeppc.com/telechargements/msceinf/msceinf.htm instead
oh and if you want some background reading ....
http://www.cabextract.org.uk/wince_cab_format/
fards said:
It sounds like you didn't use a decent program to extract the cabs...
Try http://www.codeppc.com/telechargements/msceinf/msceinf.htm instead
oh and if you want some background reading ....
http://www.cabextract.org.uk/wince_cab_format/
Click to expand...
Click to collapse
wow ... this make it so much simpler ...
but i see most of the image files are already inside, just got to switch the white image to black and vice-verse ...
hotiron07 said:
wow ... this make it so much simpler ...
but i see most of the image files are already inside, just got to switch the white image to black and vice-verse ...
Click to expand...
Click to collapse
Give it ago, I think the pink images need to stay pink though.
I can cab it up if you need to but there are some free cabmakers around..
They aren't hard to use, the main problem I've found is giving them enough permissions to overwrite files..
this one is supposed to be okay, but I haven't tried it.
http://www.aperitto.com/content/category/23/226/lang,en/ LOL, okay I have tried it now, it's working under WINE on my ubuntru machine
Wince cabmanager is pretty nice as well, but it costs $99, the demo does 15 cabs I think..
hotiron07 said:
wow ... this make it so much simpler ...
but i see most of the image files are already inside, just got to switch the white image to black and vice-verse ...
Click to expand...
Click to collapse
If you do not want to pay for a cab maker to rebuild a cab after you change an image, you can do this by following these steps :
Run MSCEInf. Open the Cab you want to modify (or the TSK which are also Cabs) with the first button.
Make sure that the 9th button is not with red cross. Else click on it. This make sure that extraction preserves Folders names.
Click on the 7th button to extract all files.
Select or create a folder for the extraction.
Extraction is done !
Modify the file you want in the folder or subfolder without changing its name.
Put at the root of the folder you selected or created the Microsoft program (free) CABWIZ. (Do a G....E search)
Open a Dos Windows in the folder (CMD...).
Msceinf has rebuilt the Inf File a the root of your folder so you can do in CMD mode : Cabwiz "name of the inf file".
And your new CAB is at the root of your folder.
Easy, but not really automatic, nevertheless cheaper than with WinCE...
It would be SO cool if someone made a black Blackstone dialer, especially for black Xperia X1s.
I REALLY like the "slide to answer or hangup" function of the blackstone dailer, rather than just the "push to answer" version on the stock Xperia ROM/firmware.
It would be SO cool if someone made a black Blackstone dialer, especially for black Xperia X1s.
I REALLY like the "slide to answer or hangup" function of the blackstone dailer, rather than just the "push to answer" version on the stock Xperia ROM/firmware.
BenThon said:
If you do not want to pay for a cab maker to rebuild a cab after you change an image, you can do this by following these steps :
Run MSCEInf. Open the Cab you want to modify (or the TSK which are also Cabs) with the first button.
Make sure that the 9th button is not with red cross. Else click on it. This make sure that extraction preserves Folders names.
Click on the 7th button to extract all files.
Select or create a folder for the extraction.
Extraction is done !
Modify the file you want in the folder or subfolder without changing its name.
Put at the root of the folder you selected or created the Microsoft program (free) CABWIZ. (Do a G....E search)
Open a Dos Windows in the folder (CMD...).
Msceinf has rebuilt the Inf File a the root of your folder so you can do in CMD mode : Cabwiz "name of the inf file".
And your new CAB is at the root of your folder.
Easy, but not really automatic, nevertheless cheaper than with WinCE...
Click to expand...
Click to collapse
Nice one Benoit,
Nothing beats MSCEInf for extraction
That aperitto one looks pretty neat for all inclusive building including reg editing etc.. damn site better than wince cabmaker and is free (for non commercial), so far so good..
I have installed the blackstone dialler by itje its cool but i thought it was this big digit one from blackstone modded for the X1.
Ive tried to download the big digit one from Blackstone but get no dl link by email, I have big sausage fingers and keep making mistakes with the default size touch dialler on the X1 and need a bigger digit keyset to aim my stubby fingers at while making calls.
Is there a big digit dialler available yet for the X1?.
Edit,: Just found this, a nice touch on the dialler by itje is the bluetooth headset icon that when connected changes from the default bt icon to a headset !
Hey people,
Many people were pm'ing me n asking me to write tutorials on how to edit manila files n write lua.
As its a very less known topic im one of the few people who knows how to write it and edit it.
I will try to explain the basics first n then the advanced stuff
WHAT WE DO
---
To be frank
manila editing is complicated.Not cause its hard but cause it need a lot of imagination
UnLike other languages that uses graphics like flash or vb or whatever lua and manila editing DOES NOT give you a visual workspace
You have to image what you write in real time and so it needs a lot of trial /error
THE BASICS
What we need
1>m9editor
the files we want to work on
1>As the basics i would like to explain how the background for all tabs mod was made
1.we have a file called 5c9aa261_manila.
for me this is the most important file that a developer needs
in manila this is a file that controls backgrounds
1>For example it runs on every tab and executes its functions on every tab
It is the shadow of tf3d
So anything that you want in the background in every tab or u want to be seen in every tab u put here
So by common sense the slider and the background are in this file
Now what we do for the bgfor all mod
STEP 1
1>Make a png file size 512 X 512
Manila cant take a image of any size.Therea re fixed sizes.i personally always use the size 512 X 512
So now we have a image named lets say sample.png
STEP 2
copy the file 5c9aa261_manila from the windoes folder and open it in m9editor
doubl click it
NOw the hard part
the structure of a manila file was something that took me loads of thinking to figure out
a basic structure
Group (named whatever)
--FIle in group(top most layer)--this is what is seen right on top
--File in group(second layer)--this is what is seen underneath the upper file
and so on a and so forth
LUA
lua files are action script that are recognised by the tf3d
usually lua files are either of two types
1>binaries(damn its just a name nothing more)
using the search button you can search for "binary"
click on it and you will see code in it underneath
2>files that we ad..they always end in .lua ..so using search search for ".lua" and you will find it
Lua is scanned through by tf3d when u start it the first time
lua is usually at the top of the file
so for example lets write a little lua
Code:
money=function()
rotastrainsdonations=whatpeopledonated
if rotastrainsdonations>200$ then
title.String="rotastrainsrich"
else
title.String="need smore donations"
end
end
slider.onPress:money
this is seen by tf3d
whenever you will press the slider this function will be called
and it will display what the function does!!
So when u move around in the file you will see groups and files in them..
if you understand this much its enough to make whatever the hell u want
ok now getting back to what we want to do
Step 3
Searching for the existing background
images are always .qtc files
So search for ".qtc"
you will come to a file called "backgroundlevel1..blahblahblah.qtc"
now that we found it we need to place the file we want on top of it..so thats its seen in right on top and in every tab
so how to make a file that we want?heres secret no1
1>copy any qtc file thats existing by right clicking its entry ..for example the file now is "backgroundlevel1..blahblahblah.qtc"
right click copy
now right click on the entry again
click paste below
so now we have two entries of the same name
Group
--backgroundlevel1..blahblahblah.qtc
--backgroundlevel1..blahblahblah.qtc
change the top entries name
---change this name to whatever you want--for example firstbg
so now we have two entries
--firstbg.qtc
--backgroundlevel1..blahblahblah.qtc
now click ok
move your mouse over the entry
a small popup will appear
with a name like gftfgrh455_manila
thats the name of your file
Write it down somewhere
Click save
owerwrite
Step 4
now we need a qtc file to put ur image in
just take any _manila file from the windeos foler which is a image file
For example the file that i have used in my panoramic background mod
i will attach that here
paste it in the same place as the 5c9aa261_manila file
open it in m9editor
right click it
save as png
open the png file
paste your image in
save
open m9editor
right click the qtc file
load from png
rename the file to what we got earlier "gftfgrh455_manila"
done
Now paste both these files in ur widows folder
and walla
bgforall tabs in a second
This is a basic thing to do
Next step will be to integrate images with lua..
!!
Cheers
Rotastrain
Thank you, thank you!
Awesome... exactly what I was looking for! Please, do go on....
xoxo Maureen
thats a great idea!
you are tha man!
This is very nice... I can not wait for the followup. image editing is pretty nice but I am having more trouble with decompiling the lua files. Also is there an easy way to break out the scripts and files into there directory structure? so that we can find all the internet tab items in one folder and all the common in another? I tried a few of the lua kitchens that I have seen around but most of them seem to crash when I try to use them on the 2.5 manila files. is there a difference?
Thanks for this. It is nice to see someone sharing there knowledge and expertise.
SoBBie
For those that have successfully created Widgets for WM 6.5, I need a little assistance.
I followed this guide (http://www.mobilitydigest.com/how-to-make-a-wm-65-widget/) and tried to create a couple of widgets. In fact, I first tried to just edit the config.xml and widget.htm files for a couple of the widgets already created to use different urls. In all cases I get an error in widget manifest. Installing the widgets they created works (I know I have widgets on my 6.5 ROM). I suspect that the issue is either saving the file in notepad (this seems unlikely) or the creation of the .wgt file. I tried zipping the files with both Windows Vista compression and 7 Zip. Neither allowed for the widget to install. I am not zipping with a folder in the compressed file, just the three files from the guide. Has anyone else had this problem? What am I missing?
did you compress the file, and change the extension from ".zip" to ".wgt"
?
me
I am also having problems i get an error message. http://www.fuzemobility.com/how-to-make-a-wm-65-widget/
post your files. it could be an error in the xml.
PearlMikeJam said:
For those that have successfully created Widgets for WM 6.5, I need a little assistance.
I followed this guide (http://www.mobilitydigest.com/how-to-make-a-wm-65-widget/) and tried to create a couple of widgets. In fact, I first tried to just edit the config.xml and widget.htm files for a couple of the widgets already created to use different urls. In all cases I get an error in widget manifest. Installing the widgets they created works (I know I have widgets on my 6.5 ROM). I suspect that the issue is either saving the file in notepad (this seems unlikely) or the creation of the .wgt file. I tried zipping the files with both Windows Vista compression and 7 Zip. Neither allowed for the widget to install. I am not zipping with a folder in the compressed file, just the three files from the guide. Has anyone else had this problem? What am I missing?
Click to expand...
Click to collapse
I am also having the same problem, xml below. If I rename-unzip-rezip-rename an existing widget it will install, the minute I try and make any changes to the config.xml or widget.htm it will not install returning the error "Sorry, this widget is not compatible with this device" I have tried editing the files with notepad and also VS2005, and have tried windows 7 zip, and winrar, any help would be appriciated.
XML from config.xml
<?xml version="1.0" encoding="utf-8" ?>
<widget version="1.0"
xmlns="http://www.w3.org/ns/widgets"
id="">
<name>Howell</name>
<content src="widget.htm" type="text/html" />
<access network="true" />
<icon src="icon.png"/>
<description>
Trial Widget test
http://howellassociates.co.uk
</description>
</widget>
Widget.htm
<html>
<head>
<title>howell</title>
</head>
<body bgcolor="#000000">
<iframe src="http://howellassociates.co.uk" width="100%" height="100%" style="background-color: white;">
<p>An error has occured.</p>
</iframe>
</body>
</html>
Here is an example of one of my widgets that do not work. I took the ESPN Widget from this link (http://www.fuzemobility.com/wm-65-widget-mania/) and just changed the url to be the iphone ESPN page since that is more finger friendly. It will not install, although the original ESPN widget would installed (I tried mine first, so I am sure there was not a conflict of having two of the same widgets).
I did all my editing in Notepad and compressed using the basic Vista compress/zip feature in explorer.
Thanks for the help.
The zip file has the xml, htm and png file, along with the wgt file I created that will not install
@pearlmikejam
ther error is in the xml, more specifically, the url to espn's site in the description.
Output:
"A semi colon character was expected. Error processing resource 'file:///C:/Users/hrhnick/Desktop/config.xml'. Line 12, Pos...
http://m.espn.go.com/wireless/?w=18iu5&e=AWA&iphone="
try removing the link, or shortening it to the the slash right after the wireless. and you should be good!
@avengerpenguin
hmmmmm... i couldnt find anything wrong. it may be the way your packaging and renaming. You did include an icon file too?
also, have you installed 3rd party widgets before? you may need to enable them on your phone with themuzz's cab.
hrhnick said:
@avengerpenguin
hmmmmm... i couldnt find anything wrong. it may be the way your packaging and renaming. You did include an icon file too?
also, have you installed 3rd party widgets before? you may need to enable them on your phone with themuzz's cab.
Click to expand...
Click to collapse
I have successfully installed widgets using themuzz's cab hence my confusion. I used the original icon from the widget I butchered to test this on, but left it as is to avoid changing to many things at once, I will have a look at how I re-pack the files, but this doesnt pose a problem unless I alter something within config.xml or widget.htm
I will continue my fault finding and try and report back later.
hrhnick said:
@pearlmikejam
ther error is in the xml, more specifically, the url to espn's site in the description.
Output:
"A semi colon character was expected. Error processing resource 'file:///C:/Users/hrhnick/Desktop/config.xml'. Line 12, Pos...
http://m.espn.go.com/wireless/?w=18iu5&e=AWA&iphone="
try removing the link, or shortening it to the the slash right after the wireless. and you should be good!
Click to expand...
Click to collapse
Thanks for the reply. I did some experimenting and was able to get this to install wihout a URL in the config.XML file. It does not seem to serve any purpose. Any idea what the parameters are for the urls? Is there a character limit for descriptions?
There's no character limit but some pages simply don't load right. It's a pain. Like FaceBook would not let use choose between the full version and mobile - regardless of the site it decided for us. To test widgets you can try this though: http://widgetemulator.codeplex.com/
PearlMikeJam said:
Thanks for the reply. I did some experimenting and was able to get this to install wihout a URL in the config.XML file. It does not seem to serve any purpose. Any idea what the parameters are for the urls? Is there a character limit for descriptions?
Click to expand...
Click to collapse
I think the url in the config file is purely for the description when installing, but I may be wrong I dont believe that it has any real purpose.
fixed, widget not intended for this device problem
On another note I have solved my problem with the widgets not installing and returning the error message about not being intended for this device.
I appeared to have been making a school boy error when packaging my config.xml,icon, and widget.htm files, I was foolishly "zipping" the folder containing my files rather than selecting the 3 files and sending them to a compressed folder.
For anyone else making this error unless you zip the files directly it causes the config.xml file to not be in the root folder.
Thanks to all those who tried to help.
Thanks AvengerPenguin, you identified the problem I was having, duhh!
Anyway, in celebration, here is my first widget - Ninjawords. It just hyperlinks to the ninjawords.com site for quick dictionary lookups, but a useful little widget for me, and non of that Apple Censorship fluff.
Oh yes, you'll have to download and unzip the wgt as xda-dev's won't let me post wgt files.
Trying to add more smileys. I added the new ones to the names.txt in the windows directory and the smiley directory of the program folder. also added the new bmp image and mask to these directories as well. still no joy. any one have a solution for this.
This thread is 2 years old, and I'm replying to it. Yeah I know, but I needed such info, I came across this post, but there was no answer, so I decided to post an answer in case anyone needed it in the future.
Well, there's a folder called "smiles" in the vito sms-chat installation dir. And there, there's a file called "names.txt" as Exodusoffg mentioned. And besides that there's a folder called "bin". And this is how you add a new smiley:
open names.txt using a text editor and add a new line like this:
[NEW_SMILEY_NAME][TAB][REPRESENTING_STRINGS]
ex.
lol :lol =))
this means that if sms-chat encounters ":lol" or "=))" it shows the picture.
to define a picture for this smiley, you should put it in the "bin" folder where:
the filename of image should exactly as [NEW_SMILEY_NAME]. and there should be a mask image called "[NEW_SMILEY_NAME]_masked.bmp" too.
suggestion: edit one of the existing images in the bin folder.
I've tested this and it worked.
PS. If you've done all I've said EXACTLY, and it didn't work, then there's two possibilities:
1.The image you're using is invalid, try matching it's format to one of the existing images in the bin folder
2.we don't have the same version of SMS-Chat(mine: 1.25)
Thanks for sharing - I don't use it, but I like that you take care to share what you found!
I just added a new class to one of my apps which I copy and pasted from another one (which worked fine) and I used the same xml layout file (but I changed the package names and such). But now NONE of the objects from it (e.g. buttons) are being recognized and eclipse keeps underlining all of them in my code with error messages. I tried re-saving it and cleaning the project but nothing works. Any ideas????
How did your change the package name? It doesn't work just to type over it in the source file. In package explorer, under the src folder, does it show under the correct package name? If not right click on the source file name in project explorer and select refractor, rename.
________________________________
Unrevoked forever
SkyRaider Sense 3.5
Radio 2.15.00.09.01
thanks but I figured it out. I forgot to transfer over my background image so it wouldn't save the xml properly (and I wasn't paying attention), causing the button objects to be "ignored"