Starting to code for Windows Phone 8 - Windows Phone 8 Q&A, Help & Troubleshooting

Hi there,
I would like to start coding for WP8 - however, there are no books yet. That is why I just installed VS Express 2012 for Windows Phone and try to make a flashlight app which just has one button that switches on or off the led of my Lumia 920. I know how to make button, but I don't find any code that shows how to use the flashlight...
Can you please help me...?

For managing the flashlight use the camera api, I think.
There is no book for WP8 yet (or not? ), but you can easliy teach on the WP7.5, because it's a subset of WP8 API. For the rest use MSDN or even the Object Browser.

Why do you need a book? You can download documentation from visual studio or use msdn.

mcosmin222 said:
Why do you need a book? You can download documentation from visual studio or use msdn.
Click to expand...
Click to collapse
Of course you can do this. But it's much easier to learn using book thank msdn+ google. Especially if you haven't used silverlight\wpf before.

Try this, it is for Windows Phone 7 but it's free!
http://blogs.msdn.com/b/microsoft_p...mming-windows-phone-7-by-charles-petzold.aspx

There's a book from Microsoft Press called "Windows Phone 8 Development Internals", I've recently started reading it and it seems like a good one.
http://blogs.msdn.com/b/microsoft_p...opment-internals-preview-1-available-now.aspx

ap3rus said:
There's a book from Microsoft Press called "Windows Phone 8 Development Internals", I've recently started reading it and it seems like a good one.
http://blogs.msdn.com/b/microsoft_p...opment-internals-preview-1-available-now.aspx
Click to expand...
Click to collapse
Thanks for this

Related

OCR like world card mobile?

Is there an OCR program for our phone which would let you take a photo of a document/magazine etc and convert that into text. A bit like the worldcard Mobile app but more versatile. I have searched and have so far come up with nothing.
If anyone knows of such an application please can you point me in the right direction.
There is quipit or something named like that, that allows your phone to work as a scanner. You take a picture of the document, then email it to their server and they convert it to pdf for you. Try a search for quipit or similar through google, it should show up.
There is also a service called Scanr (Scanr.com) that does the same thing.
Thanks guys but I was looking for something that was entirely on the phone so I could take a picture with the camera and then transfer it to text. Would be so much quicker than typing out or pairing up to send some stuff. Never mind I'm sure someone will come up with it one day.
Here is a free OCR software from Joerg Schulenburg under GPL licence:
http://www.google.com/search?hl=de&safe=active&as_qdr=all&q=ocr+Schulenburg&btnG=Suche&lr=lang_en
It is just a backend-software but it runs with Pocket PC. We would need a WM6 frontend (GUI) with an integration of the Kaiser-camera.
Hompage: http://sourceforge.net/projects/jocr/
Download:
http://pocketpedia.de/gocr_download/
heinz2007 said:
Here is a free OCR software from Joerg Schulenburg under GPL licence:
http://www.google.com/search?hl=de&safe=active&as_qdr=all&q=ocr+Schulenburg&btnG=Suche&lr=lang_en
It is just a backend-software but it runs with Pocket PC. We would need a WM6 frontend (GUI) with an integration of the Kaiser-camera.
Hompage: http://sourceforge.net/projects/jocr/
Download:
http://pocketpedia.de/gocr_download/
Click to expand...
Click to collapse
I went to the web page but unfortunately I'm not that intelligent to work out what I needed to do. I need an app to put on my phone to do it all for me! Like World card Mobile does.
GOCR is a free software, that may fit to xda-developers.
http://dfn.dl.sourceforge.net/sourceforge/jocr/gocr-0.44.tar.gz
There is a short manual inside, but it is no turnkey solution. GOCR even supports OCR for a proper handwriting.
Here is at least a Windows Frontend to GOCR:
http://www.softpedia.com/get/Multimedia/Graphic/Graphic-Others/GOCR-Windows-Frontend.shtml
Maybe later GORC can become an app to put on the Kaiser (to do it all for us - like World card Mobile does).
Desktopflame said:
I went to the web page but unfortunately I'm not that intelligent to work out what I needed to do. I need an app to put on my phone to do it all for me! Like World card Mobile does.
Click to expand...
Click to collapse
Then you may have to wait a bit for someone else to do the work for you so all you have to do it run the .cab
At least one of the TyTN II localized phones didn't even come with World Card Mobile, so you at least have something.
bump............
You can use the ocr sdk for mobile devices from ABBYY.it is not free though.
http://www.abbyy.com/sdk/?param=56223
using this sdk, you can convert any image to text, either by using the camera or by browsing to an image file and processing it using the ocr.
tommy.touma said:
You can use the ocr sdk for mobile devices from ABBYY.it is not free though.
http://www.abbyy.com/sdk/?param=56223
using this sdk, you can convert any image to text, either by using the camera or by browsing to an image file and processing it using the ocr.
Click to expand...
Click to collapse
Has anyone gotten this working with either GOCR or the ABBYY.it sdk? Or has anyone found an alternative application? The ABBYY FotoReader software would be perfect if there was a Windows Mobile version (existing version is for PC). If I was a software developer and had the time I'd get the sdk going, but it's beyond me at the moment. It really would be great to take a picture of a document and have it ocr'd right then available on your handheld like World Card Mobile does for business cards.
OCR
Hello every body
I’m looking for Automatic Number Plate Recognition software (OCR Optical character recognition) for Pocket PC.
I want to use it to recognize a license plate.
Is there anyone who already hears about it or use this kind of technology?
Thanks,

