yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Brut.all:
@kadmos

Now I have problems understanding you ;-) But if you don't want to declare all images in sources, but in XMLs, then you could use XML arrays.

<resources>
<string-array name="planet_names">
<item>mercury</item>
<item>venus</item>
<item>earth</item>
<item>mars</item>
</string-array>

<integer-array name="planet_images">
<item>@array/mercury_images</item>
<item>@array/venus_images</item>
<item>@array/earth_images</item>
<item>@array/mars_images</item>
</integer-array>

<integer-array name="mercury_images">
<item>@drawable/mercury_0</item>
<item>@drawable/mercury_1</item>
<item>@drawable/mercury_2</item>
</integer-array>

<integer-array name="venus_images">
<item>@drawable/venus_0</item>
<item>@drawable/venus_1</item>
<item>@drawable/venus_2</item>
</integer-array>

<integer-array name="earth_images">
<item>@drawable/earth_0</item>
<item>@drawable/earth_1</item>
<item>@drawable/earth_2</item>
</integer-array>

<integer-array name="mars_images">
<item>@drawable/mars_0</item>
<item>@drawable/mars_1</item>
<item>@drawable/mars_2</item>
</integer-array>
</resources>

When user will open planet selector, you will iterate through contents of R.array.planet_names array, each item (planet) in this selector will have itemId set to array index. When user will click on something, you will get itemId of clicked item, then you will find array of its images as R.array.planet_images[itemId] (not exactly - it's conceptual example).

You will be able to add new images or even planets through XML editing.
[Android Software Development] kadmos:
as i posted earlier this was the idea that i had - i havent tried it yet because i wanted to get some feedback from you guys just to see if i was completely off base. so right now its coming down to what would make for the more memory efficient final product - declaring all these images as class array constants (which i already have working) or using xml and coding the operations for parsing, counting, filtering, assigning, etc?

again thank you guys for your time and help
[Android Software Development] Brut.all:
Do you mean parsing XMLs? My example above uses standard Android resources. You don't have to parse these XMLs, you will get them as arrays :-) And yes, it's super efficient, because they are compiled to easy-to-read form :-)
[Android Software Development] kadmos:
ok then im going to go ahead and try it

be back soon

i hope

:p
[HD2 General] ccbunny:
HTC and Microsoft are hinting at the upgradation of HTC HD2 with Windows 7. HTC HD2 Contract phones was running Windows 6.5 which will soon become obsolete The reason for the upgrade can also be the phone configuration because the Windows 7 mobile phone handsets come with just three keys- Start, Back and Search.

The Microsoft marketing man Greg Sullivan said, “Our fragmentation issue is primarily around screen resolutions and assuming a minimum CPU and storage. So it has been a little bit challenging because that choice, that flexibility, that freedom that people have to build any kind of device and use any kind of device : touch, non touch, keyboard, soft key, has required a little bit extra effort in some cases for developers to target applications that run across a wide array of devices”.

According to him they have worked very closely with HTC HD2 Contract to have hardware and software integration and that is a reason for the capacitive and multi touch support provided in the Windows phone. He also said, “We are going to continue the horizontal market, but work very closely with our hardware partner to provide more guidance on the platform so we do not have nine different display sizes that independent software vendors have to target...may be just two..

We are going to continue investing in the user experience, and the legacy pocket PC 1999 UI that still kind of shows up if you drill down pretty deep? That's another thing that's changed.”

Source: hxxp://xxx.ukpressreleases.co.uk/HTC-HD2-Contract-Deals-With-Windows-7~123.htm
[HD2 General] Paten:
I think this source is bogus.
[HD2 General] ccbunny:
U mean the UK press releases? Dunno.. I google it..
[HD2 General] lemonspeakers:
source is fake.
[HD2 General] Persuader X:
Change the first 2 "x" of the source by "t" and the other 3 "x" by "www", and you will be able to read the correct source page. Or simply search "HTC HD2 Contract Deals With Windows 7" in google, and click on the second result.

Best regards
[HD2 General] Archer:
Funny how the article source is a supplier of the phone, and the link goes directly to a sales page.

If you believe this, then I wish you luck with your WP7 HD2. It will probably tri-boot with Android and iPhone as well.

