yashsingh1/xdaforums huggingface dataset:
[Windows Phone 7 Software Development] akos.szekacs:
A simple photochooser task application throws a Nullrefference exception(Invalid pointer) and pixel height and width is 0 on mango, on nodo it worked alright.

Am I missing a cast? or this is a bug in mango, and will be fixed?

Here's the code:

private PhotoChooserTask photo;
// Constructor
public MainPage()
{
InitializeComponent();
photo = new PhotoChooserTask();
photo.Completed += new EventHandler<PhotoResult>(photo_Completed);
}

void photo_Completed(object sender, PhotoResult e)
{
if (e.TaskResult == TaskResult.OK)
{
BitmapImage bi = new BitmapImage();
bi.SetSource(e.ChosenPhoto);
//////////////////////////////////////////////////////////////////////////////////////
var wb = new WriteableBitmap(bi);//Exception here
/////////////////////////////////////////////////////////////////////////////////////
// bi.PixelHeight and bi.PixelWidth == 0;
}
}

private void button1_Click(object sender, RoutedEventArgs e)
{
photo.Show();
}
}

Hope someone can help.

Thanks in advance
[Windows Phone 7 Software Development] otherworld:
This is because you need to set the CreateOptions property of the BitmapImage before you use it to construct the WriteableBitmap.

The default 'create' option on WP7 is DelayCreation (it may be BackgroundCreation in some of the 7.1 betas, but the mango RTM I think is DelayCreation) but either way the problem you're having is that your image has not been initialised yet at the point you use it in the WriteableBitmap's constructor (hence the null reference exception).

The options (depending what you set) let images be only initialised when needed, and downloaded on separate threads / asynchronously, which can help performance (or at least stop the phone blocking other things happening whilst images are loaded). Users also have the ability with the photo chooser to pick images from online ablums, so as you can imagine you also have to handle perhaps a second or two waiting for a download to complete, and of course downloads can also fail when connections drop etc. which you can handle too.

So in answer to your question (off the top of my head, not confirmed it with code) set the createoptions to none, and use the Bitmap's ImageOpened event to construct the WritableBitmap (you may also want to handle the Bitmap's ImageFailed event). Make sure you set up the ImageOpened event before you set the source, i.e.

BitmapImage bi = new BitmapImage();

bi.CreateOptions = BitmapCreateOptions.None;

bi.ImageOpened += new (some event name)

bi.ImageFailed += new (some event name)

bi.SetSource(e.ChosenPhoto);

Hope that helps,

Ian
[Windows Phone 7 Software Development] akos.szekacs:
Thank you very much

Problem solved :)
[Windows Phone 7 Software Development] Cabrini:
Hello, I have the same problem (NullReferenceException) and have read you response, which from what I see it is the solution, but I have a problem; not where I have to go to do I change them that you propose. I would be so kind of explaining to me that I have to continue steps. It English me is very bad and I am using a translator.

I have HTC Trophy the v.th 7740.16 with chevrom and U2M7740 of Ansar.

Thank you in advance and greetings.
[Windows Phone 7 Software Development] otherworld:
Hi,

If you upload your code / project I will take a look and see where the error is.

Si me muestras su código / proyecto, puedo ver por qué recibiras una excepción NullReference

Ian
[Windows Phone 7 Software Development] Cabrini:
Hello,

The question is that it is not any project, applications do not develop (although I would like). This type of errorr (nullreferenceexception) happens to me since I updated to Mango, so much in v.7720.68 as in v.7740.16 and happens in apps as Morfo, Fantasy Painter, and at the time of choosing fund in Touchxperience. Not if these apps are not conditioned to Mango or if, perhaps, from the record it might change some type of configuration or entering the Xaml of the app to be able to change some fact, end not...

For the little that, an error of the photochooser seems to be, the question is if it is possible to gain access to him and as doing it.

Anyhow thank you very much and a cordial greeting.
[Windows Phone 7 Software Development] otherworld:
Hi,

If it is not a code issue then I do not know what it could be. Are you using a custom rom?

Good luck with it.

Ian
[Windows Phone 7 Software Development] Cabrini:
Hello. Not, I am with official Mango the v.th 7740.16. I have already restored to factory and it continues the error. I believe that it is a question of the update, it must have a mistake in the pitcher of photos or some error with the librerie, do not know...

Thank you anyhow and greetings.
[Windows Phone 7 Software Development] Cabrini:
Hello, otherworld.

