[SOLVED]Draw9patch not working all of a sudden? - Android Themes

hi im using ubuntu linux 9.10 karmic and i just noticed that for some reason my draw9patch tool is not working...i tried to launch from terminal and it gave this error that said something about:
/usr/share/themes/Human/gtk-2.0/gtk.rc:51 invalid token
it worked last time i used it, now all of a sudden its on the fritz...i tried a system restart and still not working, the window pops up but its just blank white window, doesnt do anything...anybody got any ideas?
-BMFC

Re: Draw9patch not working all of a sudden?
Mines stopped working also when I switched themes on Karmic.
Sent from my T-Mobile G1 using the XDA mobile application powered by Tapatalk

thats funny thats what i thought it was telling me and i dont know why that would have anything to do with draw9patch. the only thing i can think of is that i changed the color of the input boxes from white to grey (easier on the eyes) and that is the only thing ive changed since it worked last. maybe the draw9patch cant handle any other color b/g but white? if this is the case then i need to file a bug report bc i dont like having everything white it kills my eyes...ill see what i can find out about this...thanks for your input...
EDIT: i changed the input box color back to white and nothing changed, still not working. i updated tools thru SDK manager and still same result. must be something else. the error code i received told me the error was on line 51 of gtk.rc file. that line says:
Code:
fg[NORMAL] = @fg_color
and that doesnt tell me anything bc i still have no clue why my theme is messing with draw9patch.
-BMFC