There's only 1 place that you'll get WP7 for your HD2, and you're on it.
[HD2 General] Moustafa217:
WORDDDD!!!
[HD2 General] djchubbs:
i must be one of the only ones whoe doesnt want WP7 on my HD2, i just dont like the look of it
[HD2 General] Archer:
Nah - I'm with you chubbs. Why on earth would I want the MS version of iPhone??? Personally, I think it looks gash!
[HD2 General] BearsLikeHats:
Me too, how can someone prefer some blue squares over sense?
[HD2 General] Shum97:
Exactly!! You took the words right outta my mouth..:)
[HD2 General] lonelykatana:
God dont you know blue squares or sooo in at the mo'?:p
[HD2 General] M3PH:
I with the anti WP7 guys. If i wanted a phone that costs me more money to run over it's life time that it's worth and only lets me do things with it that it wants me to do i would have an iphone already.
[HD2 General] Kalavere:
That did make me laugh. :D
[HD2 General] conantroutman:
@johnc I love the fact that you describe it as "gash", havent heard that in a while! Thanks, made me chuckle.
[Desire General] Tsjoklat:
Hello,

I am using mencoder to convert my video files to mp4. The command line I am using seems to work great. If subtitles are located in the same directory with the same name as the video file, then they are hardcoded into the video as well. My only problem is trying to find the right resolution and bitrate for the HTC Desire for best possible picture. Does anyone know what the optimal settings are for these two values?

#!/bin/bash

FILE="$1"
NOEXT=${FILE%\.*}

mencoder "$FILE" -o "$NOEXT".mp4 -sub "$NOEXT".srt -subcp cp1252 -utf8 -vf dsize=640:480:0,scale=-8:-8,harddup -oac faac -faacopts mpeg=4:object=2:raw:br=128 -of lavf -lavfopts format=mp4 -ovc x264 -x264encopts nocabac:level_idc=30:bframes=0:bitrate=800:threads=auto:turbo=1:global_header:subq=5:frameref=6:partitions=all:trellis=1:chroma_me:me=umh

From the example above, I am using 640x480 as the resolution and 800 as the bitrate. With these two values, the picture is not that bad and the file is pretty small. But, from what I have read, the HTC Desire should be able to perform with a resolution of 800x480. Unfortunately, the picture quality on the HTC Desire is terrible when I increase the resolution to 800x480. Should it not be able to handle this resolution? Is my bitrate just too slow for this higher resolution? Does anyone have the perfect combination of bitrate and resolution?
[Desire General] Rew64:
I use 640x480 (480p)
[Desire General] th3:
I can't link using this app on the phone but check my second to last post (about Super © in the MKV lip sync thread), it has many details on a similar discussion as well as some test encoded files.

The best resolution depends on the source file but, 800*450 16:9 works excellent since many of the higher quality vids come in this aspect ratio too. I don't change the aspect ratio of the vids unless extremely needed.

Bit-rate/quality is too relative for me to be absolute on, however, check the vids we encoded linked in that thread. The "highest, playable" visual quality seems to be near the 2.3 Mbps 25FPS zone but even 288 Kbps 15FPS settles fine for me, so what do I know. High bit-rate equals larger files being the major limitation as well as it meaning lower battery-life. Generally, the most used mobile HD settings lie in the 700-1000 Kbps range. A very good compromise in my opinion.

Lastly, it depends a lot on the video playback app you are using too. Some will also stretch one or both dimensions of the vids to full-screen without notifying or apply a level of zoom. Yxplayer, for instance, really kills the visual quality off.

-------------------------------------

- Sent via my HTC Desire -
[Desire General] lanxton:
640*480 @ 800 kbps seems about as good quality as I'm gonna get.
[Desire General] dunetails:
It should be able to handle 800x480, at least the Nexus One can. I found this guide for Handbrake that I want to try out for myself

http://www.frankie.bz/blog/tips-and-tricks/convert-video-nexus-one/

-----

Smart Adopter - UK based tech hints, tips, news and reviews

http://smartadopter.wordpress.com
[Desire General] lanxton:
I started to notice a slight lip sync problem with files encoded over 800 kbps. When I lower the bitrate to 700, I seem to get perfect sync every time. This seems to only be an issue with mp4 files (other supported video formats do not seem affected).
[Desire General] tommo123:
it can handle 800x'xxx'. i've used megui to encode x264 vids in an mp4 container and it plays em fine. only variable now is to try and lower the bitrate to see how low i can go with it before noticing a quality drop.
[Desire General] lanxton:
Adding the following line after the mencoder line will allow the mp4 file to be streamable in your apache web server:

MP4Box -inter 500 "$NOEXT".mp4

This way I can play all the movies I want w/o having to copy them ever on the phone when I am at home. Awesome.
[Desire General] sheka:
I tend to use

/usr/bin/mencoder -ovc x264 "$1" -o "$2".mp4 -of lavf -lavfopts format=mp4 -vf dsize=400:240:0,scale=0:0,expand=400:240:-1::::,harddup -sws 9 -x264encopts crf=24:force_cfr:bframes=0:nocabac:no8x8dct:global_header:bitrate=412 -oac faac -faacopts br=96:mpeg=4:object=2:raw -af volnorm=1 -channels 2 -srate 44100 -delay 0.3