I continue with the same problem, 'nullreferenceexception' related with 'chooserphoto' in some application. The curious thing is that someone of them me work correctly, I gain access to me librery and it takes the photos, and in others not, as for example Morfo. I do not know if the problem is in the code source of these applications or phone is in me. Is this the code source of Morfo, is it possible to correct so that this does not happen?

Thank you in advance and greetings.
[Android Q&A, Help & Troubleshooting] agentfazexx:
I've been using WallSwitch 2.0.2 (latest version) but it's buggy as hell, and the dev no longer supports it, or works on it.

Does anyone know of a similar app that actually works? I've tried a lot, but most of them suck.
[Android Q&A, Help & Troubleshooting] drakyoko:
have you tried zedge?
[Android Q&A, Help & Troubleshooting] claus1953:
I used Wallpaper Changer from jvelin and Multi Picture Live Wallpaper, both work.
[Android Q&A, Help & Troubleshooting] stretchwookie:
the paid version of pwall is AWESOME. i have over 200 wallpapers switching every hour from 9am-1159pm. you can have them change as often as you want, any time of day.
[Android Q&A, Help & Troubleshooting] lichter:
Yep i recommend you the paid version of pwall it's fantastic ;)
[Android Q&A, Help & Troubleshooting] selection16:
I use Tasker. There's a how-to on the tasker wiki (which I can't link to) but it's a very simple setup.
[Acer Iconia A500] wolvie77:
Hi! i read somewhere that there is a way to disable the huawei dongle's cdrom mode & change it to modem mode so that it can be recognised by the tablet. i have a huawei E163 3G dongle & really want it to works is there a tutorial i can follow?
[Acer Iconia A500] deadlyheart4u:
i have got a zte - mf 190, can anyone help me with the same, i am not able to get 3g working on the device
[Acer Iconia A500] Zen_Jackal:
Here you go:

http://xdaforums.com/showthread.php?t=1058846
[Verizon Droid Charge] jkat797:
I am running gummy gbe and and I want to change to a smaller font size. when I try to use spare parts, the font goes back to normal size after a screen rotation. can anyone help?
[Verizon Droid Charge] cujo6801:
I use font optimizer from the market... after you download the font you want go to settings display font and select the font you want

SENT FROM THE DOG POUND
[Verizon Droid Charge] Bear55:
When I search for "font optimizer" on the market I do not find any app by that name. Who is the developer?
[Verizon Droid Charge] sneakysolidbake:
Search for fontomizer. It just lets you switch to a new font. Some are smaller than others.
[Verizon Droid Charge] cujo6801:
Try searching font for galaxy. It works on the charge

SENT FROM THE DOG POUND
[Verizon Droid Charge] jkat797:
I can't seem to find any font that is similar to the default just smaller tto use with the apps you guys told me about. can anyone help?
[Verizon Droid Charge] Bear55:
I have that app and it does provide some more fonts but does not change font size.
[General Questions and Answers] anhilator:
hi how are u guys i got a htc dream ''drea200''

modele number : HTC Dream

firmware version 1.1

baseband version 62.41S.20.13U_2.22.16.19

kernel version 2.6.25-deb9915c

version number 1.56.73.2 PLAT-1.0_gms-135348 CL#11526

release keys

i have 3 questions

first im not much good with pda and cellphones i just got that by accident

first its orange france locked

so how to unlock and second question how to root and third question when u downgrade to a kernel that is exploitable and u root it is it possible to unlock in this stat

so guys i hope someone help me with this probleme i love to know more about

this stuff

i did try to downgrade make a goldcard tryed pretty much alot of methodes

but i think im not that good

so if someone can help ill be very happy
[myTouch 4G Q&A, Help & Troubleshooting] VoiD_Dweller:
Nevermind, I found it. Please remove lol
[Motorola Photon 4G] yongyang:
Photon 4G uses battery type HF5X with 1700mah capacity, I wonder if Photon 4G can use BF6x/BH6x which has 1880mah capacity, anybody tried?
[Motorola Photon 4G] brobin111:
Nope. That would be too simple. The battery edge is keyed differently and the contacts are different.
[Motorola Photon 4G] beartrap:
But if this battery is good for atrix and photon, why wouldn't any other like this 1930 mAh one?
[Motorola Photon 4G] brobin111:
I've heard that the BF5X (1500mah) will work.
[Motorola Photon 4G] nevillejw:
photon battery hf5x vs bf6x