bmfc187 said:
thats funny thats what i thought it was telling me and i dont know why that would have anything to do with draw9patch. the only thing i can think of is that i changed the color of the input boxes from white to grey (easier on the eyes) and that is the only thing ive changed since it worked last. maybe the draw9patch cant handle any other color b/g but white? if this is the case then i need to file a bug report bc i dont like having everything white it kills my eyes...ill see what i can find out about this...thanks for your input...
EDIT: i changed the input box color back to white and nothing changed, still not working. i updated tools thru SDK manager and still same result. must be something else. the error code i received told me the error was on line 51 of gtk.rc file. that line says:
Code:
fg[NORMAL] = @fg_color
and that doesnt tell me anything bc i still have no clue why my theme is messing with draw9patch.
-BMFC
Click to expand...
Click to collapse
havnt seen this error myself or tried this, but here an idea for the solution.
if im understanding the error correctly, its saying that it doesnt know what @fg_color is, so why do you try chnaging that to an absolute value (ie. #FFFFFF) and see what happens?
Just my 2c
Eliot

ok, first off the actual error says:
Code:
Error: lexical error or unexpected token, expected valid token.
so on line 9 of gtkrc those colors are defined:
Code:
gtk_color_scheme = "fg_color:#101010\nbg_color:#E6DDD5\nbase_color:#FFF\ntext_color:#1A1A1A\nselected_bg_color:#8F5F4A\nselected_fg_color:#FFF\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000"
i notice "fg_color", unlike the rest, is NOT preceded by a "\n" i changed this and it didnt seem to help but im going to restart and see if that helps...if not ill prolly change it back till i can figure it out. back after the restart....
EDIT: Okay that did nothing as far as i can tell. any other ideas?
EDIT: found this thread at ubuntu forums...
i tried switching back to 1.6 and lo and behold draw9patch worked fine...switched back to 1.5 again and draw9patch no longer worked...
its funny how google made it so that the build system will only run on jvm 1.5, but every other android tool wont run right on 1.5 so you keep having to switch back and forth between 1.5 and 1.6...
OK so the solution to this problem seems to be if your draw9patch doesnt work, then you need to switch your jvm by doing
Code:
sudo update-java-alternatives -s java-6-sun
hope this helps for anyone else who has this problem...
-BMFC

Related

Text Message Times

When ever I send a text message, I get the correct time I sent it, but when I receive a text message the time of when I received is completely off. I know this is wrong because I tested it with my friends phone. Anyone else have this problem or knows how to fix it thanks.
Try to do a registry edit.
Go to HKEY_LOCAL_MACHINE\SOFTWARE\OEM\PhoneSetting\
Then add a dword key called "TrustTimeZoneField" and give it a dword value of 0
Then soft reset.
See if that helps.
Sorry, but I'm completely new at this. How would I even go to HKEY_LOCAL_MACHINE? Is this through the xperia itself or through the computer?
You'll need to install a program that can edit your phone's registry.
Something like this:
http://www.phm.lu/products/PocketPC/RegEdit/
After you have it, you should backup your registry in case and be careful of changes you make since you could end up needing to hard reset. But really, you just navigate to where I posted and then create the new path. This should fix the SMS times for future messages.
I followed your instructions, but my problem still persists. Anything else I could do?
When you go back into the registry, do you see the new entry made (with the exact name and value)? Did you soft reset?
Hi, i had the exact same issue, the phone had changed time zome to +3 instead of +2 (probably igo8 messed it) and i kept receiving sms with wrong time..!! check it that it is correct..!
was pointed to this thread since I opened another with the same issue. I downloaded PHMRegEdit and tried to install it. It went through okay, but doesn't seem to want to install onto my phone itself. Had problems installing other programs through the same thing. Only way I've had any luck installing programs was with moving CAB files over and installing them directly on my phone.
So, without being able to change my registry, I did try to see what would happen with just changing the time zone. Tried a couple different ones and if I went to -1 instead of -5 (eastern Canada here) then it showed the right time. But as soon as I went back to -5 it changed all the inbound times again. Really weird since this is only on inbound messages and not outbound as well.
got it. Had to use a different program, but it worked.
what different program did you use? Because I'm still having trouble with my inbound messages.
-Kin said:
what different program did you use? Because I'm still having trouble with my inbound messages.
Click to expand...
Click to collapse
CeRegEdit. Works from your computer. You plug in your phone and it can grab the registry from your phone, edit it, save it, and soft reset it, all withing Windows on your computer. Nice little program.
This is my value:
Value name:
TrustTimeZoneField
Value data:
0
Base:
Decimal
Value Type:
REG_DWORD
Did I do something wrong?
yea, that's what I have. After I added it then my texting time was fixed. Though I don't know why this registry isn't in the ROMs to begin with.
HKEY_LOCAL_MACHINE\SOFTWARE\OEM\PhoneSetting\
and you add it right there. I know there are other folders to expand, but you don't put it in the other folders, you select PhoneSettings on the left hand side, then on the right you'll see all the registry lines like
Enable3GLongNamePrefix
Last_SMS_Tick
LongNamePrefix
PhoneSettingExt-DLL
etc, etc
My TrustTimeZoneField is the last one on that list with the REG_DWORD of 0
i googled and found bestRegEdit version 1.00 as what is writen in the about of the program www.smartphoneware.com search there its a trial but it will solve ur problem....i have the time fixed but there is 6 to 10 min pluse wish i helped
Thanks everyone, for some reason the inbound text message times are now correct. Turns out it now works because I had to remove my battery to change the sim card, then when I turned my phone on, everything has been corrected.

Blackstone device emulator

Hello all,
i have searched quite a bit for an emulator which mimics the Blackstone on your PC.
I am new to Rom cooking (1 day to be precise) and dont want to risk bricking my own so i wondered if there was something of an emulator which i can use to test Roms.
thanks in advance,
- Mega
same is my case...
No idea if this will do what you want, I'm not entirely too sure how this works.
Windows CE 5.0 Device Emulator
http://www.microsoft.com/downloadS/...12-ca31-4be9-a3bf-b9bf4f64ce72&displaylang=en
WM 6.5 Emulator is here:
http://www.microsoft.com/downloads/...1d-97a8-4f80-bc6a-ae010e085a6e&displayLang=en
But I've no idea how to run a blackstone's ROM on MS's emulator.
I'm trying to do same thing that you want do.
Was checking about it a year ago.
Got no answers
Seems its not possible at the moment.
I created an emulator (at least in looks, I don't think you can do a hardware emulator) for my Touch Pro and used it in Visual Studio 2005 Pro when I played with development.
Basically you have three images:
1. A skin (the chasis of the phone, I found a high res image and sized it properly in Photoshop).
2. A layer of what the skin looks like with all buttons pressed (make the Talk button look like it lights up or something).
3. A mask layer with different colors identifying the buttons (Green = Talk, Red = End, etc.).
In an XML file, you'll define the hex codes for the colors and assign an action. For example, if you used green for the Talk button on the mask image, you would enter something like "00FF00 = Talk", so when the Talk button is pressed in the emulator, the "pressed button image" shows the Talk button being "pressed", and the mask image tells the emulator to bring up the dialer, since green (00FF00) = Talk in this case. I've got VS 2008 Pro now (I tinker, not really much of a developer), so I'm not sure how you do it in the standalone emulator. I'd imagine it's a similar process.
-EDIT- I just read your post again, and I'm not sure how you would change the ROM that the emulator reads, since it reads the MS issued ROM when it boots. Maybe have to compile it as a .BIN file, once again, not sure on that.
visual studio includes one (might be useful if you are considering some developing down the line)
Yea, sorry if I made that unclear to Meganut and the others who were asking, VS includes the emulator in the development environment, so all I had to do was make the Touch Pro skin. I'll work on a Blackstone skin and post the files so you guys can hopefully use it as well in the standalone emulator...I just ordered a T8285 today, so I may want to start playing again, so my gain is your gain. I'll try to get it done tomorrow at work.
WOO HOO...I'M GETTING A TOUCH HD!!
GSXR750K2 said:
Yea, sorry if I made that unclear to Meganut and the others who were asking, VS includes the emulator in the development environment, so all I had to do was make the Touch Pro skin. I'll work on a Blackstone skin and post the files so you guys can hopefully use it as well in the standalone emulator...I just ordered a T8285 today, so I may want to start playing again, so my gain is your gain. I'll try to get it done tomorrow at work.
WOO HOO...I'M GETTING A TOUCH HD!!
Click to expand...
Click to collapse
An HD skin for my emulator would be awesome!
Sorry it took so long. Here is the emulator skin for the Touch HD. You can examine the XML file and PNG images to get a feel for what I was saying in my previous post. I've named the files so that you can drop them in and overwrite the default 800x480 emulator in the 6.1.4 SDK Refresh (the default looks pretty pathetic anyway). If you are insistent on keeping it, just rename the files. Reason for doing it this way is I hate screwing with making a new emulator, and if I want to change images (6, 6.1.4, 6.5), I can just move these four files around I have the same skin using a different ROM.
--EDIT--
I corrected the Home button and uploaded the changes below (I changed the mask file also to make it about four times smaller than it was), but for some reason the "Back" button will not respond, although I've tried multiple masks and hex codes to make at least do something. I'll continue to dig in to the Back button issue, I won't have much time this weekend though.
-EDIT-
Scratch what I said here if you already tried it. Like I said previously, I use VS2008 which comes ready to run, so I'm not sure what is needed to get this to work in the standalone emulator. Maybe some of the guys using the emulator can shed some light?
As some might have mentioned above, to make the MS emulator (or any for that matter) run a different ROM is impossible at the moment.
dwizzy130
dwizzy made a good point, the ROM images used in the Emulator and Visual Studio are as Microsoft created them before any vendor touches them. You can "install" things on the emulator and it will retain everything after soft-resetting, just as a physical device will, but chefs won't be able to create their ROMs in a file useable by the Device Emulator. Maybe some of the brilliant people on here can see if they can tear the BIN file apart...
GSXR750K2 said:
Sorry it took so long. Here is the emulator skin for the Touch HD. You can examine the XML file and PNG images to get a feel for what I was saying in my previous post. I've named the files so that you can drop them in and overwrite the default 800x480 emulator in the 6.1.4 SDK Refresh (the default looks pretty pathetic anyway). If you are insistent on keeping it, just rename the files. Reason for doing it this way is I hate screwing with making a new emulator, and if I want to change images (6, 6.1.4, 6.5), I can just move these four files around I have the same skin using a different ROM.
--EDIT--
Just found that the "Home" and "Back" buttons aren't working, I left them off of the XML definitions. I'll leave the "rough draft" version up here for now so you guys can get a feel for it. Depending on whether you've installed Visual Studio or the Standalone Emulator, you'll have different paths to put these files, so make a note of where you install it.
Click to expand...
Click to collapse
Thanks for that. I created my own, but yours look far better
Just one thing: if one would like to revert to the original skin for whatever reason, it might be better to rename the files to e.g. Blackstone.xml etc.
Any chance to get the home and back buttons working? I'll check if i can find out on my own, but seems you're more experienced with that.
Thanks, glad you like it. I'll check on the Home and Back buttons today.
GSXR750K2 said:
Thanks, glad you like it. I'll check on the Home and Back buttons today.
Click to expand...
Click to collapse
That would be great, thanks a lot.
Meanwhile, i found the buttons, but would be great if you could check/confirm. I did check the back button with AEbutton and it gave me the same code on both physical device and emulator. Not sure about the home though.
<button
toolTip="Home"
onClick="0x3B"
mappingColor="0xE6E6E6"
/>
<button
toolTip="Back"
onClick="0x5C"
mappingColor="0xFFFF4B"
/>
The updated skin has been uploaded (it is at the bottom of page 1).
6Fg8, I had to use 0x3E for the "Home" button (which is the same as End), the 0x3B works as the Left Soft Key. I've made several attempts to get the back button to do something...anything, no matter what mask I use or hex command I assign to it, it just sits there. Since you have some experience with the emulator files, feel free to go in and play with the XML/PNG files and see if you can get it to respond and if you figure out what is going on with it, let me know...my weekend is sort of tied up, so I may not have much time to dig into it over the next couple of days. -EDIT- Maybe you can give me some pointer in this aspect, I've found it doesn't seem to matter if I use "onClick" or "onPressAndHold" if I only assign one hex command to it, as no other advanced menu options are assigned. Have you found that it makes a difference?
GSXR750K2 said:
The updated skin has been uploaded (it is at the bottom of page 1).
6Fg8, I had to use 0x3E for the "Home" button (which is the same as End), the 0x3B works as the Left Soft Key. I've made several attempts to get the back button to do something...anything, no matter what mask I use or hex command I assign to it, it just sits there. Since you have some experience with the emulator files, feel free to go in and play with the XML/PNG files and see if you can get it to respond and if you figure out what is going on with it, let me know...my weekend is sort of tied up, so I may not have much time to dig into it over the next couple of days. -EDIT- Maybe you can give me some pointer in this aspect, I've found it doesn't seem to matter if I use "onClick" or "onPressAndHold" if I only assign one hex command to it, as no other advanced menu options are assigned. Have you found that it makes a difference?
Click to expand...
Click to collapse
Thanks for the skin update.
I tested the back button with AEbutton, see here. This is a great piece of software and lets you redefine keys including custom keys, and you can see what code is sent (at least for the custom keys added). Just installed it on emulator, added a user defined key for the back button and an action ("show actions menu"), and presto - works. Compared with the real device the keycode is identical, so i assume the definition is fine. Unfortunately, the home button cant be captured on the PDA for comparison.
The difference between onClick and onPressAndHold is only when the event is fired. onClick fires on button release, onPressAndHold fires on button press and repeats sending codes. So if the software which receives the key doesnt care, there is no difference.
work great, thanks for this and the updated version!
GSXR750K2 said:
The updated skin has been uploaded (it is at the bottom of page 1).
6Fg8, I had to use 0x3E for the "Home" button (which is the same as End), the 0x3B works as the Left Soft Key. I've made several attempts to get the back button to do something...anything, no matter what mask I use or hex command I assign to it, it just sits there. Since you have some experience with the emulator files, feel free to go in and play with the XML/PNG files and see if you can get it to respond and if you figure out what is going on with it, let me know...my weekend is sort of tied up, so I may not have much time to dig into it over the next couple of days. -EDIT- Maybe you can give me some pointer in this aspect, I've found it doesn't seem to matter if I use "onClick" or "onPressAndHold" if I only assign one hex command to it, as no other advanced menu options are assigned. Have you found that it makes a difference?
Click to expand...
Click to collapse
How to use skin in designer window?
thanks for the skin it looks great. I am new to Visual Studio and so wondered if you could help with two problems I have relating to using the HD skin.
firstly, I get to see it in the emulator but it is larger than my screen and it will not scroll up. can this be overcome?
Second, how do I get to use the skin in the Designer Window so I can see what the screen will be like when placing objects on it?
I've tried many ways but to no avail so hope you can help me.
Thanks
Gary

Swype for andrioid is out

It's out alright as a demo but its only android devices with wvga screens (Droid/milestone) you can see it on androidspin
i was wondering if it would be possible to port it to the g1 it couldn't be more than a few classes to change but i don't know.
Try ShapeWriter Works fine on my G1
http://www.shapewriter.com/android.html
Already have shapewriter installed, it's pretty nice but i've read that swype was suppose to be better, so i wanted to give it a try.
I didn't know about shape writer.. I always used htc_ime or slidetype.. ill check it now thanks! But swype wouldn't be hard I don't think. Just changing key size to fit. I tried the swype trial on my g1 and it was a screen size error so idk.. maybe someone good with 9's? Idk if that's what it takes but maybe
no you wouldnt need to edit the keyboard itself if you look in the drawable folder theres keyboards for a vga res and the qvga its got to be just a setting somewhere in the files.
same with me , i tried to instal swype , installs great
just doesnt work , says wrong resolution
Jonno12345 said:
Try ShapeWriter Works fine on my G1
http://www.shapewriter.com/android.html
Click to expand...
Click to collapse
Same here, I've been using Shapewriter since it came out. I was one of the initial beta testers. =]
I'd like to try all the slide keyboards. I find ShapeWriter to be incredible. After learning it over a few days and perfecting it over a week or two I'm able to type nearly as fast as I do on a keyboard. If there is something better than ShapeWriter then I'm all for it.
swype
ive been talking to people about getting swype on g1 and mytouch, all we need is the source code.
if anyone has any ideas please let me know
tiger013 said:
ive been talking to people about getting swype on g1 and mytouch, all we need is the source code.
if anyone has any ideas please let me know
Click to expand...
Click to collapse
You'd have to ask the makers of swype... not sure how they would take it
really and honestly i don't think that we need the complete source code, theres a file in one of the folders (assets i think) with all the keyboards it contains some settings like the screen type and resolutions. I think that if someone could edit it to reflect the correct g1 settings and resign the package it would work, but don't quote me on it. but if someone would it would be great i tried but couldn't get it to sign correctly but it was my first.
There's a Swype built for Sapphire in the wild, and it almost even works. Might be made to work correctly with some additional work.
i downloaded swype, and got it installed ans works great but only on my AOSP 2.5.1, i downloaded super D 1.7 and cannot install, i says could not be installed on this phone, the file name i have is Signed-swyptest_2. ths was on androidspin for like 1 day and dissapeared.
rbaggio00 said:
i downloaded swype, and got it installed ans works great but only on my AOSP 2.5.1, i downloaded super D 1.7 and cannot install, i says could not be installed on this phone, the file name i have is Signed-swyptest_2. ths was on androidspin for like 1 day and dissapeared.
Click to expand...
Click to collapse
Check the other thread. I'm the one that made that file.

[Q] Changing Boot Animation

I decided to try and make a custom boot animation. after i finished creating my boot animation i followed the instructions from nookdevs to apply it to the nc, it still didnt work. I used adb shell and started the boot animation, it didnt start, but im not sure what the problem is because i did it with a premade one, it worked fine. plz help me. I have attached the file if you want to look at it and see if anything is wrong. One problem that may be causing it not to work is that the pictures may be too big, but im not sure. Plz help
I couldn't get it to work either. Hope someone chimes in to help.
Okay, I think I see the problem. You have part 1 set up in portrait mode and part 0 is set up in landscape mode. I could be wrong, but I think you can only do it in portrait mode. Which is 600x1024 images.
Another issue is your desc.txt which is supposed to be 3 lines. When I looked at yours it was all on 1 line. If it uses the EOL as suggested by Nookdevs, then that would be another issue.
thnx...ill try that. but about the landscape, the phiremod 6.1 or 6(i cant remember) boot animation was landscape. :/
k i did what you said. I changed the pictures to portrait mode, and changed the desc.txt to three lines. You can try but for me it still didnt work when i put it in. when i ran adb shell and typed startbootanim. It just came back to the homescreen.
Okay, I don't think I was making myself clear as I didn't notice any change. So I made the adjustments myself and this works.
I tried uploading it like six fricken times and XDA keeps timing out on a 22k file. So if you shoot me an PM here with your e-mail address I'll send it to you and like I said...tested and it works.

Mr. Personality Robot

Does anyone have one of these, and if so, how far have you gotten in building new personalities? I would love to be able to edit the text files to control the sprites, but don't know how. Last I heard several years ago android78 was working on an editor to do this, but has since disappeared. I know how to change the mp3's, and rebuild the .vivo file, that's not the hard part. Those dang text files are. I am not even sure what they are written in. To me it doesn't even resemble any languages I have come across. Anyone out there? This thing would be bad to the bone with completely new personalities since Wowwee gave up on it too soon!
I just picked one up @ goodwill and agree it would be super cool. Unfortunately, mine has no files on it at all (the drive is blank when I plug in the USB cable) so it stays at "loading" with the progress bar at 0 even with a fresh vivo file in there. Does yours load a personality? If so, do you mind letting me know if there are more files in there besides the vivo?
If I can get mine to work I bet I could get some of the dev's at work to figure out the text file.
Thanks.
The original file was called Max_Simon.vivo. If yours has no files, try getting the Mr. Personality software from the Wowwee website, and then the original file and push it back onto him via USB and the software. I looked and all I could see are the .vivo files. The .vivo files can easily be seen if you rename it to a .zip and extract it. Before loading though it needs to be changed back. That's how I was able to work with the .mp3 files, but it does take the software to push it back onto him and then go into settings to pick a personality to load. If it is the only personality it should load automatically if the file is original and not corrupted. If you need either of the files, let me know and I will post them for you. That would be awesome to get someone to take a look at these files and let us know what we need to do. I know there are a lot of people out there with these sitting in closets because of the great support they threw and it, not. It's up to us now!
acemartini said:
I just picked one up @ goodwill and agree it would be super cool. Unfortunately, mine has no files on it at all (the drive is blank when I plug in the USB cable) so it stays at "loading" with the progress bar at 0 even with a fresh vivo file in there. Does yours load a personality? If so, do you mind letting me know if there are more files in there besides the vivo?
If I can get mine to work I bet I could get some of the dev's at work to figure out the text file.
Thanks.
Click to expand...
Click to collapse
Holy crap, I thought I was the only one who had this issue! Mine's been down for nearly 5 years by now; I happened to shut Mr. P off in the middle of recording a voice memo, and when I turned him back on he had the exact same symptoms with the loading screen as you mentioned. Now I made a topic on Robocommunity shortly after but all that was suggested in that thread didn't work at all. I don't know if I was doing anything wrong but after all this time it still doesn't work. It really disappoints me because this is actually a really cool robot that I always wanted to load up with my own personalities... and then it conks out.
If anyone could help figure out how to get this guy working, I'd be really grateful.
I know this is an old thread, but would appreciate anybody leading me to the Mr Personality software and the default voices for Max and Simon, as wowwee no longer lists these on their site. Thanks!
I got one and connect to my pc.There are some files of Max and Simon.I try to find some more personality files online,but failed. Is there anyone have them?Thanks.my email is mrmm[email protected]

Categories

Resources