produces very good output at a good size.

$1 = input file

$2 = output name with a .mp4 appended
[Nexus One Themes and Apps] TailsNeon556:
I like the cloud to device ability in FroYo .. But, im not a huge fan of Google Chrome

there's already a solution!

heres the link to the plugin

https://addons.mozilla.org/en-US/firefox/addon/161941/ <---- newer link (i uninstalled the previous one just to be sure it works first)

*I didnt make this plugin ... I found it by searching on Google*

tested and confirmed working

::MODS please move if this is in the wrong section or has already been posted::
[Nexus One Themes and Apps] dudebro:
I went to chrome from firefox to test chrome to phone.

this gives me a reason to go back to firefox.
[Nexus One Themes and Apps] Amritttt:
send to phone is on mozilla niceee:D:D:D:D:D:D:D:D:D
[Nexus One Themes and Apps] prophetjinn:
If you had the presumption that this may not be a development related post why'd you post it in development? lol. Making the mods work? (jk)

Nice find, i to am a fan of FF. =)
[Nexus One Themes and Apps] pvillasuso:
Thanks man ! it works ... :D
[Nexus One Themes and Apps] jdmoore81:
Re: [Plugin] Firefox to Phone

How about internet explorer

-------------------------------------

Sent via the XDA Tapatalk App
[Nexus One Themes and Apps] bastie87:
hi,

is there no option for entering die gmail-adress on the ff-extension?

because it does nothing when i hit the button :confused:
[Nexus One Themes and Apps] paratox:
does not work on my installation. nothing happens when clicking the button.

firefox 3.6.3 with noscript. chrometophone-android.apk on froyo N1 installed and device registered.
[Nexus One Themes and Apps] Paraglider1982:
Does it also work on 2.1 or only on 2.2?
[Nexus One Themes and Apps] AlphaDog_NL:
It is a new feature in Froyo, so 2.2 only
[Nexus One Themes and Apps] TailsNeon556:
chrome to phone and this plugin are only for 2.2 devices and im not sure if it works in all countries as of yet..
[Nexus One Themes and Apps] vibesnake:
Great.. it works on my Froyo 2.2
[Nexus One Themes and Apps] marmankites:
FANTASTIC

I hate chrome, never loads pages correctly for me
[Hero CDMA Q&A, Help & Troubleshooting] scirio:
I'm on Fresh Toast 2.1 (official eclair w/ fresh customizations)

When I plug in a USB cable to my phone from any computer, from any OS (OS X 10.5, 10.6 and Win XP/7) I don't get offered the option to mount as a drive.

I looked in the 'Connect to PC' settings and tried it with 'Ask Me' both checked and unchecked. I also tried to make Disk Drive mode the default and that didn't help either. The only way I can mount it the SD as a drive is by rebooting to Recovery and toggling MS.

What a pain! Any ideas?
[Hero CDMA Q&A, Help & Troubleshooting] dametzg:
Are you using the app. Autostarts? I had that exact same problem until I realized that I disabled PC Synchronization (using Autostarts) from starting up when the phone boots. Once I re-enabled it again it worked just fine.
[Hero CDMA Q&A, Help & Troubleshooting] SAlpIche:
check on the top left of the status bar, if you can see a triangle with charge only, then slide down the status bar and press on charge only... let us know if this works. Also make sure that debug is off, menu> settings> applications> Development
[Hero CDMA Q&A, Help & Troubleshooting] jerry43812:
Yeah, I'll bet what you did, dude, is set it to "Always use this option" when you plugged it in one time, maybe on purpose, maybe on accident, but who cares, that's probably what it is. Is that option even existing on certain roms? I just checked, mine doesnt say that. Worth a shot lol.
[Hero CDMA Q&A, Help & Troubleshooting] scirio:
Crap, I think you're right! Trying this now; i disabled everything. Will report back with results.

UPDATE: Nope, that wasn't it. PC Synchronization isn't even an option for me to enable/disable. :(

Not the issue here. I'm not a noob.

But why disable debugging? I've always been able to do both simultaneously without issue. Until Fresh Toast 2.1, that is.

Negative.
[Hero CDMA Q&A, Help & Troubleshooting] lineman78:
Is it possible that it is recognizing it as a charger instead of a computer? Have you tried other cables and/or computers?
[Hero CDMA Q&A, Help & Troubleshooting] dametzg:
Oh weird. The PC Synchronization shows up in the section called After Startup for me. Hope you get it figured out.
[Hero CDMA Q&A, Help & Troubleshooting] kyouko:
Thanks worked great for me :) haha first time looking thru the startup programs I completely missed it
[Legend Themes and Apps] bugmenever:
ok so I payed $3.99 for gameboid and installed all the bios and roms fine, however when it comes to playing the games the rom continually resets every 2 minutes or so, i know people who have it orking perfectly on different handsets, why wont my legend work properly? any ideas?
[Legend Themes and Apps] xda-onmobile:
Had the same problem too, don't know if it's something memory related.