I just received a bf6x battery and it does not fit in my phone....2 corners need to be a little smaller.
[Motorola Photon 4G] roseng:
I think this is the same battery on I bought on eBay. It fits and works but is several mm thicker and the back will not go on the 855 phone. Battery says for MOT822/BF6X 1950mAh
[Motorola Photon 4G] caffeiNater:
I bought 2 BF6X with a charger on ebay, blindly taking the seller's word that it was the correct match. Obviously it's not the correct match, but it actually fits in my phone and works ok so far. It was a tight fit to snap in the top edge of the battery into the phone, and the part of the back cover (right above the kickstand) sticks out 1-2 mm. But if it gives me bettery battery life and doesn't set my phone on fire, I'll probably stick with it. :)
[Motorola Photon 4G] criptix:
I bought them as well but it causes to much pressure on the screen. Don't matter where I touch I get a pressure spot in the lower center of screen.
[Motorola Photon 4G] kwazytazz:
same issues here, battery cover wont close
[Motorola Photon 4G] ssaggy:
I wish the people ordering these on ebay would post negative comments. I got suckered in too. Hoping for a refund but wont be holding my breath.
[Motorola Photon 4G] ssaggy:
Did anyone get an error when turning on phone with BF6X battery? Unrecognized battery or incompatible error? Thanks
[Motorola Photon 4G] roseng:
My seller gave me a refund without a problem and did not want the batteries or charger back. The charger works with the proper batteries. I gave him a positive feedback.
[Motorola Photon 4G] cutter2668:
photon battery

the photons battery is 3.8 volts not 3.7 volts

in other news seidio's extended battery is now available for purchase, 3500mah of goodness, lasts all day for even a power user and then some, most will get two or more days of a 3500mah battery, that is the case with my evo4g and its seidio extended battery

buying batteries on ebay is risky business, lots of counterfeits and lots of poor quality batteries that can ruin your devices, buyers beware!!
[Legend Android Development] Mafuzzer:
Rather than looting half of London, I spent my time giving something back to the Android Community.

I've compiled this guide on how to root the HTC Legend vodafone. It's pretty simple in my opinion and I've tried to make it as easy to use as possible. I have included a lot of images and started right from the beginning.

List of Guides:

I think I've added in all the credits, but if I haven't then please tell me. I'm also making more guides for noob Android users.

Thanks for using the guide, and if you have any suggestions, please leave a comment.

N.B. Guides have since been taken down due to newer methods of one-click rooting.

Chirag Vadhia
[Legend Android Development] zabaknilesh:
I just rooted a day before you posted and believe me this are the steps I followed...and woo..its rooted :)

I hope this post is made a stickied
[Legend Android Development] stemnin:
Very nice, and lots of pics! It should help a lot of people out.
[Legend Android Development] Mafuzzer:
Thank you. When I tried to root my HTC Legend, I couldn't find a proper guide, so I thought I'd make one to help other people out.
[Legend Android Development] erwinsie:
Hi Thanks i just swap my iphone with htc legend from my gf and planning to root the phone. this would be my only guide, hopefully no issue will happen and i will report back. the guide looks good and simple but the only thing i find is, TOO many files needed. maybe i can combine all of them and put in 1 place to help other newbies !

but i still shock to see number of files i need to root an android ! and the files are sooo big aswell ! different from iphone, you just need a website or 1 software to jailbreak it hehehehehe - relax im an android fan boy now !
[Legend Android Development] m1schi:
Every Android device has its own rooting method. The one of the Legend is really long; but don't worry. It's not that hard as it seems. Also this guide is really good!
[Legend Android Development] erwinsie:
i actually has hboot 1.0.1 and reading http://xdaforums.com/showthread.php?t=894465 is very confusing. can someone point me to easier guide just what mafuzzer done with hboot 1.00 ? thanks alot.