Barcode Reader Software?

Heya folks,
I'm looking for a solution to scan ISBN codes from my book collection into a some sort of library or catalog database.
I'm wondering if someone here would know of a software that can be used on the HTC TyTN II (at&t Tilt), or any Win Mobile device with a camera.
I've found the Barcode/13 program, but that's only for palmOne Treo 600. I could work with something similar just to create a CVS file of ISBN numbers and transfer that to another program on my PC, but would rather have an all-in-one software.
Thanks,
Zyir
I'm also looking for a way to integrate barcode scanning into a .NET app. For the enterprise...I'd like to keep track of assets.
sounds like you want to use the built-in camera.
I've used PPCs to do barcode reading using SerialMagic and the LaserCHamp Bluetooth scanner from http://serialio.com/
It works quite well.
lthown said:
sounds like you want to use the built-in camera.
I've used PPCs to do barcode reading using SerialMagic and the LaserCHamp Bluetooth scanner from http://serialio.com/
It works quite well.
Click to expand...
Click to collapse
I might have to go that route, but would rather find a software that will use the Kaiser's camera to read the barcodes.
I'm trying to avoid purchasing an additional device just to scan a couple hundred books.
http://www.quickmark.com.tw/En/basic/index.asp
lthown said:
sounds like you want to use the built-in camera.
I've used PPCs to do barcode reading using SerialMagic and the LaserCHamp Bluetooth scanner from http://serialio.com/
It works quite well.
Click to expand...
Click to collapse
Yeah, it's just that the idea is to avoid having them lug around a barcode scanner to track assets. If they have to carry something extra we can just get to a computer. =/
ZiYi said:
http://www.quickmark.com.tw/En/basic/index.asp
Click to expand...
Click to collapse
Will QuickMark scan linear (1D) barcodes like the ISBN on books? Everything I've found indicates that it only reads 2D barcodes (like QR Codes, etc.).
Take a look at MS A.U.R.A. at http://aura.research.microsoft.com
GSLEON3 said:
Take a look at MS A.U.R.A. at http://aura.research.microsoft.com
Click to expand...
Click to collapse
Doesn't work...
GSLEON3 said:
Take a look at MS A.U.R.A. at http://aura.research.microsoft.com
Click to expand...
Click to collapse
Can't get that now...
From the link... "Microsoft Research AURA project and all AURA services have terminated as of June 30, 2007."
From what I've found, that would have worked for what I want, but alas...
Batoo
There seems to be a free java implementation that decodes 1D barcodes. I had no success trying it on my kaiser: http://people.inf.ethz.ch/adelmanr/batoo/
Perhaps it is a good starting point to use this source to develope something useful.
I found this a while ago. I think I remember their SDK was free for 1D codes, or something. I forget, check the link. Cool video included.
http://www.mobileama.com/Barcode.htm
EDIT: Yep, this is what you want.
I was able to find a download for Microsoft's A.U.R.A.
It's kinda nifty to play with. It'll scan 1D barcodes, but I'm not finding any options to export the codes after they've been scanned. Also, it requires a 'manual' photo of the barcode; it opens the camera utility and ya use it like taking a normal macro photo (Zoom in, hope your hand is steady, and snap, then find a blurry image. Repeat multiple times until ya get a clear image that can be read).
QuickMark and i-nigma are great for 2D barcodes; they both make good use of the device's auto-focus and will read a 2D barcode without the need to manually take a photo. Though, neither of them will read 1D linear barcodes like the ISBN numbers on the books I'd like to scan.
Also, the one that Notten pointed out ( http://www.mobileama.com/Barcode.htm ) looks like it would work wonderfully, but I wasn't able to find any Windows Mobile software that uses it, nor a download for a working implementation.
So, does anyone else know of something that could be used by an individual who just wants to scan their books with an HTC Windows Mobile device?
I'm still hoping for something more like 'Barcode/13', or an inventory software that will make use of the device's camera.
Thanks,
Zyir
-----
I may just have to bite the bullet and buy a cheap barcode scanner to connect to my PC instead.
A solution for Bluryyyy photo
Jus look for a post where they have a new camera Apps to upgrade the one that comes with your TyTN II aka tilt, aka kaiser, aka etc. With this update you just need to do a halfpress release and it will autofocus and shoot, and there you go nog blurry images.
I used it with the Worlcard Mobile aplication to get a photo of our patients Health Plan Card, and without that new camera apps it would be a pain in the #$%$%@%@%.
So give it a try. Search for NEW CAMERA in the Forum.
Building my own
Since I haven't found any ready-made and free solution, I started experimenting on my own in C#. I have managed to develop a basic functionality where the application automatically takes snapshots (320x240, no autofocus... thanks to www.wimobot.com) and does the recognition. Well, the recognition algorithm is still in a very alpha-stage (it can detect the stop bits of a code-128)...
Anybody with some links to free C# recognition source to speed up things? I will also try the batoo code (java) sometime.
hypest
Thanks, udgn. I already have the 'new camera' and video framerates are greatly increased outdoors. Sadly, it didn't help the fact that I tend to move the camera a bit as I press the button, which is the main cause of my blurry photos with indoor lighting.
Back on topic...
I've also run across Google's ZXing project ( http://code.google.com/p/zxing/ ) but it's a Java implementation that doesn't run on Windows Mobile devices. Yet.
Zyir
Own application partial success
UPDATE: latest version can be found here
zyir01 said:
I've also run across Google's ZXing project ( http://code.google.com/p/zxing/ ) but it's a Java implementation that doesn't run on Windows Mobile devices. Yet.
Zyir
Click to expand...
Click to collapse
Great find Zyir!
I took the code, converted it into c# and incorporated it in the app I'm developing and... well, there was partial success! I have attached the binary (Usual disclaimer applies: I have NO RESPONSIBILITY whatsoever for any harm done!).
The application is in alpha stage but usable. Unzip in any directory and run using a file manager. Button "Shoot" opens the normal photo-shooting app to take a photo (thus utilizing higher resolution and auto-focus), while "Live" starts auto capture (320x240, no auto-focus). The whole "thing" is quite slow, as the decoding takes a while.
I had successful decoding using the "live" mode reading a code-128 barcode (that had previously shoot in my local supermarket) displayed on my laptop's screen.
hope to hear any feedback!
hypest
Great, I'll give it a shot!
hypest said:
Great find Zyir!
I took the code, converted it into c# and incorporated it in the app I'm developing and... well, there was partial success!
hope to hear any feedback!
hypest
Click to expand...
Click to collapse
Thanks!
I'll give it a whirl this evening and let ya know how it went.
Zyir
I didn't have a lot of time last weekend to check it out, but it didn't scan well for me. It wouldn't read any barcodes with "Shoot" or "Live". The Live ran at avout five seconds per frame, so was a bit of a challenge to get the camera on the barcode.
Might be due to the relatively low lighting in my house. Also, I'm using Nadavi's Camera 5.0.4.2915.00 with HTC Album, so I'm not sure if that might be part of my issue.
Zyir

Microsoft announces Windows SideShow for Windows Mobile Development Beta

The title says it all. Maybe one of the board members can play with it and create something worth installing.
you can download it here
http://www.microsoft.com/downloads/details.aspx?FamilyID=79f19684-f862-4e02-a2b0-0003b4565f34&DisplayLang=en
Finally! Been waiting on this forever! Also, Live Anywhere which they promised a while back!
I do a monthly geek dinner thing where a microsoft person or two come in. One of them is really into the mobile scene. I'll ask her what she has heard/seen so far the next time I see her.
Kyle
installed and working on Diamond rom V4. it is excellent like a remote control for your pc. i am very happy with it i can see many many things will be done with this. exciting stuff.
Chem E Sam said:
installed and working on Diamond rom V4. it is excellent like a remote control for your pc. i am very happy with it i can see many many things will be done with this. exciting stuff.
Click to expand...
Click to collapse
can you post it please ?im on my pda atm
edit * NVM got it
Sounds Sweet!
I'll check it out...
Vista Required
Nogo on XP Pro. Requirements call for Vista or Server 2008. Might be a service driver that could be used from Vista in XP, but not sure about that.
Awesome. I have been waiting for this for some time now. It would be nice for everyone if there was mirror link posted. Also if the mods could move this to the correct section it would be great too, such as the software section.
**Edit
Thanks guys
***Another Edit
Here is a mirror for everyone
odic said:
Nogo on XP Pro. Requirements call for Vista or Server 2008. Might be a service driver that could be used from Vista in XP, but not sure about that.
Click to expand...
Click to collapse
SideShow is a feature of Windows Vista and it has not been, and probably will never be, ported to older Windows versions due to underlying differences in the operating systems, driver models etc.
Such a shame this is only bluetooth, other sideshow devices utlise wifi.
Still cool to finally get it though.
ladytoast said:
Such a shame this is only bluetooth, other sideshow devices utlise wifi.
Still cool to finally get it though.
Click to expand...
Click to collapse
It's still in its very early stages, so it may eventually get there and offer wifi support (Salling Clicker does it so MS definitely should be able to get it running).
I couldn't get it to work on my pavillion laptop (dv9700t)...it keeps saying 'can't connect' from the software. Yet, I can see it briefly connect then disconnect on my laptop. Oh well, back to salling clicker....
Windows SideShow for Windows Mobile Beta: Screenshot Tour
Hey Guys. This group has always had the most intense members of the Windows Mobile community and been a place where I can always count on learning something new.
I wanted to make sure everyone knew about the Windows SideShow for Windows Mobile Beta.
http://www.microsoft.com/downloads/...84-f862-4e02-a2b0-0003b4565f34&displaylang=en
I have a screenshot tour if anyone is interested:
http://www.cjcraft.com/blog/2008/06...ndowsMobileBetaSeeTheScreenshotTourFirst.aspx
My goal to make something that people get a feel for the product and its possibilities.
--
Thanks,
Chris Craft
Windows Mobile Device Application Development MVP
http://www.cjcraft.com/blog/
InGeNeTiCs said:
I couldn't get it to work on my pavillion laptop (dv9700t)...it keeps saying 'can't connect' from the software. Yet, I can see it briefly connect then disconnect on my laptop. Oh well, back to salling clicker....
Click to expand...
Click to collapse
make sure u follow the installation instruction carefully, and keep trying to connect afterwards. took me a while to get it to work, but it's definitely blows salling clicker out of the water, being it's at a preview stage.... sure has potentials
CJCraft said:
Hey Guys. This group has always had the most intense members of the Windows Mobile community and been a place where I can always count on learning something new.
I wanted to make sure everyone knew about the Windows SideShow for Windows Mobile Beta.
...
Click to expand...
Click to collapse
This is a really neat idea in theory. I just found out about this the other day when Woot had a picture frame for sale that supported SideShow.
I found it much more useful for a device like a dumb terminal picture frame. It could allow you not to just show pictures, but overlay the weather, RSS feeds, e-mail notifications, and even stream music to the frame.
Although I like that it is being supported for WM devices, I don't really see too many advantages of the current widgets/gadgets/whatever that are out there.
A WM phone is already a powerful device that has outlook, media player, office mobile (including power point) that having to stream these as a sideshow to the device seems redundant. I'm sure some plugins will come around that are very innovative, but I don't really see the use other than novelty right now.
The advantage I see would be for developers to write just a sideshow app that can run on many platforms and not just tied to vista.
For instance a sideshow app for Windows Media Center that would allow you to turn your phone into a powerful remote for WMC.
I don't know if 2008 supports sideshow yet, but if they add it in I could see a HUGE benefit of having a server monitoring sideshow that I could connect to remotely. I could keep track of servers remotely and perform some common tasks via the sideshow.
These are the types of things I'd like to see eventually.
This was posted in the general thread, but I see this one is more active so I will post my comments here as well.
This is a really neat idea in theory. I just found out about this the other day when Woot had a picture frame for sale that supported SideShow.
I found it much more useful for a device like a dumb terminal picture frame. It could allow you not to just show pictures, but overlay the weather, RSS feeds, e-mail notifications, and even stream music to the frame.
Although I like that it is being supported for WM devices, I don't really see too many advantages of the current widgets/gadgets/whatever that are out there.
A WM phone is already a powerful device that has outlook, media player, office mobile (including power point) that having to stream these as a sideshow to the device seems redundant. I'm sure some plugins will come around that are very innovative, but I don't really see the use other than novelty right now.
The advantage I see would be for developers to write just a sideshow app that can run on many platforms and not just tied to vista.
For instance a sideshow app for Windows Media Center that would allow you to turn your phone into a powerful remote for WMC.
I don't know if 2008 supports sideshow yet, but if they add it in I could see a HUGE benefit of having a server monitoring sideshow that I could connect to remotely. I could keep track of servers remotely and perform some common tasks via the sideshow.
These are the types of things I'd like to see eventually.
That had to posted by an M$ employee
This is cool
I am giving this a shot on my Tilt with the L26 diamond v5 rom. I paired my phone with my Vista business pc and connected right away. Some of the other gadgets you can install are pointless. Gmail viewer? LOL. All you can do is view the mail... so you have to walk back over to the pc and check it anyway. The media player gadget is the best... I could actually see me using this for a party or social gathering where I can control all the tunes from my phone. I COULD NOT get the picture viewer to work!!! When I downloaded the .msi file I got the error "This application is not a valid install fie" or something of that nature.
Any ideas on that one?
i still can't get the bloody thing to work.
in my experiance of it you need to be using microsoft bluetooth stack/drivers, widcom broadcom, toshiba or blueseil dont work, which is a pain because windows bluetooth drivers are very limited as to what else they do, if anybody gets this working with bluesoeil drivers let me know

Javacode , exploit possibility ?

you can use java codes with the IE browser (also with Favorites)
maybe window break could get advanced
examples
javscript:history.forward
javascript:alert(document.cookie)
javascript:alert("xda")
IE10 mobile with windows phone 8 (tested on Lumia 920)
IE9 mobile with Windows Phone 7 doesn't work (tested on Mozart)
saywa said:
you can use java codes with the IE browser (also with Favorites)
maybe window break could get advanced
examples
javscript:history.forward
javascript:alert(document.cookie)
javascript:alert("xda")
IE10 mobile with windows phone 8 (tested on Lumia 920)
IE9 mobile with Windows Phone 7 doesn't work (tested on Mozart)
Click to expand...
Click to collapse
I'm not sure how this would ever help us, though. That's pretty much the same as just running javascript within the browser. And either way, the browser runs under low privileges anyway.
Good thought, though!
First of all, Java has nothing to do with JavaScript except for some idiot marketing scheme by Netscape long ago. Don't confuse them.
Second, if it were possible to use JS to jailbreak a phone, then it would also be possible for an attacker to take over your phone just because you visited a website. This would be bad.
Third, WP7/IE9 actually does support "scriptlets" or "bookmarklets" (javascript:<code> favorites); see my signature for a link to a few of them for WP7, including a "Find on page" tool.
Fourth, while Jaxbot is absolutely correct that the browser has low privileges (even if we could cause it to execute anything we want, we *probably* couldn't manage to unlock the phone), it is nonetheless probably a good idea to keep an eye out for any exploits released against IE10 on the desktop. Much of the code in the Windows Phone version is the same, and it might be possible to use a known exploit (at least, until it gets patched) to have another way to learn more about how the OS works, which might allow us to find a vulnerability that can be used for an unlock. It's not a sure thing, but it *might* help.

coming back from windows c# questions

Ok i was not sure where to place this thread, so with luck this is the right spot.
for the past 2 months i have been using a lumia 735 on windows 8.1, and i taught myself to code with c# and visual studio, i have even released an app (technically 2 apps as the 2nd one was a complete re-write to be a windows universal app) the thread for them is here http://forums.windowscentral.com/app-spotlight/353188-rpg-app-mr-g-reaper-thread.html
Now here is the issue, my windows phone is cool to program for but completly impractacal as well an everyday phone, tons of apps i used on my s4 are missing on it, the os is not as user friendly as android....its just not the right phone for me. So on tuesday my phone company is sending a courier to pick up my lumia and give me a xperia m2 (i didnt have much say in what android i got) naturally i want to adapt my app to work on the android os... only i have tried once before to write an android app and there is one thing that drives me crazy.....screen control, on visual studio you drag and drop the buttons to where you want them on the screen, and thats where they will be, on android you have to calculate the weights of the buttons to get them to share a certain amount of real-estate of the screen and well it never felt intuitive....guess im more a wysiwyg programmer. But i may of just been doing it wrong so here goes:
1) is there a way to create the gui in a wysiwyg manner? (like windows phone development in visual studio)
2) is there a way to code in c# instead of java? (for free, i have seen a service that allows you to do it for about $99 a month..... my apps are free, no adverts, a hobby, i cant pay out for that kind of thing
3) any tips for a newbie ?

Categories

Resources