However, I was able to overcome this. I just let the rom start for about 1 minute, the saved via the menu in a slot. After it crashed and returned to the games selection menu, I've started the same game again, loaded the savegame, and it lasted some time longer. So I started it again, waited a little bit longer, and saved again.

I did this three times, and now I have no such problems again and can play as long as I want, until I reboot the whole mobile. Crux is, I don't have to do it again for every reboot, don't know why... But overall it's working great now on Legend for me

--edit

Since I've updated to the latest version it doesn't work anymore. The problems even got worse :(
[Legend Themes and Apps] xda-onmobile:
For all those who have not noticed:

Gameboid compatability with the HTC Legend is fixed now. Works now on my device without any crashes...
[Legend Themes and Apps] kyle25:
Latest gameboid lite works well on my legend except golden sun

-------------------------------------

Sent via the XDA Tapatalk App
[Legend Themes and Apps] xda-onmobile:
Right now Golden Sun I+II do not work on any device with Gameboid (sadly...).
[Nexus One Q&A, Help & Troubleshooting] bestofrhcp:
hey guys,

ive been having this problem for like a day , where i cant install any app. it downloads and when the phone starts installing it hangs and reboots. it started happening when i installed the fireball oc/uv. thinking it was that i went back to normal and it still reboots on install.

any ideas why it does that?

thanks in advance guys
[Nexus One Q&A, Help & Troubleshooting] ramosfet:
RE-flash

I had the same issue.

1. I flashed the "test" froyo rom from the 24/May - FRF50 (Froyo) pre-rooted update zip + no radio option + more post

2. then the tweaked kernel from the Quick rooter for stock FroYo systems + 2.6.34 kernel post.

It's all okay now.
[Nexus One Q&A, Help & Troubleshooting] overground:
Do this. It worked for me.

adb reboot recovery #wait for recovery to load
adb shell
mount /sdcard
rm -r /sdcard/.android_secure
reboot
[Nexus One Q&A, Help & Troubleshooting] bestofrhcp:
cool thanks guys im going to try that, did you wipe ?
[Nexus One Q&A, Help & Troubleshooting] MeanderingCode:
You're a lifesaver!!!!!!

This remains the best mobile platform forum on the net.
[Nexus One Q&A, Help & Troubleshooting] twism50:
So, why phone is currently with HTC. My PC was not recognizing the phone now was I able to charge via the wall charger. The phone itself worked fine. Recently I had flashed Froyo and Cyan's Kernel. I rebooted, wiped and reflashed the Froyo update, still no luck on USB recognizing. I attempted to restore a NAND backup, but for some reason I was receiving a error message. Then, the battery died. With no way to charge it, I returned it to HTC stating it wouldn't charge. Today I received an email stating it would be $196 for them to fix.

Does anyone think if I bought a desktop charger and charged to boot up I can fix this problem by using one of the many Nandroid Backups I have? I will not pay HTC to fix it as I have insurance. I've replied to them asking what the problem is, and will attempt to fight the charge.
[Nexus One Q&A, Help & Troubleshooting] twism50:
Spoke with HTC Today. They will be sending it back. I'll give the desktop charger a shot. The rep dis tell me that it does boot, which means the phone isn't bricked, but the the USB connection is shot. Could they be lying? I'm willing o give it a shot, although the USB-MS option didn't work in recorery. Could it be the Kernel? It'll be a bit before the desktop charger shows up, but I'll keep everyone posted. I kinda feel like I should have pushed harder as if the problem is the usb connection, what would the phone being unlocked have to do with fixing it?
[General Topics] bho15:
I re-partitioned my sd card to run Chronos Droid version 1.4 because that's what the instructions said to do. Now my FAT32 partition is empty, all my previous data seems to be gone. I'm assuming my data is on the other partition. Is my data gone? can i merge them back together?
[General Topics] ddotpatel:
I always assumed partitioning a memorycard does an auto format 1st?.....

Morel of the story,... Always backup to your PC.
[General Topics] phatmanxxl:
Its gone dude, sorry. Partitioning formats the entire card. Some advice, whatever your phone is connected to your pc for a period of time its good to do a full backup of your sd. For some reason this morning half my data was missing on my sd, I dont know why, it just happened. It was the folders that had all my mp3's and videos, so im guessing it had something to do with the media player on my phone.
[HD2 General] alxsamsonov:
is there anyway to make the start menu wallpaper different from the lockscreen wallpaper? by defauly they are both the same
[HD2 General] rp-x1:
Scroll to the Settings tab, then:

Personalize

Lock Screen Wallpaper.

You can change it there.
[HD2 General] alxsamsonov:
Don't think you understand my question. I want my lockscreen wallpaper to be one picture and my start screen wallpaper to be another
[myTouch 3G, Magic General] elchamo:
The sound in my magic is not working on any ROM 2.1 that I install if I go back to 1.6 or 1.5 it does work. The notifications, alarms, etc.. work perfect but when it comes to receiving or making a call the sound doesn't work unless I turn on the speakerphone, the same thing happens with multmedia music if i play I song cant hear it unless I plug earphones.

Does this happens to anyone else? and/or know how to fix it?

Thankss!
[myTouch 3G, Magic General] sonser:
you'll see my post as well.. i have the same problem..

Rooted fender mytouch, i haven't tried to go down to 1.6 or 1.5 ... im not sure what happened or why it happened? sorry i don't have a solution, i thought i would let you know that you're not alone.
[myTouch 3G, Magic General] elchamo:
Thanks for the reply, when I go down to 1.6 or 1.5 sound comes back so that's a kind of a solution but I really want it to work on 2.1 and not be stuck on 1.6 forever.

Let me know if you find a work arround.
[myTouch 3G, Magic General] Lefty2802:
I am having the same problem when running any version of CM 5.0.7. I have not tried any other ROMs.

Just another person letting you know that you are not alone.
[myTouch 3G, Magic General] elchamo:
It happens to me when running any CM from the first one that used 2.1 I also tried another non CM 2.1 ROM and had the same problem so it has to be 2.1 issue for us somehow. Hope we can find a fix for this soon.
[myTouch 3G, Magic General] bone2006:
sounds like I am in the same boat, but not even sure what to load or what to do to get sound back.

Speaker is the only thing that works, nothing else for me.
[myTouch 3G, Magic General] Adamsville MITM:
what SPL ya'll on?
[myTouch 3G, Magic General] AusMagic:
Just to throw in my two cents to the mix, I was running CM 5.0.7 when my mytouch went down a couple of days ago, I went down into CM 4.2.15 thinking I was the new recovery I just flashed RA-1.7-cyan, but the sound worked, so I went back into CM 5.0.7 and havent had a problem with it after doing a clean install.

My SPL is 1.33.0004
[Nexus One Q&A, Help & Troubleshooting] MFK DGAF:
ok I updated from CM 5.06 to froyo by downloading ere27 from rom manager and installing the froyo ota.

After I had froyo installed i lost root and custom recovery. So I tried using superboot to restore root so i could flash a custom recovery.

After using superboot my phone now randomly restarts, has no service, can pull down the notification bar and when my phone does boot up i get an error message the says system process not responding.

Anyone able to help me out please, I'd greatly appreciate it.
[myTouch 3G, Magic Android Development] elchamo:
The sound in my magic is not working on any ROM 2.1 that I install if I go back to 1.6 or 1.5 it does work. The notifications, alarms, etc.. work perfect but when it comes to receiving or making a call the sound doesn't work unless I turn on the speakerphone, the same thing happens with multmedia music if i play I song cant hear it unless I plug earphones.

Does this happens to anyone else? and/or know how to fix it?

Thankss!
[myTouch 3G, Magic Android Development] GuestK00288:
Try this

http://xdaforums.com/showthread.php?t=517745
[myTouch 3G, Magic Android Development] elchamo:
Hello giant_rider I think I have already tried every possible combination of that hack with no success :( .. This is really driving me crazy, I don't get why it works on every 1.6 and 1.5 rom but when I move to 2.1 it stops working. :(
[myTouch 3G, Magic Android Development] yashs:
...

seems u should work on the 1.6 man
[myTouch 3G, Magic Android Development] elchamo:
I know it works on 1.6 but I would like to move on to a new version of android just as everyone else is doing without any problem :( .. I have been using 2.1 before and works correctly I really have no clue why isn't working correctely anymore.
[Desire Themes and Apps] ady_uaic:
hi all..i'm using the default "Music HTC" widget as a music player...i have a small problem...each time when i reinstall or hard reset the device, this music player recognize all the audio files from the phone (ringtones, etc)...how can i set it easily to see only the sdcard/music folder?