already spent half a day without any luck
[Legend Android Development] Mafuzzer:
I would create a guide, but unfortunatley I don't have a HTC Legend with that version of H-BOOT.
[Legend Android Development] mafu6:
what am i doing wrong :-( i keep getting usb not connected when it is :-( alsowhen i have got past that stage ONCE it said error 140 incorrect bootloader :-( i have a vodafone legend running 2.2 followed the guide to a t and now im stuck someone help please
[Legend Android Development] Mafuzzer:
Error 140 means that you need to re-create the GoldCard. Your phone must also be connected as, "Charge Only". You could also try plugging your phone in another USB port. Also check that you have AndroidSDK installed.
[Legend Android Development] Mafuzzer:
Added another guide with some advice on choosing ROM's. I'm also working on a simple un-root guide.
[Legend Android Development] DeadlyCords:
How do I check hboot version - my gf has a legend
[Legend Android Development] DeadlyCords:
Edit:

Same as DHD - figured it out.
[Legend Android Development] bryanqjx:
Hi! Thank you for posting such an amazing guide! But one problem that I am experiencing though, is that why are the images unable to be viewed?
[Legend Android Development] Mafuzzer:
Hmm,

I've just checked the guide and everything seems to be working :)
[Legend Android Development] bryanqjx:
K I shall try it out again.
[Legend Android Development] bryanqjx:
Hmm,

But when I went to the webpage the picture could not be seen. Just a little cross on the top corner of the pic. I used Google chrome to open the page.
[Legend Android Development] Mafuzzer:
For which page of the website do you mean?
[Legend Android Development] bryanqjx:
From the pages that u provided.
[Legend Android Development] Mafuzzer:
I will PM you the images when I get home.
[Legend Android Development] bryanqjx:
Ok tks so much!
[Legend Android Development] w1ckedzocki:
hi i wanted to root my phone with your guide but i have a problem.

I wanted to execute your command /data/local/flash_image misc /data/local/misc1-2.img

but it says /data/local/flash_image not found. Am i doing something wrong?
[Legend Android Development] portgas:
i also have some problems. first of all when i create the goldcard i get two cid (a normal and a reversed). if i use the normal one i get an error 140 in the downgrade, if i use the reversed one i get an error 131... i've tried with a 2gig and a 8gig msd... nothing changes... what should i do?
[Legend Android Development] ranger4740:
The error your reporting suggests that you haven't pushed the required files onto your phone, have you actually pushed those 2 files to the /data/local/ on your phone?

You need to or it won't work.

If you have, maybe try rebooting your phone.
[Legend Android Development] bryanqjx:
I've got a problem when trying to run RUU. I made my goldcard, run crackin bat, temproot my phone and then type what i was supposed to type in cmd but as I want to downgrade using the RUU, it gives me an error code (I can't really remember what is it) but the error says that one of my bootloader drivers are outdated something like that. Could this be solved? Tks.

EDIT: And if let say I use backup tools, I will still be able to restore all those data, apps, sms and contacts like how my phone was supposed to be right?
[Legend Android Development] w1ckedzocki:
Yes that was my mistake. And i also had to do a chmod 755 to the flash_image to get it working.

Now my phone is rooted :D
[Legend Android Development] bryanqjx:
I got an error 140 (bootloader version error) when trying to run RUU. I ran crackin bat, temproot my device and typed what I am supposed to but it just didn't work what should I do?
[Legend Android Development] Mafuzzer:
Try re-creating the Gold Card.
[Legend Android Development] bryanqjx:
Ok so will a 1gb standard micro SD card work?
[Legend Android Development] ranger4740:
I don't see why not?

My goldcard is on a sandisk 2Gb.
[Legend Android Development] Mafuzzer:
Yes, I have used various different brands of memory cards whilst rooting.
[Legend Android Development] carkev:
great stuff !

@Mafuzzer

many thanks for such a superb and detailed guide !

I found it an absolute breeze to follow, and have not had a better rooting experience to date.

(and I have been rooting since my old Windows phones and more recently a ZTE Blade.

thanks also to the developers of all the great tools that make it possible for the lesser skilled such as myself.

ps:

I did have one small problem, and the 'fix' may help others ... http://xdaforums.com/showthread.php?t=1400983
[Legend Android Development] hkr:
The download link for the GoldCardTool is broken, does anyone have an idea, where to download the latest version?

Thanks
[Legend Android Development] carkev:
I have attached the copy I found ... it worked fine for me (ignore QR code bit)
[Legend Android Development] Mafuzzer:
I shall try and update the guide at the end of January to fix these problems (the goldcard link and ensuring all files are deleted on the mSD card)
[Legend Android Development] muks11:
EDIT - SOLVED- Not sure what I did but it worked.

Hi, I followed you guide and now successfully on 2.1 but I'm stuck at the new rom install. I cant see ROM Manager in the Market place so I found one from the web but now when I go to "flash clockworkmod recovery" there is a blank screen at the su request. I tried clearing the "superuser permissions" under applications but it made no difference.
[Legend Android Development] Mafuzzer:
UPDATE:

All links have been fixed following the take take down of MegaUpload etc.
[Legend Android Development] kurtalden:
**edit** ignore, was just me being an idiot

The links seem to have broken on the guides - can you fix please?
[Legend Android Development] cmargach:
please re link guides

hi could some one re-link the guides i have searched hi and low for a definitive guide cant find one any where.thanks:confused:
[Legend Android Development] Mafuzzer:
I will update all the links as soon as my AS Level exams have finished, which is by the end of next week.
[Legend Android Development] smithchipz:
If you're looking for a guide to root just use HTCDev to unlock the boot loader and then use HTCSuperTools to get root access. There is no more need for these old guides and ways of rooting like making a gold card and downgrading.
[Legend Android Development] Stevemotto:
Oh God.. gold card took ages for me.

Sent from my Legend
[Legend Android Development] Mafuzzer:
All files have been re-uploaded.

I didn't know this, but the guide will remain up in case people want a solid method of rooting.
[Legend Android Development] alemercuzio:
this guide seems interesting, but i find some difficult on it.

Could you please tell me if those other ways are good to root my Legend:

1- htcdev.com

2- unlockroot.com
[Legend Android Development] smithchipz:
Read through this thread. Post #3 essentially has all the instructions. You can read through the rest if you have any problems.
[Legend Android Development] Mafuzzer:
Links updated again.. Although I feel this thread is now becoming rather obsolete...
[Droid Incredible Q&A, Help & Troubleshooting] jozanich:
Does anyone know if there is one out there? I really like the way it looks, but can't find a .mtz to throw onto my rooted DINC. Thanks for any help!
[Droid Incredible Q&A, Help & Troubleshooting] Cothek:
What exactly are you looking for?
[Droid Incredible Q&A, Help & Troubleshooting] jozanich:
I'm looking for an MIUI theme that mimics the Droid X for my DINC...
[Droid Incredible Q&A, Help & Troubleshooting] Zalatorisaurus:
Why not just put adw on miui and use the Droid x theme? I believe there is one, but you may have to search through the market for it. It gives you the icons and background, but that's about it if I remember correctly.
[Legend Q&A, Help & Troubleshooting] jask05:
Hi everybody

My problem is with my GPS signal. I searched in the forum and I found a topic ( http://xdaforums.com/showthread.php?t=1060963 ) with a correct gps configuration. I followed the steps but when I edit gps.conf file I can't do becouse I haven't permissions. In other topic talk about how I can do to give file permissions with:

- adb shell

- su

- mount -o remount,rw /dev/block/mtdblock3 /system

I following this steps but when I edit the gps.conf file (with root explorer) and I put the new configuration and reboot the terminal, the file don't change and has the old configuration.

What's the problem? I don't know :(

Sorry for my bad english

Thanks !!
[Legend Q&A, Help & Troubleshooting] pepijn499:
Your problem is that the phone is s-on. You can't edit /system when your phone is on. Boot into Clockwork Recovery, mount usb + system, and debug with abd or a program like Android Commander. Then reboot your phone.
[Legend Q&A, Help & Troubleshooting] jask05:
Thanks you man !! I could edit the file and the gps works perfectly.

I hope this post will serve to other people's

Thanks for all !!
[Legend Q&A, Help & Troubleshooting] Asovse1:
I've been away from a computer for a couple of weeks now, but I needed to edit my gps.conf yesterday, so here's what I did. It was actually pretty enjoyable.

I used Root Explorer throughout.

I created a new folder where I would carry out all of my operations on my SD card. I then copied the existing gps.conf to that folder.

Then I edited the file with Root Explorer's built in text editor and created a folder named "system" and a subfolder inside that folder named "etc". Then I moved gps.conf into "etc".

Next, I longpressed the "system" folder and zipped it. From there, I flashed it with CWM and the GPS has been working flawlessly since.
[Legend Q&A, Help & Troubleshooting] jask05:
I don't knew this interesting way. :)

Thanks for share it.
[Streak 5 General] sweetipie92:
Like it says in the title, ive plugged my phone into the pc and wall plug.... it doesnt charge and the leds just flash every 10seconds?

Really need help so i can ghet my phone bk :D
[Streak 5 General] Barry (NJ):
Did you try removing and then reinstalling the battery? I find that can help sometimes...
[Streak 5 General] CyberGhos:
Mine did the same before after I let the phone drain completely. The LEDs just flashed and the battery showed 0% even after leaving on charger for a long time, and I wasn't able to turn on the phone. If yours does like that, easy way is to replace the battery. But you can recover it: check the voltage on your battery. If it drops below 3.3V then that's the reason. I recovered mine by applying 4V to the battery (make sure the voltage is still 4V after you connect it to the battery- I got a regulated power supply for this) for about 5-15 mins, check the voltage again and if it goes back to 3.7V, you can put in your phone and charge it again as you usually did. It worked for me and may work for you too.